Update i3 configs

This commit is contained in:
Anas Elgarhy 2022-03-10 20:14:39 +02:00
parent 6fcc0d6729
commit 57d2a5ee13

View file

@ -31,7 +31,7 @@ set $right semicolon
################# Single and Dual screen ################# Single and Dual screen
# current displays # current displays
exec --no-startup-id xrandr --output DP0 --right-of HDMI-0 --auto # exec --no-startup-id xrandr --output DP0 --right-of HDMI-0 --auto
# setting variables for later use # setting variables for later use
# use xrandr and/or arandr to know the names of your monitors # use xrandr and/or arandr to know the names of your monitors
@ -45,8 +45,8 @@ exec --no-startup-id xrandr --output DP0 --right-of HDMI-0 --auto
# current setup # current setup
set $firstMonitor HDMI-0 # set $firstMonitor HDMI-0
set $secondMonitor DP0 # set $secondMonitor DP0
# Other Examples # Other Examples
@ -65,16 +65,16 @@ set $secondMonitor DP0
#set $firstMonitor HDMI-1 #set $firstMonitor HDMI-1
#set $secondMonitor HDMI-2 #set $secondMonitor HDMI-2
workspace 1 output $firstMonitor # workspace 1 output $firstMonitor
workspace 2 output $firstMonitor # workspace 2 output $firstMonitor
workspace 3 output $firstMonitor # workspace 3 output $firstMonitor
workspace 4 output $firstMonitor # workspace 4 output $firstMonitor
workspace 5 output $firstMonitor # workspace 5 output $firstMonitor
workspace 6 output $secondMonitor # workspace 6 output $secondMonitor
workspace 7 output $secondMonitor # workspace 7 output $secondMonitor
workspace 8 output $secondMonitor # workspace 8 output $secondMonitor
workspace 9 output $secondMonitor # workspace 9 output $secondMonitor
workspace 10 output $secondMonitor # workspace 10 output $secondMonitor
# switch to workspace # switch to workspace
bindsym $mod+1 workspace 1 bindsym $mod+1 workspace 1
@ -106,10 +106,10 @@ bindsym $mod+Shift+0 move container to workspace 10; workspace 10
bindsym $mod+shift+d exec --no-startup-id dmenu_run -i -nb '#191919' -nf '#fea63c' -sb '#fea63c' -sf '#191919' -fn 'NotoMonoRegular:bold:pixelsize=14' bindsym $mod+shift+d exec --no-startup-id dmenu_run -i -nb '#191919' -nf '#fea63c' -sb '#fea63c' -sf '#191919' -fn 'NotoMonoRegular:bold:pixelsize=14'
# start xfce4-appfinder # start xfce4-appfinder
bindsym mod1+F2 exec --no-startup-id xfce4-appfinder --collapsed # bindsym mod1+F2 exec --no-startup-id xfce4-appfinder --collapsed
# start xfce-appfinder # start xfce-appfinder
bindsym mod1+F3 exec --no-startup-id xfce4-appfinder # bindsym mod1+F3 exec --no-startup-id xfce4-appfinder
# start xlunch app launcher # start xlunch app launcher
# bindsym mod1+F5 exec --no-startup-id xlunch --config ~/.config/xlunch/default.conf --input ~/.config/xlunch/entries.dsv # bindsym mod1+F5 exec --no-startup-id xlunch --config ~/.config/xlunch/default.conf --input ~/.config/xlunch/entries.dsv
@ -128,7 +128,7 @@ bindsym control+mod1+X mode "$mode_system"
set $mode_system System (k) lock, (l) logout, (u) suspend, (h) hibernate, (r) reboot, (s) shutdown set $mode_system System (k) lock, (l) logout, (u) suspend, (h) hibernate, (r) reboot, (s) shutdown
mode "$mode_system" { mode "$mode_system" {
bindsym k exec --no-startup-id ~/.config/i3/scripts/i3exit.sh lock, mode "default" bindsym k exec --no-startup-id ~/.config/i3/scripts/i3exit.sh lock, mode "default"
bindsym l exec --no-startup-id ~/.config/i3/scripts/i3exit.sh logout, mode "default" bindsym l exec --no-startup-id ~/.config/i3/scripts/i3exit.sh logout, mode "default"
bindsym u exec --no-startup-id ~/.config/i3/scripts/i3exit.sh suspend, mode "default" bindsym u exec --no-startup-id ~/.config/i3/scripts/i3exit.sh suspend, mode "default"
bindsym h exec --no-startup-id ~/.config/i3/scripts/i3exit.sh hibernate, mode "default" bindsym h exec --no-startup-id ~/.config/i3/scripts/i3exit.sh hibernate, mode "default"
@ -141,16 +141,16 @@ mode "$mode_system" {
} }
# set desktop background with custom effect # set desktop background with custom effect
exec --no-startup-id betterlockscreen -w dim # exec --no-startup-id betterlockscreen -w dim
# Alternative (set last used background) # Alternative (set last used background)
exec --no-startup-id source ~/.fehbg # exec --no-startup-id source ~/.fehbg
bindsym $mod+shift+x exec betterlockscreen -l dim # bindsym $mod+shift+x exec betterlockscreen -l dim
# ArcoLinux Logout # ArcoLinux Logout
bindsym $mod+Shift+e exec --no-startup-id arcolinux-logout # bindsym $mod+Shift+e exec --no-startup-id arcolinux-logout
#bindsym $mod+X exec --no-startup-id arcolinux-logout #bindsym $mod+X exec --no-startup-id arcolinux-logout
################# reload changed configuration ################# reload changed configuration
@ -172,7 +172,7 @@ bindsym $mod+q kill
floating_modifier $mod floating_modifier $mod
# toggle tiling / floating # toggle tiling / floating
bindsym $mod+Shift+space floating toggle bindsym $mod+Shift+f floating toggle
# change focus # change focus
bindsym $mod+$left focus left bindsym $mod+$left focus left
@ -238,13 +238,13 @@ bindsym $mod+z layout tabbed
bindsym $mod+e layout toggle split bindsym $mod+e layout toggle split
# change focus between tiling / floating windows # change focus between tiling / floating windows
bindsym $mod+space focus mode_toggle
# focus the parent container # focus the parent container
bindsym $mod+a focus parent bindsym $mod+a focus parent
# focus the child container # focus the child container
# bindsym $mod+d focus child bindsym $mod+d focus child
################# resize ################# resize
@ -257,30 +257,30 @@ bindsym $mod+Mod1+Ctrl+Left resize grow width 1 px or 1 ppt
# old resize keybindings # old resize keybindings
# resize window (you can also use the mouse for that) # resize window (you can also use the mouse for that)
# bindsym $mod+r mode "resize" bindsym $mod+r mode "resize"
# mode "resize" { mode "resize" {
# These bindings trigger as soon as you enter the resize mode # These bindings trigger as soon as you enter the resize mode
# Pressing left will shrink the windows width. # Pressing left will shrink the windows width.
# Pressing right will grow the windows width. # Pressing right will grow the windows width.
# Pressing up will shrink the windows height. # Pressing up will shrink the windows height.
# Pressing down will grow the windows height. # Pressing down will grow the windows height.
# bindsym $left resize shrink width 10 px or 10 ppt bindsym $left resize shrink width 10 px or 10 ppt
# bindsym $down resize grow height 10 px or 10 ppt bindsym $down resize grow height 10 px or 10 ppt
# bindsym $up resize shrink height 10 px or 10 ppt bindsym $up resize shrink height 10 px or 10 ppt
# bindsym $right resize grow width 10 px or 10 ppt bindsym $right resize grow width 10 px or 10 ppt
# same bindings, but for the arrow keys # same bindings, but for the arrow keys
# bindsym Left resize shrink width 10 px or 10 ppt bindsym Left resize shrink width 10 px or 10 ppt
# bindsym Down resize grow height 10 px or 10 ppt bindsym Down resize grow height 10 px or 10 ppt
# bindsym Up resize shrink height 10 px or 10 ppt bindsym Up resize shrink height 10 px or 10 ppt
# bindsym Right resize grow width 10 px or 10 ppt bindsym Right resize grow width 10 px or 10 ppt
# back to normal: Enter or Escape # back to normal: Enter or Escape
# bindsym Return mode "default" bindsym Return mode "default"
# bindsym Escape mode "default" bindsym Escape mode "default"
# } }
################# choose the font ################# choose the font
@ -334,12 +334,6 @@ font pango:Noto Mono Regular 13
# USER APPLICATIONS TO START AT BOOT # USER APPLICATIONS TO START AT BOOT
# ArcoLinux Welcome App
exec --no-startup-id dex $HOME/.config/autostart/arcolinux-welcome-app.desktop
# Autotiling
exec_always --no-startup-id autotiling
# Browser # Browser
# exec --no-startup-id vivaldi-stable # exec --no-startup-id vivaldi-stable
for_window [class="Vivaldi-stable"] focus for_window [class="Vivaldi-stable"] focus
@ -364,19 +358,19 @@ for_window [class="Spotify"] focus
# you may see a wheel - hashtag out things you do not want/need # you may see a wheel - hashtag out things you do not want/need
# Authentication dialog # Authentication dialog
exec --no-startup-id /usr/lib/polkit-gnome/polkit-gnome-authentication-agent-1 & # exec --no-startup-id /usr/lib/polkit-gnome/polkit-gnome-authentication-agent-1 &
# Updater # Updater
exec --no-startup-id pamac-tray # exec --no-startup-id pamac-tray
# bluetooth # bluetooth
# exec --no-startup-id blueberry-tray # exec --no-startup-id blueberry-tray
# network # network
exec --no-startup-id nm-applet # exec --no-startup-id nm-applet
# num lock activated # num lock activated
exec_always --no-startup-id numlockx on # exec_always --no-startup-id numlockx on
# dropbox # dropbox
# exec --no-startup-id dropbox start # exec --no-startup-id dropbox start
@ -386,7 +380,7 @@ exec_always --no-startup-id numlockx on
# volume # volume
# exec --no-startup-id pasystray # exec --no-startup-id pasystray
exec --no-startup-id volumeicon # exec --no-startup-id volumeicon
# variety # variety
# exec --no-startup-id variety # exec --no-startup-id variety
@ -395,36 +389,36 @@ exec --no-startup-id volumeicon
# exec --no-startup-id xfce4-clipman # exec --no-startup-id xfce4-clipman
# Conky # Conky
exec --no-startup-id conky -c ~/.config/i3/system-overview # exec --no-startup-id conky -c ~/.config/i3/system-overview
# feh sets wallpaper # feh sets wallpaper
exec --no-startup-id feh --bg-fill /usr/share/backgrounds/arcolinux/arco-wallpaper.jpg & exec --no-startup-id feh --bg-fill /media/Data/Personalize/Wallpapers/BG4.jpg &
# Polybar # Polybar
# exec_always --no-startup-id ~/.config/polybar/launch.sh & # exec_always --no-startup-id ~/.config/polybar/launch.sh &
################# system applications ################# system applications
exec --no-startup-id xfce4-power-manager & # exec --no-startup-id xfce4-power-manager &
# ommitted next line to get super key to bring up the menu in xfce and avoid error then in i3 # ommitted next line to get super key to bring up the menu in xfce and avoid error then in i3
# IF xfsettingsd is activated you can not change themes # IF xfsettingsd is activated you can not change themes
# exec --no-startup-id xfsettingsd & # exec --no-startup-id xfsettingsd &
exec --no-startup-id /usr/lib/xfce4/notifyd/xfce4-notifyd & # exec --no-startup-id /usr/lib/xfce4/notifyd/xfce4-notifyd &
################# applications keyboard shortcuts ################# applications keyboard shortcuts
# not workspace related # not workspace related
# ArcoLinux Welcome App # ArcoLinux Welcome App
bindsym control+mod1+w exec --no-startup-id arcolinux-welcome-app # bindsym control+mod1+w exec --no-startup-id arcolinux-welcome-app
# ArcoLinux Tweak Tool # ArcoLinux Tweak Tool
bindsym control+mod1+e exec --no-startup-id arcolinux-tweak-tool # bindsym control+mod1+e exec --no-startup-id arcolinux-tweak-tool
# conky # conky
bindsym $mod+c exec --no-startup-id conky-toggle # bindsym $mod+c exec --no-startup-id conky-toggle
bindsym control+mod1+Next exec --no-startup-id conky-rotate -n # bindsym control+mod1+Next exec --no-startup-id conky-rotate -n
bindsym control+mod1+Prior exec --no-startup-id conky-rotate -p # bindsym control+mod1+Prior exec --no-startup-id conky-rotate -p
# terminal # terminal
bindsym $mod+Return exec --no-startup-id alacritty;focus bindsym $mod+Return exec --no-startup-id alacritty;focus
@ -432,20 +426,20 @@ bindsym $mod+KP_Enter exec --no-startup-id alacritty;focus
bindsym control+mod1+t exec --no-startup-id alacritty; focus bindsym control+mod1+t exec --no-startup-id alacritty; focus
bindsym control+mod1+Return exec --no-startup-id alacritty; focus bindsym control+mod1+Return exec --no-startup-id alacritty; focus
bindsym control+mod1+KP_Enter exec --no-startup-id alacritty; focus bindsym control+mod1+KP_Enter exec --no-startup-id alacritty; focus
bindsym F12 exec --no-startup-id xfce4-terminal --drop-down; focus # bindsym F12 exec --no-startup-id xfce4-terminal --drop-down; focus
# System monitor # System monitor
bindsym control+Shift+Escape exec --no-startup-id xfce4-taskmanager;focus # bindsym control+Shift+Escape exec --no-startup-id xfce4-taskmanager;focus
# settings # settings
bindsym control+mod1+m exec --no-startup-id xfce4-settings-manager # bindsym control+mod1+m exec --no-startup-id xfce4-settings-manager
# catfish # catfish
bindsym control+mod1+c exec --no-startup-id catfish;focus bindsym control+mod1+c exec --no-startup-id catfish;focus
# arcolinux-logout # arcolinux-logout
bindsym control+mod1+k exec --no-startup-id arcolinux-logout # bindsym control+mod1+k exec --no-startup-id arcolinux-logout
bindsym control+mod1+l exec --no-startup-id arcolinux-logout # bindsym control+mod1+l exec --no-startup-id arcolinux-logout
# rofi theme selector # rofi theme selector
bindsym control+mod1+r exec --no-startup-id rofi-theme-selector bindsym control+mod1+r exec --no-startup-id rofi-theme-selector
@ -462,7 +456,7 @@ bindsym control+mod1+u exec --no-startup-id pavucontrol
# start xfce-appfinder # start xfce-appfinder
# arcolinux does not seem to work # arcolinux does not seem to work
bindsym control+mod1+a exec --no-startup-id xfce4-appfinder # bindsym control+mod1+a exec --no-startup-id xfce4-appfinder
# pamac-manager # pamac-manager
bindsym control+mod1+p exec --no-startup-id pamac-manager bindsym control+mod1+p exec --no-startup-id pamac-manager
@ -474,18 +468,17 @@ bindsym --release $mod+Escape exec xkill
# Browser # Browser
bindsym $mod+F1 exec --no-startup-id exo-open --launch webbrowser;focus bindsym $mod+F1 exec --no-startup-id exo-open --launch webbrowser;focus
# qwerty/azerty conflict with w # qwerty/azerty conflict with w
bindsym $mod+w exec --no-startup-id exo-open --launch webbrowser;focus # bindsym $mod+w exec --no-startup-id exo-open --launch webbrowser;focus
bindsym control+mod1+f exec --no-startup-id firefox;focus bindsym control+mod1+f exec --no-startup-id firefox;focus
bindsym control+mod1+v exec --no-startup-id vivaldi-stable;focus bindsym control+mod1+v exec --no-startup-id vivaldi-stable;focus
bindsym control+mod1+g exec --no-startup-id chromium;focus bindsym control+mod1+g exec --no-startup-id chromium;focus
# Text Editor # Text Editor
# bindsym $mod+F2 exec --no-startup-id geany;focus # bindsym $mod+F2 exec --no-startup-id geany;focus
bindsym $mod+F2 exec --no-startup-id atom;focus bindsym $mod+F2 exec --no-startup-id kate;focus
# Basic Draw Tool # Basic Draw Tool
bindsym $mod+F3 exec --no-startup-id inkscape;focus bindsym $mod+F3 exec --no-startup-id inkscape;focus
# Advanced Draw Tool # Advanced Draw Tool
bindsym $mod+F4 exec --no-startup-id gimp;focus bindsym $mod+F4 exec --no-startup-id gimp;focus
@ -517,9 +510,9 @@ bindsym control+mod1+s exec --no-startup-id spotify;focus
################# screenshots ################# screenshots
bindsym Print exec --no-startup-id scrot 'ArcoLinux-%Y-%m-%d-%s_screenshot_$wx$h.jpg' -e 'mv $f $$(xdg-user-dir PICTURES)' bindsym Print exec --no-startup-id spectacle
bindsym Control+Print exec --no-startup-id xfce4-screenshooter bindsym Control+Print exec --no-startup-id obs
bindsym Control+Shift+Print exec --no-startup-id gnome-screenshot -i # bindsym Control+Shift+Print exec --no-startup-id gnome-screenshot -i
# bindsym shift+Print exec --no-startup-id shutter # bindsym shift+Print exec --no-startup-id shutter
################# floating or tiled rules ################# floating or tiled rules
@ -608,14 +601,14 @@ bindsym mod1+Shift+u exec --no-startup-id wal -i $(cat $HOME/.config/variety/wal
################# audio settings ################# audio settings
bindsym XF86AudioRaiseVolume exec --no-startup-id "amixer -D pulse sset Master '5%+'" # bindsym XF86AudioRaiseVolume exec --no-startup-id "amixer -D pulse sset Master '5%+'"
bindsym XF86AudioLowerVolume exec --no-startup-id "amixer -D pulse sset Master '5%-'" # bindsym XF86AudioLowerVolume exec --no-startup-id "amixer -D pulse sset Master '5%-'"
bindsym XF86AudioMute exec --no-startup-id "amixer -D pulse set Master toggle" # bindsym XF86AudioMute exec --no-startup-id "amixer -D pulse set Master toggle"
# https://github.com/acrisci/playerctl/ # https://github.com/acrisci/playerctl/
bindsym XF86AudioPlay exec --no-startup-id playerctl play-pause # bindsym XF86AudioPlay exec --no-startup-id playerctl play-pause
bindsym XF86AudioNext exec --no-startup-id playerctl next # bindsym XF86AudioNext exec --no-startup-id playerctl next
bindsym XF86AudioPrev exec --no-startup-id playerctl previous # bindsym XF86AudioPrev exec --no-startup-id playerctl previous
bindsym XF86AudioStop exec --no-startup-id playerctl stop # bindsym XF86AudioStop exec --no-startup-id playerctl stop
# bindsym XF86AudioPlay exec --no-startup-id "dbus-send --print-reply --dest=org.mpris.MediaPlayer2.spotify /org/mpris/MediaPlayer2 org.mpris.MediaPlayer2.Player.PlayPause" # bindsym XF86AudioPlay exec --no-startup-id "dbus-send --print-reply --dest=org.mpris.MediaPlayer2.spotify /org/mpris/MediaPlayer2 org.mpris.MediaPlayer2.Player.PlayPause"
# bindsym XF86AudioNext exec --no-startup-id "dbus-send --print-reply --dest=org.mpris.MediaPlayer2.spotify /org/mpris/MediaPlayer2 org.mpris.MediaPlayer2.Player.Next" # bindsym XF86AudioNext exec --no-startup-id "dbus-send --print-reply --dest=org.mpris.MediaPlayer2.spotify /org/mpris/MediaPlayer2 org.mpris.MediaPlayer2.Player.Next"
# bindsym XF86AudioPrev exec --no-startup-id "dbus-send --print-reply --dest=org.mpris.MediaPlayer2.spotify /org/mpris/MediaPlayer2 org.mpris.MediaPlayer2.Player.Previous" # bindsym XF86AudioPrev exec --no-startup-id "dbus-send --print-reply --dest=org.mpris.MediaPlayer2.spotify /org/mpris/MediaPlayer2 org.mpris.MediaPlayer2.Player.Previous"