summaryrefslogtreecommitdiff
path: root/.config/i3
diff options
context:
space:
mode:
authorDavid Luevano <55825613+luevano@users.noreply.github.com>2020-02-17 11:16:33 -0700
committerDavid Luevano <55825613+luevano@users.noreply.github.com>2020-02-17 11:16:33 -0700
commit657eff1ab63069009227fb00410676d3f2980fdc (patch)
treec1916acf4f9ad15ea35e871d8e281c8b97aa0287 /.config/i3
parent7aea637ce0c2d494e8f7d43ff143b8ec970b0657 (diff)
Customize workspaces
Diffstat (limited to '.config/i3')
-rw-r--r--.config/i3/config307
1 files changed, 166 insertions, 141 deletions
diff --git a/.config/i3/config b/.config/i3/config
index 01e3f18..038713c 100644
--- a/.config/i3/config
+++ b/.config/i3/config
@@ -10,45 +10,70 @@ gaps inner 5
gaps outer 5
set $mod Mod4
font pango:monospace 10
- ## i3config variables.
-set $mon1 "HDMI-0"
-set $mon2 "DP-0"
-set $term --no-startup-id $TERMINAL
-set $fmgr --no-startup-id $FILE
-set $ibwsr --no-startup-id $BROWSER
-set $edit --no-startup-id $EDITOR
-set $read --no-startup-id $READER
-set $rstbar pkill -RTMIN+1 $STATUSBAR
- ## Workspace variables.
-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 $ws9 "9"
-set $ws10 "10"
- ## Colors from ~/.Xresources.
-# set_from_resource $bg background
-# set_from_resource $fg foreground
-set_from_resource $c0 color0
-set_from_resource $c1 color1
-set_from_resource $c2 color2
-set_from_resource $c3 color3
-set_from_resource $c4 color4
-set_from_resource $c5 color5
-set_from_resource $c6 color6
-set_from_resource $c7 color7
-set_from_resource $c8 color8
-set_from_resource $c9 color9
-set_from_resource $c10 color10
-set_from_resource $c11 color11
-set_from_resource $c12 color12
-set_from_resource $c13 color13
-set_from_resource $c14 color14
-set_from_resource $c15 color15
+## i3config variables.
+ set $mon1 "HDMI-0"
+ set $mon2 "DP-0"
+ set $term --no-startup-id $TERMINAL
+ set $fmgr --no-startup-id $FILE
+ set $ibwsr --no-startup-id $BROWSER
+ set $edit --no-startup-id $EDITOR
+ set $read --no-startup-id $READER
+ set $rstbar pkill -RTMIN+1 $STATUSBAR
+## Colors from ~/.Xresources.
+ # set_from_resource $bg background
+ # set_from_resource $fg foreground
+ set_from_resource $c0 color0
+ set_from_resource $c1 color1
+ set_from_resource $c2 color2
+ set_from_resource $c3 color3
+ set_from_resource $c4 color4
+ set_from_resource $c5 color5
+ set_from_resource $c6 color6
+ set_from_resource $c7 color7
+ set_from_resource $c8 color8
+ set_from_resource $c9 color9
+ set_from_resource $c10 color10
+ set_from_resource $c11 color11
+ set_from_resource $c12 color12
+ set_from_resource $c13 color13
+ set_from_resource $c14 color14
+ set_from_resource $c15 color15
+## Workspace variables.
+ set $ws1 "1: Terminal"
+ set $ws2 "2: Editor"
+ set $ws3 "3: Coding"
+ set $ws4 "4: Files"
+ set $ws5 "5: Multimedia"
+ set $ws6 "6: Browser"
+ set $ws7 "7: Chat"
+ set $ws8 "8: Reader"
+ set $ws9 "9: Gaming"
+ set $ws10 "10: Music"
+## Workspace location in monitors.
+ workspace $ws1 output $mon1 $mon2
+ workspace $ws2 output $mon1 $mon2
+ workspace $ws3 output $mon1 $mon2
+ workspace $ws4 output $mon1 $mon2
+ workspace $ws5 output $mon1 $mon2
+ workspace $ws6 output $mon2 $mon1
+ workspace $ws7 output $mon2 $mon1
+ workspace $ws8 output $mon2 $mon1
+ workspace $ws9 output $mon2 $mon1
+ workspace $ws10 output $mon2 $mon1
+## Applications location in workspaces.
+ # WS1
+ # WS2
+ # WS3
+ # WS4
+ # WS5
+ # WS6
+ assign [class="Google-chrome"] $ws6
+ # WS7
+ assign [class="TelegramDesktop"] $ws7
+ # WS8
+ # WS9
+ # WS10
+ assign [class="Spotify"] $ws10
##---i3 color scheme---##
# Class bor bgt txt ind chb
@@ -60,124 +85,124 @@ client.placeholder $c8 $c8 $c14 $c8 $c8
client.background $c15
##---i3bar configuration---##
- ## Primary monitor.
-bar {
- output $mon1
- tray_output $mon1
- position top
- status_command $STATUSBAR
- colors{
- background $c8
- statusline $c12
- separator $c0
+## Primary monitor.
+ bar {
+ output $mon1
+ tray_output none
+ position top
+ status_command $STATUSBAR
+ colors{
+ background $c8
+ statusline $c12
+ separator $c0
- # Class bor bag txt
- focused_workspace $c14 $c4 $c8
- active_workspace $c14 $c11 $c8
- inactive_workspace $c11 $c0 $c14
- urgent_workspace $c1 $c1 $c8
- binding_mode $c8 $c3 $c8
+ # Class bor bag txt
+ focused_workspace $c14 $c4 $c8
+ active_workspace $c14 $c11 $c8
+ inactive_workspace $c11 $c0 $c14
+ urgent_workspace $c1 $c1 $c8
+ binding_mode $c8 $c3 $c8
+ }
}
-}
- ## Second monitor.
-bar {
- output $mon2
- tray_output none
- position top
- status_command $STATUSBAR
- colors{
- background $c8
- statusline $c12
- separator $c0
+## Second monitor.
+ bar {
+ output $mon2
+ tray_output $mon2
+ position top
+ status_command $STATUSBAR
+ colors{
+ background $c8
+ statusline $c12
+ separator $c0
- # Class bor bag txt
- focused_workspace $c14 $c4 $c8
- active_workspace $c14 $c11 $c8
- inactive_workspace $c11 $c0 $c14
- urgent_workspace $c1 $c1 $c8
- binding_mode $c8 $c3 $c8
+ # Class bor bag txt
+ focused_workspace $c14 $c4 $c8
+ active_workspace $c14 $c11 $c8
+ inactive_workspace $c11 $c0 $c14
+ urgent_workspace $c1 $c1 $c8
+ binding_mode $c8 $c3 $c8
+ }
}
-}
##--Keybindings--##
- ## Basic bindings.
-bindsym $mod+Shift+c reload
-bindsym $mod+Shift+r restart
-bindsym $mod+Shift+e exec "i3-nagbar -t warning -m 'Exit i3? This will end your X session.' -B 'Yes, exit i3' 'i3-msg exit'"
+## Basic bindings.
+ bindsym $mod+Shift+c reload
+ bindsym $mod+Shift+r restart
+ bindsym $mod+Shift+e exec "i3-nagbar -t warning -m 'Exit i3? This will end your X session.' -B 'Yes, exit i3' 'i3-msg exit'"
- ## Run commands
-bindsym $mod+Return exec $term
+## Run commands
+ bindsym $mod+Return exec $term
- ## Dmenu.
-bindsym $mod+d exec --no-startup-id i3-dmenu-desktop
+## Dmenu.
+ bindsym $mod+d exec --no-startup-id i3-dmenu-desktop
- ## Navigation and window options.
- # Basics.
-bindsym $mod+Shift+q kill
-bindsym $mod+r mode "resize"
-floating_modifier $mod
-# bindsym $mod+Shift+h split h
-bindsym $mod+Shift+v split v
-bindsym $mod+f fullscreen toggle
+## Navigation and window options.
+ # Basics.
+ bindsym $mod+Shift+q kill
+ bindsym $mod+r mode "resize"
+ floating_modifier $mod
+ bindsym $mod+g split h
+ bindsym $mod+v split v
+ bindsym $mod+f fullscreen toggle
- # Focus.
-bindsym $mod+h focus left
-bindsym $mod+j focus down
-bindsym $mod+k focus up
-bindsym $mod+l focus right
-# bindsym $mod+space focus mode_toggle
-# bindsym $mod+a focus parent
-# bindsym $mod+d focus child
+ # Focus.
+ bindsym $mod+h focus left
+ bindsym $mod+j focus down
+ bindsym $mod+k focus up
+ bindsym $mod+l focus right
+ # bindsym $mod+space focus mode_toggle
+ # bindsym $mod+a focus parent
+ # bindsym $mod+d focus child
- # 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
+ # 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
- # Container layout.
-bindsym $mod+s layout stacking
-bindsym $mod+w layout tabbed
-bindsym $mod+e layout toggle split
+ # Container layout.
+ bindsym $mod+s layout stacking
+ bindsym $mod+w layout tabbed
+ bindsym $mod+e layout toggle split
- ## Workspace bindings.
- # Change 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+9 workspace $ws9
-bindsym $mod+0 workspace $ws10
+## Workspace bindings.
+ # Change 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+9 workspace $ws9
+ bindsym $mod+0 workspace $ws10
# Move focused window to workspace.
-bindsym $mod+Shift+1 move container to workspace $ws1
-bindsym $mod+Shift+2 move container to workspace $ws2
-bindsym $mod+Shift+3 move container to workspace $ws3
-bindsym $mod+Shift+4 move container to workspace $ws4
-bindsym $mod+Shift+5 move container to workspace $ws5
-bindsym $mod+Shift+6 move container to workspace $ws6
-bindsym $mod+Shift+7 move container to workspace $ws7
-bindsym $mod+Shift+8 move container to workspace $ws8
-bindsym $mod+Shift+9 move container to workspace $ws9
-bindsym $mod+Shift+0 move container to workspace $ws10
+ bindsym $mod+Shift+1 move container to workspace $ws1
+ bindsym $mod+Shift+2 move container to workspace $ws2
+ bindsym $mod+Shift+3 move container to workspace $ws3
+ bindsym $mod+Shift+4 move container to workspace $ws4
+ bindsym $mod+Shift+5 move container to workspace $ws5
+ bindsym $mod+Shift+6 move container to workspace $ws6
+ bindsym $mod+Shift+7 move container to workspace $ws7
+ bindsym $mod+Shift+8 move container to workspace $ws8
+ bindsym $mod+Shift+9 move container to workspace $ws9
+ bindsym $mod+Shift+0 move container to workspace $ws10
- ## Modes.
- # Resize.
-mode "resize" {
- ## Resize mode keybindings.
- bindsym h resize shrink width 10 px or 10 ppt
- bindsym j resize grow height 10 px or 10 ppt
- bindsym k resize shrink height 10 px or 10 ppt
- bindsym l resize grow width 10 px or 10 ppt
- ## Return to default mode keybindings.
- bindsym Return mode "default"
- bindsym Escape mode "default"
- bindsym $mod+r mode "default"
-}
+## Modes.
+ # Resize.
+ mode "resize" {
+ # Resize mode keybindings.
+ bindsym h resize shrink width 10 px or 10 ppt
+ bindsym j resize grow height 10 px or 10 ppt
+ bindsym k resize shrink height 10 px or 10 ppt
+ bindsym l resize grow width 10 px or 10 ppt
+ # Return to default mode keybindings.
+ bindsym Return mode "default"
+ bindsym Escape mode "default"
+ bindsym $mod+r mode "default"
+ }
##--Extra XF86 Keys--##
bindsym XF86AudioRaiseVolume exec --no-startup-id pactl set-sink-volume @DEFAULT_SINK@ +2% && $rstbar