diff --git a/.config/i3/config b/.config/i3/config index 691853d..8e16dc0 100644 --- a/.config/i3/config +++ b/.config/i3/config @@ -141,10 +141,10 @@ bindcode $mod+Shift+90 move container to workspace $ws10 # resize window (you can also use the mouse for that): #mode "resize" { # These bindings trigger as soon as you enter the resize mode -# Pressing left will shrink the window’s width. -# Pressing right will grow the window’s width. -# Pressing up will shrink the window’s height. -# Pressing down will grow the window’s height. +# Pressing left will shrink the window's width. +# Pressing right will grow the window's width. +# Pressing up will shrink the window's height. +# Pressing down will grow the window's height. # bindsym j resize shrink width 10 px or 10 ppt # bindsym k resize grow height 10 px or 10 ppt # bindsym l resize shrink height 10 px or 10 ppt @@ -195,8 +195,8 @@ bindsym F1 exec ~/.config/i3/scripts/keyhint-2 # bindsym $mod+F1 exec xed ~/.config/i3/keybindings # Backlight control -bindsym XF86MonBrightnessUp exec xbacklight +10 -bindsym XF86MonBrightnessDown exec xbacklight -10 +bindsym XF86MonBrightnessUp exec xbacklight +5 && notify-send "Brightness - ${$(xbacklight -get)%.*}%" +bindsym XF86MonBrightnessDown exec xbacklight -5 && notify-send "Brightness - ${$(xbacklight -get)%.*}%" # change focus bindsym $mod+j focus left @@ -248,30 +248,20 @@ bindsym $mod+a focus parent # open new empty workspace bindsym $mod+Shift+n exec ~/.config/i3/scripts/empty_workspace -## Multimedia Keys +# Multimedia Keys # volume bindsym XF86AudioRaiseVolume exec amixer -D pulse sset Master 5%+ && pkill -RTMIN+1 i3blocks bindsym XF86AudioLowerVolume exec amixer -D pulse sset Master 5%- && pkill -RTMIN+1 i3blocks -# Pulse Audio controls - -#volume up -#bindsym XF86AudioRaiseVolume exec pamixer -i 5 --allow-boost && dunstify -h string:x-dunst-stack-tag:volume volume: $(pamixer --get-volume)% -#volume down -#bindsym XF86AudioLowerVolume exec pamixer -d 5 --allow-boost && dunstify -h string:x-dunst-stack-tag:volume volume: $(pamixer --get-volume)% -#mute -#bindsym XF86AudioMute exec pamixer -t && dunstify -h string:x-dunst-stack-tag:mute mute: $(pamixer --get-mute)! - # gradular volume control bindsym $mod+XF86AudioRaiseVolume exec amixer -D pulse sset Master 1%+ && pkill -RTMIN+1 i3blocks bindsym $mod+XF86AudioLowerVolume exec amixer -D pulse sset Master 1%- && pkill -RTMIN+1 i3blocks # mute -#bindsym XF86AudioMute exec amixer sset Master toggle && killall -USR1 i3blocks -#mute -bindsym XF86AudioMute exec pamixer -t && notify-send "mute: $(pamixer --get-mute)" +bindsym XF86AudioMute exec amixer sset Master toggle && killall -USR1 i3blocks +# audio control bindsym XF86AudioPlay exec playerctl play bindsym XF86AudioPause exec playerctl pause bindsym XF86AudioNext exec playerctl next @@ -283,7 +273,7 @@ bindsym $mod+p exec /usr/local/bin/switch-audio-port ## App shortcuts bindsym $mod+w exec /usr/bin/firefox bindsym $mod+n exec /usr/bin/thunar -bindsym Print exec "scrot ~/%Y-%m-%d-%T-screenshot.png" +bindsym Print exec scrot ~/%Y-%m-%d-%T-screenshot.png && notify-send "Screenshot saved to ~/$(date +"%Y-%m-%d-%T")-screenshot.png" # Power Profiles menu switcher (rofi) bindsym $mod+Shift+p exec ~/.config/i3/scripts/power-profiles @@ -429,7 +419,7 @@ exec --no-startup-id sleep 7 && firefox https://github.com/endeavouros-team/ende # floating rules # ################## -# set floating (nontiling)for apps needing it +# set floating (nontiling) for apps needing it for_window [class="Yad" instance="yad"] floating enable for_window [class="Galculator" instance="galculator"] floating enable for_window [class="Blueberry.py" instance="blueberry.py"] floating enable @@ -443,6 +433,16 @@ for_window [class="Bluetooth-sendto" instance="bluetooth-sendto"] floating enabl for_window [class="Pamac-manager"] floating enable for_window [window_role="About"] floating enable +# set border of floating window +for_window [class="urxvt"] border pixel 1 + +# set size of floating window +#for_window [window_role="(?i)GtkFileChooserDialog"] resize set 640 480 #to set size of file choose dialog +#for_window [class=".*"] resize set 640 480 #to change size of all floating windows + +# set position of floating window +for_window [class=".*"] move position center + ###################################### # color settings for bar and windows # ###################################### diff --git a/.config/i3/scripts/power-profiles b/.config/i3/scripts/power-profiles index 27825c2..d69506e 100644 --- a/.config/i3/scripts/power-profiles +++ b/.config/i3/scripts/power-profiles @@ -40,7 +40,7 @@ BORDER_COLOR="#222222" #ROFI_TEXT=":" #ROFI_OPTIONS=(-width -11 -location 0 -hide-scrollbar -bw 30 -color-window "#dd310027,#dd0310027,#dd310027" -padding 5) #ROFI_OPTIONS=(-width -18 -location 4 -hide-scrollbar -color-window "#cc310027,#00a0009a,#cc310027" -padding 5 -font "Sourcecode Pro Regular 10, FontAwesome 9") -ROFI_OPTIONS=(-theme ~/.config/rofi/power-profiles.rasi) +ROFI_OPTIONS=(-config ~/.config/rofi/rofidmenu.rasi) # Zenity options ZENITY_TITLE="Power Profiles" ZENITY_TEXT="Set Profiles:" diff --git a/.config/i3/scripts/powermenu b/.config/i3/scripts/powermenu index e72f0a2..6d4f554 100644 --- a/.config/i3/scripts/powermenu +++ b/.config/i3/scripts/powermenu @@ -39,7 +39,7 @@ HLBG_COLOR="#bbbbbb" BORDER_COLOR="#222222" # Options not related to colors (most rofi options do not work anymore) -ROFI_OPTIONS=(-theme ~/.config/rofi/powermenu.rasi) +ROFI_OPTIONS=(-config ~/.config/rofi/rofidmenu.rasi) # Zenity options ZENITY_TITLE="Power Menu" ZENITY_TEXT="Action:" diff --git a/force-knowledge.md b/force-knowledge.md index 64655b8..d55fe9b 100644 --- a/force-knowledge.md +++ b/force-knowledge.md @@ -1,30 +1,32 @@ -# Firefox starting automatic on each login? +# Dive into configuring i3 -## Dive into configure i3: +i3 is a dynamic tiling window manager inspired by wmii that is primarily targeted at developers and advanced users. The configuration file for endevouros-i3 can be found at `~/.config/i3/config`. Edit this file to make changes and configure i3 as you like. -To disable autostarting firefox with this readme, edit `~/.config/i3/config` and comment out this line: +# Troubleshooting -`exec --no-startup-id sleep 7 && firefox https://github.com/endeavouros-team/endeavouros-i3wm-setup/blob/main/force-knowledge.md` +## Firefox is autostarting at each login -`~/.config/i3/config` is the main configuration file for i3, get into this file and configure i3 as you like, all settings have comments to give you information about the following setting: - -https://raw.githubusercontent.com/endeavouros-team/endeavouros-i3wm-setup/main/.config/i3/config - -## No transparency? - -enable picom in `~/.config/i3/config` by uncommenting this line: +To disable firefox from autostarting comment out this line: ``` -#exec --no-startup-id picom -b +exec --no-startup-id sleep 7 && firefox https://github.com/endeavouros-team/endeavouros-i3wm-setup/blob/main/force-knowledge.md ``` -And in some cases you will need to use a different configuration (Nvidia GPU/Driver p.e. but also others) -Read the manpage, do some research will help you, or ask at the chat or forum. +## No transparency + +[picom](https://wiki.archlinux.org/title/Picom) is used to enable transparency. To enable it uncomment this line: + +``` +exec_always --no-startup-id picom -b +``` + +In some cases you might need to use a different configuration to make picom work for example while using NVIDIA's proprietary drivers. + +## Disable the battery indicator -## Not on a notebook? ![alt text](https://raw.githubusercontent.com/endeavouros-team/screenshots/master/battery-red-i3.png "no-battery?") -Disable battery indicator in i3blocks.conf: +To disable battery indicator edit the file `~/.config/i3/i3blocks.conf` and comment out these lines: ``` # Battery indicator @@ -36,10 +38,20 @@ Disable battery indicator in i3blocks.conf: #interval=30 ``` -## autostart implementation: -[dex](https://github.com/jceb/dex) is enabled in config per default: -disable dex in `~/.config/i3/config` by commenting out this line: +## Autostart implementation + +[dex](https://man.archlinux.org/man/community/dex/dex.1.en) is used to autostart applications on startup. To disable it comment out this line: ``` exec --no-startup-id dex --autostart --environment i3 ``` + +## Reset configuration + +The default configuration file for i3 can be found at `/etc/i3/config`. The default configuration file for endevouros-i3 can be found [here](https://raw.githubusercontent.com/endeavouros-team/endeavouros-i3wm-setup/main/.config/i3/config). To replace your current configuration with the default of endevouros-i3 run the following command. This will also make a backup of your current configuration at `~/.config/i3/config.1`: + +``` +wget --backups=1 https://raw.githubusercontent.com/endeavouros-team endeavouros-i3wm-setup/main/.config/i3/config -P ~/.config/i3/ +``` + +Still having some issues? Surf through the [ArchWiki](https://wiki.archlinux.org/title/i3) or ask for help on [EndeavourOS Forum](https://forum.endeavouros.com/). \ No newline at end of file