Move most init stuff into ~/.xprofile rather than each WM config and ~/.xinitrc

This commit is contained in:
natemaia 2018-10-29 01:36:27 -07:00
parent 998e4343bf
commit 749193ba48
8 changed files with 59 additions and 71 deletions

View File

@ -15,16 +15,6 @@ al-compositor --start &
# xfce settings # xfce settings
xfsettingsd & xfsettingsd &
# polkit, required for authentication
/usr/lib/polkit-gnome/polkit-gnome-authentication-agent-1 &
# keyring for storing saved passwords
gnome-keyring-daemon --start --components=pkcs11 &
# pressing super key alone simulates pressing Alt-F1
ksuperkey -e 'Super_L=Alt_L|F1' &
ksuperkey -e 'Super_R=Alt_L|F1' &
# panel # panel
al-polybar-session & al-polybar-session &

View File

@ -69,16 +69,7 @@ exec_always --no-startup-id xrdb -load ~/.Xresources
exec --no-startup-id xfsettingsd exec --no-startup-id xfsettingsd
exec --no-startup-id al-compositor --start exec --no-startup-id al-compositor --start
# polkit, required for authentication # needed for super to launch rofi through ksuperkey, see ~/.xprofile
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'
bindsym Mod1+F1 exec --no-startup-id rofi_run -r 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 bindsym Control+space exec --no-startup-id rofi_run -r
# core # core
bindsym $Mod+t exec --no-startup-id exo-open --launch TerminalEmulator bindsym $Mod+w exec --no-startup-id exo-open --launch WebBrowser
bindsym $Mod+Return --no-startup-id exec exo-open --launch TerminalEmulator bindsym $Mod+f exec --no-startup-id exo-open --launch FileManager
bindsym $Mod+w exec --no-startup-id exo-open --launch WebBrowser bindsym $Mod+t exec --no-startup-id exo-open --launch TerminalEmulator
bindsym $Mod+f exec --no-startup-id exo-open --launch FileManager 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 # logout script
bindsym $Mod+x exec --no-startup-id rofi_run -l 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'" 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 # audio
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 XF86AudioMute exec --no-startup-id pamixer -t
bindsym XF86AudioRaiseVolume exec --no-startup-id pamixer -i 2 bindsym XF86AudioRaiseVolume exec --no-startup-id pamixer -i 2
bindsym XF86AudioLowerVolume exec --no-startup-id pamixer -d 2 bindsym XF86AudioLowerVolume exec --no-startup-id pamixer -d 2
bindsym XF86AudioMute exec --no-startup-id pamixer -t
# backlight # 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 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+t layout tabbed
bindsym $Mod+Shift+s layout stacking bindsym $Mod+Shift+s layout stacking
bindsym $Mod+Shift+h layout toggle split bindsym $Mod+Shift+h layout toggle split
default_orientation horizontal default_orientation horizontal
###################################################### ######################################################
@ -226,9 +219,10 @@ default_orientation horizontal
###################################################### ######################################################
new_window normal new_window normal
new_float normal new_float normal
hide_edge_borders both hide_edge_borders both
popup_during_fullscreen smart
bindsym $Mod+shift+b border toggle bindsym $Mod+shift+b border toggle
# changing border style # changing border style
@ -237,14 +231,14 @@ bindsym $Mod+y border 1pixel
bindsym $Mod+u border none bindsym $Mod+u border none
# change gaps # change gaps
bindsym $Mod+plus gaps inner current plus 5 bindsym $Mod+plus gaps inner current plus 5
bindsym $Mod+minus gaps inner current minus 5 bindsym $Mod+minus gaps inner current minus 5
bindsym $Mod+Shift+plus gaps outer current plus 5 bindsym $Mod+Shift+plus gaps outer current plus 5
bindsym $Mod+Shift+minus gaps outer current minus 5 bindsym $Mod+Shift+minus gaps outer current minus 5
bindsym $Mod+Control+plus gaps inner all plus 5 bindsym $Mod+Control+plus gaps inner all plus 5
bindsym $Mod+Control+minus gaps inner all minus 5 bindsym $Mod+Control+minus gaps inner all minus 5
bindsym $Mod+Control+Shift+plus gaps outer all plus 5 bindsym $Mod+Control+Shift+plus gaps outer all plus 5
bindsym $Mod+Control+Shift+minus gaps outer all minus 5 bindsym $Mod+Control+Shift+minus gaps outer all minus 5
################################################### ###################################################
############ application settings ############ ############ 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)(?:qt5ct|pinentry)"] floating enable, focus
for_window [class="(?i)(?:termite|thunar)"] 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 # Assign Applications to specific workspace
# get class with xprop # get class with xprop
assign [class="(?i)(?:firefox)"] → $WS1 assign [class="(?i)(?:firefox)"] → $WS1
assign [class="(?i)(?:geany)"] → $WS2 assign [class="(?i)(?:geany)"] → $WS2
assign [class="(?i)(?:thunar)"] → $WS3 assign [class="(?i)(?:thunar)"] → $WS3
# focus, floating, & sticky # focus, floating, & sticky
for_window [title="(?i)(?:copying|deleting|moving)"] floating enable 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 exec --no-startup-id i3-msg workspace $WS1

View File

@ -4,16 +4,6 @@ al-compositor --start &
# enable numlock, commented out for laptop users # enable numlock, commented out for laptop users
# numlockx & # numlockx &
# polkit, required for authentication
/usr/lib/polkit-gnome/polkit-gnome-authentication-agent-1 &
# keyring for storing saved passwords
gnome-keyring-daemon --start --components=pkcs11 &
# pressing super key alone simulates pressing Alt-F1
ksuperkey -e 'Super_L=Alt_L|F1' &
ksuperkey -e 'Super_R=Alt_L|F1' &
# restore wallpaper # restore wallpaper
nitrogen --restore & nitrogen --restore &

View File

@ -257,6 +257,11 @@
<command>exo-open --launch TerminalEmulator</command> <command>exo-open --launch TerminalEmulator</command>
</action> </action>
</keybind> </keybind>
<keybind key="C-A-t">
<action name="Execute">
<command>exo-open --launch TerminalEmulator</command>
</action>
</keybind>
<keybind key="W-Return"> <keybind key="W-Return">
<action name="Execute"> <action name="Execute">
<command>exo-open --launch TerminalEmulator</command> <command>exo-open --launch TerminalEmulator</command>

View File

@ -6,10 +6,12 @@ super + w
super + t super + t
exo-open --launch TerminalEmulator exo-open --launch TerminalEmulator
# terminal emulator
super + Return super + Return
exo-open --launch TerminalEmulator exo-open --launch TerminalEmulator
ctrl + shift + t
exo-open --launch TerminalEmulator
# file manager # file manager
super + f super + f
exo-open --launch FileManager exo-open --launch FileManager

View File

@ -4,17 +4,17 @@
runtime! archlinux.vim runtime! archlinux.vim
" additional settings " additional settings
set modeline " enable vim modelines set modeline " enable vim modelines
set hlsearch " highlight search items set hlsearch " highlight search items
set incsearch " searches are performed as you type set incsearch " searches are performed as you type
set clipboard^=unnamedplus " system clipboard (requires +clipboard) set clipboard^=unnamed,unnamedplus " system clipboard (requires +clipboard)
set number " enable line numbers set number " enable line numbers
set confirm " ask confirmation for some things, like save before quit, etc. set confirm " ask confirmation like save before quit.
set wildmenu " Tab completion menu when using command mode set wildmenu " Tab completion menu when using command mode
set expandtab " Tab key inserts spaces not tabs set expandtab " Tab key inserts spaces not tabs
set softtabstop=4 " spaces to enter for each tab set softtabstop=4 " spaces to enter for each tab
set shiftwidth=4 " amount of spaces for indentation set shiftwidth=4 " amount of spaces for indentation
set shortmess+=aAcIws " Hide or shorten certain messages set shortmess+=aAcIws " Hide or shorten certain messages
let g:netrw_altv = 1 let g:netrw_altv = 1
let g:netrw_liststyle = 3 let g:netrw_liststyle = 3
@ -38,8 +38,8 @@ endif
syntax enable syntax enable
if has('termguicolors') && $DISPLAY !=? '' && &t_Co == 256 if has('termguicolors') && $DISPLAY !=? '' && &t_Co == 256
set termguicolors " true colors in the terminal set termguicolors " true colors in the terminal
let g:jinx_colors = 'night' " night or day, 'T' to change on the fly let g:jinx_colors = 'night' " night or day
try try
colorscheme jinx colorscheme jinx
catch catch

View File

@ -15,6 +15,7 @@ fi
[ -f ~/.Xresources ] && xrdb -merge ~/.Xresources [ -f ~/.Xresources ] && xrdb -merge ~/.Xresources
[ -f ~/.xprofile ] && . ~/.xprofile [ -f ~/.xprofile ] && . ~/.xprofile
# don't put commands below the exec line # don't put commands below the exec line
# launch the session # launch the session

View File

@ -2,7 +2,9 @@
# vim:ft=sh # vim:ft=sh
# sourced at boot by xinit and lightdm # sourced at boot by both xinit and most display managers like lightdm
export XDG_CONFIG_HOME="$HOME/.config"
[ -d /sbin ] && PATH="$PATH:/sbin" [ -d /sbin ] && PATH="$PATH:/sbin"
[ -d /usr/sbin ] && PATH="$PATH:/usr/sbin" [ -d /usr/sbin ] && PATH="$PATH:/usr/sbin"
@ -11,6 +13,10 @@
# restore the background # restore the background
nitrogen --restore & nitrogen --restore &
# keyring and polkit daemons
/usr/lib/polkit-gnome/polkit-gnome-authentication-agent-1 &
gnome-keyring-daemon --start --components=pkcs11 &
# pressing super alone simulates Alt-F1 # pressing super alone simulates Alt-F1
ksuperkey -e 'Super_L=Alt_L|F1' & ksuperkey -e 'Super_L=Alt_L|F1' &
ksuperkey -e 'Super_R=Alt_L|F1' & ksuperkey -e 'Super_R=Alt_L|F1' &
@ -22,5 +28,3 @@ xset dpms 1200 1300 1400
# keyboard repeat rate # keyboard repeat rate
kbdrate -d 400 -r 50 kbdrate -d 400 -r 50
xset r rate 350 60 xset r rate 350 60
export XDG_CONFIG_HOME="$HOME/.config"