all repos — dotfiles @ f43a053689bdab1dabe84e6b5465df1e6173c660

linux dotfiles

update i3/config

organizing
prithugoswami prithugoswami524@gmail.com
Tue, 29 May 2018 23:14:51 +0530
commit

f43a053689bdab1dabe84e6b5465df1e6173c660

parent

107bceb0ba9c586f6d5b2b3e9432611e253334cc

1 files changed, 136 insertions(+), 125 deletions(-)

jump to
M i3/configi3/config

@@ -1,159 +1,75 @@

-#Modifier Key -set $mod Mod4 +# vim: foldmethod=marker + +### Appearance ###{{{ -# set default desktop layout (default is tiling) -# workspace_layout tabbed <stacking|tabbed> +## Wallpaper ## {{{ -#Wallpaper #set $fehbg feh --bg-fill ~/Desktop/walls/wall2.jpg + set $fehbg wal -e -s -i ~/Desktop/walls/wall.jpg +# pywal will set the wallpaper and change the colors only for +# rofi and some other things -# Configure border style <normal|1pixel|pixel xx|none|pixel> -new_window none -new_float normal +#}}} +## Borders ## {{{ + +# Border style <normal|1pixel|pixel <px>|none|pixel> +default_border none +default_floating_border none -# Hide borders +# Hide edge_borders hide_edge_borders none -# change borders -bindsym $mod+u border none -bindsym $mod+Shift+u border pixel 1 -# bindsym $mod+Shift+u border normal +# Change border style <normal|pixel <px>|none|toggle> +bindsym $mod+u border toggle +#}}} +## Gaps ## {{{ +# Gaps bindsym $mod+Shift+0 gaps inner current set 0 , gaps outer current set 0 - -# Font for window titles. Will also be used by the bar unless a different font -# is used in the bar {} block below. -font xft:Roboto 8 +bindsym $mod+Shift+9 gaps inner current set 10 , gaps outer current set -4 -# Use Mouse+$mod to drag floating windows -floating_modifier $mod +#}}} -# start a terminal -bindsym $mod+Return exec terminal +#}}} -# kill focused window -bindsym $mod+o kill +### Application Launcher Key Bindings ###{{{ -# start program launcher -bindsym $mod+d exec --no-startup-id "rofi -show run -lines 3 -padding 25" - -# i3 window swticher using rofi -bindsym $mod+v exec --no-startup-id "rofi -show window -width 70" - +bindsym $mod+Return exec st +bindsym $mod+b exec st -e "ranger" +bindsym $mod+Ctrl+b exec terminal -e 'bmenu' +bindsym $mod+d exec "rofi -show run -lines 3 -padding 25" # Desktop application launcher bindsym $mod+Shift+d exec --no-startup-id "rofi -show drun" +bindsym $mod+i exec --no-startup-id "qutebrowser" +# PD +bindsym $mod+p exec st -e "pd" +# window swticher using rofi +bindsym $mod+v exec --no-startup-id "rofi -show window -width 70" -# launch categorized menu -bindsym $mod+z exec --no-startup-id morc_menu +#}}} -################################################################################################ -## sound-section - DO NOT EDIT if you wish to automatically upgrade Alsa -> Pulseaudio later! ## -################################################################################################ +### Window Management ###{{{ -exec --no-startup-id volumeicon -bindsym $mod+Ctrl+m exec terminal -e 'alsamixer' -#exec --no-startup-id pulseaudio -#exec --no-startup-id pa-applet -#bindsym $mod+Ctrl+m exec pavucontrol - -################################################################################################ - -# Screen brightness controls -# bindsym XF86MonBrightnessUp exec "xbacklight -inc 10; notify-send 'brightness up'" -# bindsym XF86MonBrightnessDown exec "xbacklight -dec 10; notify-send 'brightness down'" - -# Start Applications -bindsym $mod+Ctrl+b exec terminal -e 'bmenu' -bindsym $mod+F2 exec google-chrome-stable -bindsym $mod+F3 exec urxvt -e "ranger" -bindsym $mod+Shift+F3 exec gksu pcmanfm -bindsym $mod+F5 exec terminal -e 'mocp' -bindsym $mod+t exec --no-startup-id pkill compton -bindsym $mod+b exec --no-startup-id urxvt -e "ranger" -bindsym $mod+i exec qutebrowser -bindsym $mod+Ctrl+t exec --no-startup-id compton -b -exec_always --no-startup-id flashfocus -#bindsym $mod+Shift+d --release exec "killall dunst; exec notify-send 'restart dunst'" - -# Screenshot -bindsym Print exec --no-startup-id i3-scrot -bindsym $mod+Print --release exec --no-startup-id i3-scrot -w -bindsym $mod+Shift+Print --release exec --no-startup-id i3-scrot -s -bindsym $mod+Ctrl+x --release exec --no-startup-id xkill +## Window focus ##{{{ focus_follows_mouse no - # change focus bindsym $mod+h focus left bindsym $mod+j focus down bindsym $mod+k focus up bindsym $mod+l 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 - # move focused window bindsym $mod+Shift+h move left bindsym $mod+Shift+j move down bindsym $mod+Shift+k move up bindsym $mod+Shift+l move right -# alternatively, you can use the cursor keys: -bindsym $mod+Shift+Left move left -bindsym $mod+Shift+Down move down -bindsym $mod+Shift+Up move up -bindsym $mod+Shift+Right move right - -# workspace back and forth (with/without active container) -workspace_auto_back_and_forth no -bindsym $mod+Tab workspace back_and_forth -bindsym $mod+Shift+Tab move container to workspace back_and_forth; workspace back_and_forth - -# split orientation -bindsym $mod+m split h -bindsym $mod+n split v - -# toggle fullscreen mode for the focused container -bindsym $mod+f fullscreen toggle - -# change container layout (stacked, tabbed, toggle split) -bindsym $mod+s layout stacking -bindsym $mod+w layout tabbed -bindsym $mod+e layout toggle split - -# toggle tiling / floating -bindsym $mod+Shift+space floating toggle - -# change focus between tiling / floating windows -bindsym $mod+space focus mode_toggle - -# toggle sticky -bindsym $mod+Shift+s sticky toggle - -# focus the parent container -bindsym $mod+a focus parent - -# move the currently focused window to the scratchpad -bindsym $mod+Shift+minus move scratchpad - -# Show the next scratchpad window or hide the focused scratchpad window. -# If there are multiple scratchpad windows, this command cycles through them. -bindsym $mod+minus scratchpad show - -#navigate workspaces next / previous -bindsym $mod+Ctrl+Right workspace next -bindsym $mod+Ctrl+Left workspace prev - -#PD -bindsym $mod+p exec urxvt -e "pd" +#}}} +## Workspace ##{{{ # Workspace names -# to display names or symbols instead of plain workspace numbers you can use -# something like: set $ws1 1:mail #set $ws2 2: set $ws1 1 set $ws2 2

@@ -163,7 +79,6 @@ set $ws5 5

set $ws6 6 set $ws7 7 set $ws8 8 -# quick switch workspace set $wsq q # switch to workspace

@@ -199,8 +114,72 @@ 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+q move container to workspace $wsq; workspace $wsq +workspace_auto_back_and_forth no +bindsym $mod+Tab workspace back_and_forth +bindsym $mod+Shift+Tab move container to workspace back_and_forth; workspace back_and_forth -# Dual Monitor +#navigate workspaces next / previous +bindsym $mod+Ctrl+l workspace next +bindsym $mod+Ctrl+h workspace prev + +#}}} +## Containter ##{{{ + +# split orientation +bindsym $mod+m split h +bindsym $mod+n split v + +# toggle fullscreen mode for the focused container +bindsym $mod+f fullscreen toggle + +# change container layout (stacked, tabbed, toggle split) +bindsym $mod+s layout stacking +bindsym $mod+w layout tabbed +bindsym $mod+e layout toggle split + +# toggle tiling / floating +bindsym $mod+Shift+space floating toggle + +# change focus between tiling / floating windows +bindsym $mod+space focus mode_toggle + +# toggle sticky +bindsym $mod+Shift+s sticky toggle + +# focus the parent container +# bindsym $mod+a focus parent + +# move the currently focused window to the scratchpad +bindsym $mod+Shift+minus move scratchpad + +# Show the next scratchpad window or hide the focused scratchpad window. +# If there are multiple scratchpad windows, this command cycles through them. +bindsym $mod+minus scratchpad show + +#}}} + +#}}} + +### Dual Monitor Settings ###{{{ + +## Mode - Move to Monitor ##{{{ +set $mode_monitor_move Use h,j,k,l keys to move the workspace to another monitor +bindsym $mod+a mode "$mode_monitor_move" +mode "$mode_monitor_move"{ + bindsym h move workspace to output left + bindsym j move workspace to output down + bindsym k move workspace to output up + bindsym l move workspace to output right + + bindsym Shift+h move container to output left + bindsym Shift+j move container to output down + bindsym Shift+k move container to output up + bindsym Shift+l move container to output right + bindsym Escape mode "default" + bindsym Return mode "default" +} +#}}} +## Monitor Positon Key Bindings ##{{{ # the keybindings mod+Shift+t/y change the monitor position and then write to file the same command # it used to set the the respective position of the monitor. That command is then executed at startup # I am sure most of the flags given to xrandr command are redundant but I am not aware of that atm

@@ -230,6 +209,11 @@ bindsym $mod+Shift+f exec $monitor_duplicate , exec $fehbg , exec echo $monitor_duplicate > ~/.screenlayout/last_layout

# sets monitor to the left and rotates it to left bindsym $mod+Ctrl+y exec --no-startup-id $monitor_right_r_left , exec $fehbg , exec echo $monitor_right_r_left > ~/.screenlayout/last_layout +#}}} + +#}}} + + # Open applications on specific workspaces # assign [class="Thunderbird"] $ws1

@@ -340,7 +324,7 @@ exec_always --no-startup-id ff-theme-util

exec_always --no-startup-id fix_xcursor # configures the monitors according to the last set layout using xrandr exec --no-startup-id ~/.screenlayout/last_layout -exec_always --no-startup-id $fehbg +exec --no-startup-id $fehbg # Color palette used for the terminal ( ~/.Xresources file )

@@ -503,4 +487,31 @@ bindsym Escape mode "default"

} -# AUTOSTART +## Uncategorized ## {{{ +#Modifier Key +set $mod Mod4 +# Use Mouse+$mod to drag floating windows +floating_modifier $mod + +exec_always "killall flashfocus ; flashfocus" + +# Font for window titles. Will also be used by the bar unless a different font +# is used in the bar {} block below. +font xft:Roboto 8 + +# kill focused window +bindsym $mod+o kill +bindsym $mod+Ctrl+o --release exec --no-startup-id xkill + +# Screenshot +bindsym Print exec --no-startup-id i3-scrot +bindsym $mod+Print --release exec --no-startup-id i3-scrot -w +bindsym $mod+Shift+Print --release exec --no-startup-id i3-scrot -s + +exec --no-startup-id volumeicon +bindsym $mod+Ctrl+m exec terminal -e 'alsamixer' + +# Screen brightness controls +# bindsym XF86MonBrightnessUp exec "xbacklight -inc 10; notify-send 'brightness up'" +# bindsym XF86MonBrightnessDown exec "xbacklight -dec 10; notify-send 'brightness down'" +# }}}