Move startpage out of user-skel, update user scripts

This commit is contained in:
natemaia
2017-12-05 19:50:28 -08:00
parent e317a9d278
commit 69b746d51b
26 changed files with 249 additions and 433 deletions

View File

@ -25,31 +25,31 @@ set_from_resource $grey color7 #969CD3
set_from_resource $white color15 #F1F1F1
set_from_resource $black color0 #19043C
# class bg bd txt ind
client.focused $bg $blue $fg $blue
client.unfocused $bg $bg $fg $bg
client.focused_inactive $bg $bg $fg $bg
client.urgent $bg $red $fg $red
client.background $bg
# class bd bg txt ind child_bordr
client.focused $grey $bg $fg $blue $grey
client.unfocused $grey $bg $black $bg $bg
client.focused_inactive $grey $bg $black $bg $bg
client.urgent $red $bg $red $red $red
client.placeholder $grey $bg $bg $bg $bg
client.background $bg
# border
for_window [class="^.*"] border pixel 2
# border & title
for_window [class="^.*"] border pixel 2, title_format "<b> %class >> %title </b>"
# gaps
gaps inner 12
gaps inner 15
gaps outer 0
# font
font pango:Ubuntu 11
##
#### Set
##
# $mod for Super or Alt
set $mod Mod4
#set $mod Mod1
# $Mod = Super or Alt?
set $Mod Mod4
#set $Mod Mod1
# direction keys
set $up l
@ -57,18 +57,18 @@ set $down k
set $left j
set $right semicolon
set $WS1 "1:"
set $WS2 "2:"
set $WS3 "3:"
set $WS4 "4:"
set $WS5 "5:"
set $WS6 "6:"
set $WS7 "7:"
set $WS8 "8:"
set $WS1 "1: "
set $WS2 "2: "
set $WS3 "3: "
set $WS4 "4: "
set $WS5 "5: "
set $WS6 "6: "
set $WS7 "7: "
set $WS8 "8: "
# monitors
set $firstMonitor HDMI1
set $secondMonitor HDMI2
set $Mon1 HDMI1
set $Mon2 HDMI2
####################################################################################################
################# Autostart ##################
@ -78,6 +78,9 @@ set $secondMonitor HDMI2
exec_always --no-startup-id start-compton
exec_always --no-startup-id start-polybar
exec_always --no-startup-id numlockx on
exec_always --no-startup-id nitrogen --restore
exec_always --no-startup-id xrdb -load ~/.Xresources
exec_always --no-startup-id pkill trayer; trayer --edge bottom --align left --heighttype pixel --height 18 --widthtype request --SetDockType false --expand true --transparent true --alpha 255
# run once
exec --no-startup-id xfsettingsd
@ -91,7 +94,7 @@ exec --no-startup-id lxpolkit
####################################################################################################
# kill focused window
bindsym $mod+Shift+q kill
bindsym $Mod+Shift+q kill
bindsym Mod1+q kill
# launchers
@ -99,13 +102,13 @@ bindsym Control+space exec --no-startup-id rofi-gorice
bindsym Mod1+F1 exec --no-startup-id rofi-gorice
# core
bindsym $mod+e exec --no-startup-id al-open -edit
bindsym $mod+t exec --no-startup-id 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+e exec --no-startup-id al-open -edit
bindsym $Mod+t exec exo-open --launch TerminalEmulator
bindsym $Mod+w exec exo-open --launch WebBrowser
bindsym $Mod+f exec exo-open --launch FileManager
# logout
bindsym $mod+x exec --no-startup-id rofi-logout
bindsym $Mod+x exec --no-startup-id rofi-logout
# long command broken into multiple lines
bindsym Print exec --no-startup-id "scrot '%S.png' \
@ -128,81 +131,81 @@ bindsym XF86MonBrightnessDown exec --no-startup-id xbacklight -dec 10
####################################################################################################
# workspace assignment
workspace $WS1 output $firstMonitor
workspace $WS2 output $secondMonitor
workspace $WS3 output $firstMonitor
workspace $WS4 output $secondMonitor
workspace $WS5 output $firstMonitor
workspace $WS6 output $secondMonitor
workspace $WS7 output $firstMonitor
workspace $WS8 output $secondMonitor
workspace $WS1 output $Mon1
workspace $WS2 output $Mon1
workspace $WS3 output $Mon1
workspace $WS4 output $Mon1
workspace $WS5 output $Mon2
workspace $WS6 output $Mon2
workspace $WS7 output $Mon2
workspace $WS8 output $Mon2
# switch to workspace
bindsym $mod+1 workspace $WS1
bindsym $mod+2 workspace $WS2
bindsym $mod+3 workspace $WS3
bindsym $mod+4 workspace $WS4
bindsym $mod+5 workspace $WS5
bindsym $mod+6 workspace $WS6
bindsym $mod+7 workspace $WS7
bindsym $mod+8 workspace $WS8
bindsym $Mod+1 workspace $WS1
bindsym $Mod+2 workspace $WS2
bindsym $Mod+3 workspace $WS3
bindsym $Mod+4 workspace $WS4
bindsym $Mod+5 workspace $WS5
bindsym $Mod+6 workspace $WS6
bindsym $Mod+7 workspace $WS7
bindsym $Mod+8 workspace $WS8
# move focused container to workspace
bindsym $mod+Shift+1 move container to workspace $WS1; workspace $WS1
bindsym $mod+Shift+2 move container to workspace $WS2; workspace $WS2
bindsym $mod+Shift+3 move container to workspace $WS3; workspace $WS3
bindsym $mod+Shift+4 move container to workspace $WS4; workspace $WS4
bindsym $mod+Shift+5 move container to workspace $WS5; workspace $WS5
bindsym $mod+Shift+6 move container to workspace $WS6; workspace $WS6
bindsym $mod+Shift+7 move container to workspace $WS7; workspace $WS7
bindsym $mod+Shift+8 move container to workspace $WS8; workspace $WS8
bindsym $Mod+Shift+1 move container to workspace $WS1; workspace $WS1
bindsym $Mod+Shift+2 move container to workspace $WS2; workspace $WS2
bindsym $Mod+Shift+3 move container to workspace $WS3; workspace $WS3
bindsym $Mod+Shift+4 move container to workspace $WS4; workspace $WS4
bindsym $Mod+Shift+5 move container to workspace $WS5; workspace $WS5
bindsym $Mod+Shift+6 move container to workspace $WS6; workspace $WS6
bindsym $Mod+Shift+7 move container to workspace $WS7; workspace $WS7
bindsym $Mod+Shift+8 move container to workspace $WS8; workspace $WS8
####################################################################################################
################# Reload configs #################
####################################################################################################
# restart i3 inplace (preserves your layout/session, can be used to upgrade i3)
bindsym $mod+Shift+r restart
bindsym $Mod+Shift+r restart
# reload the configuration file
bindsym $mod+Shift+c reload
bindsym $Mod+Shift+c reload
####################################################################################################
################ Container/Window control ##################
####################################################################################################
# Scratchpad, Floating
bindsym $mod+minus move scratchpad
bindsym $mod+plus scratchpad show
bindsym $mod+space floating toggle
bindsym Mod1+minus move scratchpad
bindsym Mod1+plus scratchpad show
bindsym $Mod+space floating toggle
floating_modifier Mod1
# change focus
bindsym $mod+$left focus left
bindsym $mod+$down focus down
bindsym $mod+$up focus up
bindsym $mod+$right focus right
bindsym $Mod+$left focus left
bindsym $Mod+$down focus down
bindsym $Mod+$up focus up
bindsym $Mod+$right focus right
# alternatively, you can use the cursor keys:
bindsym $mod+Left focus left
bindsym $mod+Down focus down
bindsym $mod+Up focus up
bindsym $mod+Right focus right
bindsym $Mod+Left focus left
bindsym $Mod+Down focus down
bindsym $Mod+Up focus up
bindsym $Mod+Right focus right
bindsym $mod+p focus parent
bindsym $mod+c focus child
bindsym $Mod+p focus parent
bindsym $Mod+c focus child
# move focused window
bindsym $mod+Shift+$left move left 10px
bindsym $mod+Shift+$down move down 10px
bindsym $mod+Shift+$up move up 10px
bindsym $mod+Shift+$right move right 10px
bindsym $Mod+Shift+$left move left 10px
bindsym $Mod+Shift+$down move down 10px
bindsym $Mod+Shift+$up move up 10px
bindsym $Mod+Shift+$right move right 10px
# alternatively, you can use the cursor keys:
bindsym $mod+Shift+Up move up 10px
bindsym $mod+Shift+Down move down 10px
bindsym $mod+Shift+Left move left 10px
bindsym $mod+Shift+Right move right 10px
bindsym $Mod+Shift+Up move up 10px
bindsym $Mod+Shift+Down move down 10px
bindsym $Mod+Shift+Left move left 10px
bindsym $Mod+Shift+Right move right 10px
# Size
bindsym Mod1+Up resize shrink height 10 px or 1 ppt
@ -210,19 +213,20 @@ bindsym Mod1+Down resize grow height 10 px or 1 ppt
bindsym Mod1+Left resize shrink width 10 px or 1 ppt
bindsym Mod1+Right resize grow width 10 px or 1 ppt
# next/previous workspace
bindsym Mod1+Tab workspace next
bindsym Mod1+Shift+Tab workspace prev
# layout toggle, keycode 23 is Tab
bindcode Mod1+23 layout toggle tabbed split
bindcode $Mod+23 layout toggle splitv splith
# switch to workspace with urgent window
for_window [urgent=latest] focus
for_window [urgent="latest"] focus
focus_on_window_activation focus
# container layout
bindsym $mod+h split h
bindsym $mod+v split v
bindsym $mod+Shift+t layout tabbed
bindsym $mod+Shift+s layout stacking
bindsym $mod+Shift+h layout toggle split
bindsym $Mod+h split h
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
####################################################################################################
@ -233,35 +237,52 @@ new_window normal
new_float normal
hide_edge_borders both
popup_during_fullscreen smart
bindsym $mod+shift+b border toggle
bindsym $Mod+shift+b border toggle
#changing border style
bindsym $mod+n border normal
bindsym $mod+y border 1pixel
bindsym $mod+u border none
bindsym $Mod+n border normal
bindsym $Mod+y border 1pixel
bindsym $Mod+u border none
set $mode_gaps Gap Size  + | - 
bindsym $mod+Shift+g mode "$mode_gaps"
mode "$mode_gaps" {
bindsym plus gaps inner all plus 2
bindsym minus gaps inner all minus 2
bindsym Return mode "default"
bindsym Escape mode "default"
}
# change gaps
bindsym $Mod+plus gaps outer current plus 5
bindsym $Mod+minus gaps outer current minus 5
bindsym $Mod+Shift+plus gaps inner current plus 5
bindsym $Mod+Shift+minus gaps inner 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 #################
####################################################################################################
for_window [class="qt5ct|Lxappearance|^Gpick$|Pamac|Peek|Nitrogen"] floating enable
for_window [window_role="^Preferences$"] floating enable
for_window [class="Termite|^Thunar|Geany|Firefox"] focus
# focus & floating
for_window [class="(?i)(?:lxapp\w+|peek)"] floating enable, focus
for_window [class="(?i)(?:gpic\w+|gvim)"] floating enable, focus
for_window [class="(?i)(?:deluge|nitrogen)"] floating enable, focus
for_window [class="(?i)(?:qt5ct|pinentry)"] floating enable, focus
for_window [class="(?i)(?:termite|thunar)"] focus
for_window [class="(?i)(?:geany|firefox)"] focus
# Assign Applications to specific workspace
# get class with xprop
assign [class="Firefox"] → $WS1
assign [class="Geany"] → $WS2
assign [class="Thunar"] → $WS3
assign [class="^Gimp"] → $WS4
assign [class="(?i)(?:firefox)"] → $WS1
assign [class="(?i)(?:geany)"] → $WS2
assign [class="(?i)(?:thunar)"] → $WS3
assign [class="(?i)(?:gimp|nitrogen)"] → $WS4
# focus, floating, & sticky
for_window [title="(?i)(?:copying|deleting|moving|auth\w+)"] floating enable, sticky enable
for_window [window_role="(?i)(?:pop-up|setup|preferen\w+)"] floating enable, sticky enable
# set trayer to be borderless
for_window [class="(?i)trayer"] border pixel 0
# start on main workspaces when reloading i3 (keep me at the bottom)
exec_always --no-startup-id i3-msg 'workspace $WS5, workspace $WS1'