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
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
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 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+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
@ -109,9 +101,9 @@ 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
@ -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
######################################################
@ -227,8 +220,9 @@ default_orientation horizontal
new_window normal
new_float normal
hide_edge_borders both
popup_during_fullscreen smart
bindsym $Mod+shift+b border toggle
# changing border style
@ -264,4 +258,6 @@ assign [class="(?i)(?:thunar)"] → $WS3
for_window [title="(?i)(?:copying|deleting|moving)"] floating enable
for_window [window_role="(?i)(?:pop-up|setup)"] floating enable
popup_during_fullscreen smart
exec --no-startup-id i3-msg workspace $WS1

View File

@ -4,16 +4,6 @@ al-compositor --start &
# enable numlock, commented out for laptop users
# 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
nitrogen --restore &

View File

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

View File

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

View File

@ -7,9 +7,9 @@ runtime! archlinux.vim
set modeline " enable vim modelines
set hlsearch " highlight search items
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 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 expandtab " Tab key inserts spaces not tabs
set softtabstop=4 " spaces to enter for each tab
@ -39,7 +39,7 @@ syntax enable
if has('termguicolors') && $DISPLAY !=? '' && &t_Co == 256
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
colorscheme jinx
catch

View File

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

View File

@ -2,7 +2,9 @@
# 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 /usr/sbin ] && PATH="$PATH:/usr/sbin"
@ -11,6 +13,10 @@
# restore the background
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
ksuperkey -e 'Super_L=Alt_L|F1' &
ksuperkey -e 'Super_R=Alt_L|F1' &
@ -22,5 +28,3 @@ xset dpms 1200 1300 1400
# keyboard repeat rate
kbdrate -d 400 -r 50
xset r rate 350 60
export XDG_CONFIG_HOME="$HOME/.config"