Move most init stuff into ~/.xprofile rather than each WM config and ~/.xinitrc
This commit is contained in:
@ -69,16 +69,7 @@ exec_always --no-startup-id xrdb -load ~/.Xresources
|
||||
exec --no-startup-id xfsettingsd
|
||||
exec --no-startup-id al-compositor --start
|
||||
|
||||
# polkit, required for authentication
|
||||
exec --no-startup-id /usr/lib/polkit-gnome/polkit-gnome-authentication-agent-1
|
||||
|
||||
# keyring for storing saved passwords
|
||||
exec --no-startup-id gnome-keyring-daemon --start --components=pkcs11
|
||||
|
||||
# pressing super key alone simulates pressing Alt-F1
|
||||
# this is needed for super key to launch rofi
|
||||
exec --no-startup-id ksuperkey -e 'Super_L=Alt_L|F1'
|
||||
exec --no-startup-id ksuperkey -e 'Super_R=Alt_L|F1'
|
||||
# needed for super to launch rofi through ksuperkey, see ~/.xprofile
|
||||
bindsym Mod1+F1 exec --no-startup-id rofi_run -r
|
||||
|
||||
###########################################################
|
||||
@ -93,10 +84,11 @@ bindsym Mod1+q kill
|
||||
bindsym Control+space exec --no-startup-id rofi_run -r
|
||||
|
||||
# core
|
||||
bindsym $Mod+t exec --no-startup-id exo-open --launch TerminalEmulator
|
||||
bindsym $Mod+Return --no-startup-id exec exo-open --launch TerminalEmulator
|
||||
bindsym $Mod+w exec --no-startup-id exo-open --launch WebBrowser
|
||||
bindsym $Mod+f exec --no-startup-id exo-open --launch FileManager
|
||||
bindsym $Mod+w exec --no-startup-id exo-open --launch WebBrowser
|
||||
bindsym $Mod+f exec --no-startup-id exo-open --launch FileManager
|
||||
bindsym $Mod+t exec --no-startup-id exo-open --launch TerminalEmulator
|
||||
bindsym $Mod+Return exec --no-startup-id exo-open --launch TerminalEmulator
|
||||
bindsym Control+Shift+t exec --no-startup-id exo-open --launch TerminalEmulator
|
||||
|
||||
# logout script
|
||||
bindsym $Mod+x exec --no-startup-id rofi_run -l
|
||||
@ -105,16 +97,16 @@ bindsym $Mod+x exec --no-startup-id rofi_run -l
|
||||
bindsym Print exec --no-startup-id "scrot '%S.png' -e 'mv $f $$(xdg-user-dir PICTURES)/ArchLabs-%S-$wx$h.png ; feh $$(xdg-user-dir PICTURES)/ArchLabs-%S-$wx$h.png'"
|
||||
|
||||
# audio
|
||||
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 XF86AudioMute exec --no-startup-id pamixer -t
|
||||
bindsym XF86AudioRaiseVolume exec --no-startup-id pamixer -i 2
|
||||
bindsym XF86AudioLowerVolume exec --no-startup-id pamixer -d 2
|
||||
bindsym XF86AudioMute exec --no-startup-id pamixer -t
|
||||
|
||||
# backlight
|
||||
bindsym XF86MonBrightnessUp exec --no-startup-id xbacklight -inc 10
|
||||
bindsym XF86MonBrightnessUp exec --no-startup-id xbacklight -inc 10
|
||||
bindsym XF86MonBrightnessDown exec --no-startup-id xbacklight -dec 10
|
||||
|
||||
################################################################
|
||||
@ -219,6 +211,7 @@ bindsym $Mod+v split v
|
||||
bindsym $Mod+Shift+t layout tabbed
|
||||
bindsym $Mod+Shift+s layout stacking
|
||||
bindsym $Mod+Shift+h layout toggle split
|
||||
|
||||
default_orientation horizontal
|
||||
|
||||
######################################################
|
||||
@ -226,9 +219,10 @@ default_orientation horizontal
|
||||
######################################################
|
||||
|
||||
new_window normal
|
||||
new_float normal
|
||||
new_float normal
|
||||
|
||||
hide_edge_borders both
|
||||
popup_during_fullscreen smart
|
||||
|
||||
bindsym $Mod+shift+b border toggle
|
||||
|
||||
# changing border style
|
||||
@ -237,14 +231,14 @@ bindsym $Mod+y border 1pixel
|
||||
bindsym $Mod+u border none
|
||||
|
||||
# change gaps
|
||||
bindsym $Mod+plus gaps inner current plus 5
|
||||
bindsym $Mod+minus gaps inner current minus 5
|
||||
bindsym $Mod+Shift+plus gaps outer current plus 5
|
||||
bindsym $Mod+Shift+minus gaps outer current minus 5
|
||||
bindsym $Mod+Control+plus gaps inner all plus 5
|
||||
bindsym $Mod+Control+minus gaps inner all minus 5
|
||||
bindsym $Mod+Control+Shift+plus gaps outer all plus 5
|
||||
bindsym $Mod+Control+Shift+minus gaps outer all minus 5
|
||||
bindsym $Mod+plus gaps inner current plus 5
|
||||
bindsym $Mod+minus gaps inner current minus 5
|
||||
bindsym $Mod+Shift+plus gaps outer current plus 5
|
||||
bindsym $Mod+Shift+minus gaps outer current minus 5
|
||||
bindsym $Mod+Control+plus gaps inner all plus 5
|
||||
bindsym $Mod+Control+minus gaps inner all minus 5
|
||||
bindsym $Mod+Control+Shift+plus gaps outer all plus 5
|
||||
bindsym $Mod+Control+Shift+minus gaps outer all minus 5
|
||||
|
||||
###################################################
|
||||
############ application settings ############
|
||||
@ -252,16 +246,18 @@ bindsym $Mod+Control+Shift+minus gaps outer all minus 5
|
||||
|
||||
for_window [class="(?i)(?:qt5ct|pinentry)"] floating enable, focus
|
||||
for_window [class="(?i)(?:termite|thunar)"] focus
|
||||
for_window [class="(?i)(?:geany|firefox)"] focus
|
||||
for_window [class="(?i)(?:geany|firefox)"] focus
|
||||
|
||||
# Assign Applications to specific workspace
|
||||
# get class with xprop
|
||||
assign [class="(?i)(?:firefox)"] → $WS1
|
||||
assign [class="(?i)(?:geany)"] → $WS2
|
||||
assign [class="(?i)(?:thunar)"] → $WS3
|
||||
assign [class="(?i)(?:geany)"] → $WS2
|
||||
assign [class="(?i)(?:thunar)"] → $WS3
|
||||
|
||||
# focus, floating, & sticky
|
||||
for_window [title="(?i)(?:copying|deleting|moving)"] floating enable
|
||||
for_window [window_role="(?i)(?:pop-up|setup)"] floating enable
|
||||
for_window [window_role="(?i)(?:pop-up|setup)"] floating enable
|
||||
|
||||
popup_during_fullscreen smart
|
||||
|
||||
exec --no-startup-id i3-msg workspace $WS1
|
||||
|
Reference in New Issue
Block a user