Update i3 configs

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

View file

@ -26,12 +26,12 @@ set $mod Mod4
set $up l
set $down k
set $left j
set $right semicolon
set $right semicolon
################# Single and Dual screen
# 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
# 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
set $firstMonitor HDMI-0
set $secondMonitor DP0
# set $firstMonitor HDMI-0
# set $secondMonitor DP0
# Other Examples
@ -65,16 +65,16 @@ set $secondMonitor DP0
#set $firstMonitor HDMI-1
#set $secondMonitor HDMI-2
workspace 1 output $firstMonitor
workspace 2 output $firstMonitor
workspace 3 output $firstMonitor
workspace 4 output $firstMonitor
workspace 5 output $firstMonitor
workspace 6 output $secondMonitor
workspace 7 output $secondMonitor
workspace 8 output $secondMonitor
workspace 9 output $secondMonitor
workspace 10 output $secondMonitor
# workspace 1 output $firstMonitor
# workspace 2 output $firstMonitor
# workspace 3 output $firstMonitor
# workspace 4 output $firstMonitor
# workspace 5 output $firstMonitor
# workspace 6 output $secondMonitor
# workspace 7 output $secondMonitor
# workspace 8 output $secondMonitor
# workspace 9 output $secondMonitor
# workspace 10 output $secondMonitor
# switch to workspace
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'
# 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
bindsym mod1+F3 exec --no-startup-id xfce4-appfinder
# bindsym mod1+F3 exec --no-startup-id xfce4-appfinder
# start xlunch app launcher
# 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
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 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"
@ -141,16 +141,16 @@ mode "$mode_system" {
}
# 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)
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
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
################# reload changed configuration
@ -172,7 +172,7 @@ bindsym $mod+q kill
floating_modifier $mod
# toggle tiling / floating
bindsym $mod+Shift+space floating toggle
bindsym $mod+Shift+f floating toggle
# change focus
bindsym $mod+$left focus left
@ -238,13 +238,13 @@ bindsym $mod+z layout tabbed
bindsym $mod+e layout toggle split
# change focus between tiling / floating windows
bindsym $mod+space focus mode_toggle
# focus the parent container
bindsym $mod+a focus parent
# focus the child container
# bindsym $mod+d focus child
bindsym $mod+d focus child
################# resize
@ -257,30 +257,30 @@ bindsym $mod+Mod1+Ctrl+Left resize grow width 1 px or 1 ppt
# old resize keybindings
# resize window (you can also use the mouse for that)
# bindsym $mod+r mode "resize"
bindsym $mod+r mode "resize"
# mode "resize" {
# These bindings trigger as soon as you enter the resize mode
mode "resize" {
# These bindings trigger as soon as you enter the resize mode
# Pressing left will shrink the windows width.
# Pressing right will grow the windows width.
# Pressing up will shrink the windows height.
# Pressing down will grow the windows height.
# bindsym $left resize shrink width 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 $right resize grow width 10 px or 10 ppt
# Pressing left will shrink the windows width.
# Pressing right will grow the windows width.
# Pressing up will shrink the windows height.
# Pressing down will grow the windows height.
bindsym $left resize shrink width 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 $right resize grow width 10 px or 10 ppt
# same bindings, but for the arrow keys
# bindsym Left resize shrink width 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 Right resize grow width 10 px or 10 ppt
# same bindings, but for the arrow keys
bindsym Left resize shrink width 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 Right resize grow width 10 px or 10 ppt
# back to normal: Enter or Escape
# bindsym Return mode "default"
# bindsym Escape mode "default"
# }
# back to normal: Enter or Escape
bindsym Return mode "default"
bindsym Escape mode "default"
}
################# choose the font
@ -334,12 +334,6 @@ font pango:Noto Mono Regular 13
# 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
# exec --no-startup-id vivaldi-stable
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
# 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
exec --no-startup-id pamac-tray
# exec --no-startup-id pamac-tray
# bluetooth
# exec --no-startup-id blueberry-tray
# network
exec --no-startup-id nm-applet
# exec --no-startup-id nm-applet
# num lock activated
exec_always --no-startup-id numlockx on
# exec_always --no-startup-id numlockx on
# dropbox
# exec --no-startup-id dropbox start
@ -386,7 +380,7 @@ exec_always --no-startup-id numlockx on
# volume
# exec --no-startup-id pasystray
exec --no-startup-id volumeicon
# exec --no-startup-id volumeicon
# variety
# exec --no-startup-id variety
@ -395,36 +389,36 @@ exec --no-startup-id volumeicon
# exec --no-startup-id xfce4-clipman
# Conky
exec --no-startup-id conky -c ~/.config/i3/system-overview
# exec --no-startup-id conky -c ~/.config/i3/system-overview
# 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
# exec_always --no-startup-id ~/.config/polybar/launch.sh &
################# 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
# IF xfsettingsd is activated you can not change themes
# 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
# not workspace related
# 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
bindsym control+mod1+e exec --no-startup-id arcolinux-tweak-tool
# bindsym control+mod1+e exec --no-startup-id arcolinux-tweak-tool
# conky
bindsym $mod+c exec --no-startup-id conky-toggle
bindsym control+mod1+Next exec --no-startup-id conky-rotate -n
bindsym control+mod1+Prior exec --no-startup-id conky-rotate -p
# bindsym $mod+c exec --no-startup-id conky-toggle
# bindsym control+mod1+Next exec --no-startup-id conky-rotate -n
# bindsym control+mod1+Prior exec --no-startup-id conky-rotate -p
# terminal
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+Return 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
bindsym control+Shift+Escape exec --no-startup-id xfce4-taskmanager;focus
# bindsym control+Shift+Escape exec --no-startup-id xfce4-taskmanager;focus
# settings
bindsym control+mod1+m exec --no-startup-id xfce4-settings-manager
# bindsym control+mod1+m exec --no-startup-id xfce4-settings-manager
# catfish
bindsym control+mod1+c exec --no-startup-id catfish;focus
# 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+k exec --no-startup-id arcolinux-logout
# bindsym control+mod1+l exec --no-startup-id arcolinux-logout
# 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
# 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
bindsym control+mod1+p exec --no-startup-id pamac-manager
@ -474,18 +468,17 @@ bindsym --release $mod+Escape exec xkill
# Browser
bindsym $mod+F1 exec --no-startup-id exo-open --launch webbrowser;focus
# 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+v exec --no-startup-id vivaldi-stable;focus
bindsym control+mod1+g exec --no-startup-id chromium;focus
# Text Editor
# 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
bindsym $mod+F3 exec --no-startup-id inkscape;focus
# Advanced Draw Tool
bindsym $mod+F4 exec --no-startup-id gimp;focus
@ -517,9 +510,9 @@ bindsym control+mod1+s exec --no-startup-id spotify;focus
################# 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 Control+Print exec --no-startup-id xfce4-screenshooter
bindsym Control+Shift+Print exec --no-startup-id gnome-screenshot -i
bindsym Print exec --no-startup-id spectacle
bindsym Control+Print exec --no-startup-id obs
# bindsym Control+Shift+Print exec --no-startup-id gnome-screenshot -i
# bindsym shift+Print exec --no-startup-id shutter
################# 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
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 XF86AudioMute exec --no-startup-id "amixer -D pulse set Master toggle"
# 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 XF86AudioMute exec --no-startup-id "amixer -D pulse set Master toggle"
# https://github.com/acrisci/playerctl/
bindsym XF86AudioPlay exec --no-startup-id playerctl play-pause
bindsym XF86AudioNext exec --no-startup-id playerctl next
bindsym XF86AudioPrev exec --no-startup-id playerctl previous
bindsym XF86AudioStop exec --no-startup-id playerctl stop
# bindsym XF86AudioPlay exec --no-startup-id playerctl play-pause
# bindsym XF86AudioNext exec --no-startup-id playerctl next
# bindsym XF86AudioPrev exec --no-startup-id playerctl previous
# 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 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"