Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Jay Ta'ala
jt-config-repo
Commits
ee11b856
Commit
ee11b856
authored
Dec 31, 2021
by
Jay Ta'ala
Browse files
Remap of keys based on my latest use cases.
parent
a83e54cd
Changes
2
Show whitespace changes
Inline
Side-by-side
i3/config
View file @
ee11b856
...
@@ -125,7 +125,7 @@ bindsym $mod_next+Tab exec --no-startup-id "rofi -show-icons -modi windowcd,wind
...
@@ -125,7 +125,7 @@ bindsym $mod_next+Tab exec --no-startup-id "rofi -show-icons -modi windowcd,wind
# instant layout
# instant layout
# REQUIRES XDOTOOL
# REQUIRES XDOTOOL
set $centre_mouse WINDOW=$(xdotool getactivewindow); eval `xdotool getwindowgeometry --shell $WINDOW`; W=`expr $WIDTH / 2`; H=`expr $HEIGHT / 2`; xdotool mousemove --window $WINDOW $W $H
set $centre_mouse WINDOW=$(xdotool getactivewindow); eval `xdotool getwindowgeometry --shell $WINDOW`; W=`expr $WIDTH / 2`; H=`expr $HEIGHT / 2`; xdotool mousemove --window $WINDOW $W $H
bindsym $mod+
grav
e exec --no-startup-id "$centre_mouse; i3-instant-layout --list | rofi -show-icons -sort -kb-row-up \\"Alt+k\\" -kb-row-down \\"Alt+j\\" -theme lb -theme-str '* { font: \\"Sans 16\\"; foreground: #ffffff; border-color: $accent-bg; separatorcolor: $accent-bg; selected-normal-background: $accent-bg; }' -dmenu -i | i3-instant-layout -
bindsym $mod+
Escap
e exec --no-startup-id "$centre_mouse; i3-instant-layout --list | rofi -show-icons -sort -kb-row-up \\"Alt+k\\" -kb-row-down \\"Alt+j\\" -theme lb -theme-str '* { font: \\"Sans 16\\"; foreground: #ffffff; border-color: $accent-bg; separatorcolor: $accent-bg; selected-normal-background: $accent-bg; }' -dmenu -i | i3-instant-layout -
################################################################################################
################################################################################################
...
@@ -233,10 +233,11 @@ bindsym $mod_next+s layout stacking
...
@@ -233,10 +233,11 @@ bindsym $mod_next+s layout stacking
# child container layout bindsyms (creates a child container from currently select window)
# child container layout bindsyms (creates a child container from currently select window)
set $namechildcon "i3-msg focus parent; i3-input -f \\"-*-*-*-*-*-*-24-*-*-*-*-*-*-*\\" -P \\"Name child container: \\" -F 'title_format \\"<span><b>%s</b>%title</span>\\"'; i3-msg focus child"
set $namechildcon "i3-msg focus parent; i3-input -f \\"-*-*-*-*-*-*-24-*-*-*-*-*-*-*\\" -P \\"Name child container: \\" -F 'title_format \\"<span><b>%s</b>%title</span>\\"'; i3-msg focus child"
bindsym $mod+ctrl+q split h; exec $namechildcon
bindsym $mod+ctrl+q split h
bindsym $mod+ctrl+e split v; exec $namechildcon
bindsym $mod+ctrl+e split v
bindsym $mod+ctrl+w split h; layout tabbed; exec $namechildcon
bindsym $mod+ctrl+w split h; layout tabbed
bindsym $mod+ctrl+s split h; layout stacked; exec $namechildcon
bindsym $mod+c split h; layout tabbed
bindsym $mod+ctrl+s split h; layout stacked
# toggle fullscreen mode for the focused container
# toggle fullscreen mode for the focused container
bindsym $mod+f fullscreen toggle
bindsym $mod+f fullscreen toggle
...
@@ -290,6 +291,7 @@ bindsym $mod+Ctrl+l workspace next
...
@@ -290,6 +291,7 @@ bindsym $mod+Ctrl+l workspace next
# to display names or symbols instead of plain workspace numbers you can use
# to display names or symbols instead of plain workspace numbers you can use
# something like: set $ws1 1:mail
# something like: set $ws1 1:mail
# set $ws2 2:
# set $ws2 2:
set $wsg number 0:`
set $ws1 number 1:1
set $ws1 number 1:1
set $ws2 number 2:2
set $ws2 number 2:2
set $ws3 number 3:3
set $ws3 number 3:3
...
@@ -298,9 +300,9 @@ set $ws5 number 5:5
...
@@ -298,9 +300,9 @@ set $ws5 number 5:5
set $ws6 number 6:6
set $ws6 number 6:6
set $ws7 number 7:7
set $ws7 number 7:7
set $ws8 number 8:8
set $ws8 number 8:8
set $wsc number 9:cache
# switch to workspace
# switch to workspace
bindsym $mod+Ctrl+grave workspace $wsg
bindsym $mod+1 workspace $ws1
bindsym $mod+1 workspace $ws1
bindsym $mod+2 workspace $ws2
bindsym $mod+2 workspace $ws2
bindsym $mod+3 workspace $ws3
bindsym $mod+3 workspace $ws3
...
@@ -309,9 +311,9 @@ bindsym $mod+5 workspace $ws5
...
@@ -309,9 +311,9 @@ bindsym $mod+5 workspace $ws5
bindsym $mod+6 workspace $ws6
bindsym $mod+6 workspace $ws6
bindsym $mod+7 workspace $ws7
bindsym $mod+7 workspace $ws7
bindsym $mod+8 workspace $ws8
bindsym $mod+8 workspace $ws8
#bindsym $mod+c workspace $wsc
# Move focused container to workspace
# Move focused container to workspace
bindsym $mod+grave move container to workspace $wsg
bindsym $mod+Shift+1 move container to workspace $ws1
bindsym $mod+Shift+1 move container to workspace $ws1
bindsym $mod+Shift+2 move container to workspace $ws2
bindsym $mod+Shift+2 move container to workspace $ws2
bindsym $mod+Shift+3 move container to workspace $ws3
bindsym $mod+Shift+3 move container to workspace $ws3
...
@@ -320,7 +322,6 @@ bindsym $mod+Shift+5 move container to workspace $ws5
...
@@ -320,7 +322,6 @@ bindsym $mod+Shift+5 move container to workspace $ws5
bindsym $mod+Shift+6 move container to workspace $ws6
bindsym $mod+Shift+6 move container to workspace $ws6
bindsym $mod+Shift+7 move container to workspace $ws7
bindsym $mod+Shift+7 move container to workspace $ws7
bindsym $mod+Shift+8 move container to workspace $ws8
bindsym $mod+Shift+8 move container to workspace $ws8
bindsym $mod+c move container to workspace $wsc
# Move focused container to workspace, and switch to that workspace
# Move focused container to workspace, and switch to that workspace
bindsym $mod+$mod_next+1 move container to workspace $ws1; workspace $ws1
bindsym $mod+$mod_next+1 move container to workspace $ws1; workspace $ws1
...
@@ -333,7 +334,7 @@ bindsym $mod+$mod_next+7 move container to workspace $ws7; workspace $ws7
...
@@ -333,7 +334,7 @@ bindsym $mod+$mod_next+7 move container to workspace $ws7; workspace $ws7
bindsym $mod+$mod_next+8 move container to workspace $ws8; workspace $ws8
bindsym $mod+$mod_next+8 move container to workspace $ws8; workspace $ws8
# move all windows on workspace cache to current container
# move all windows on workspace cache to current container
bindsym $mod+
Ctrl+c
[workspace="
c
"] move container to workspace current
bindsym $mod+
$mod_next+grave
[workspace="
`
"] move container to workspace current
# Open applications on specific workspaces
# Open applications on specific workspaces
# assign [class="Thunderbird"] $ws1
# assign [class="Thunderbird"] $ws1
...
...
i3/config.simple
View file @
ee11b856
...
@@ -12,9 +12,10 @@ set $border_normal border normal 3
...
@@ -12,9 +12,10 @@ set $border_normal border normal 3
set $i3inputfont \\"-*-*-*-*-*-*-24-*-*-*-*-*-*-*\\"
set $i3inputfont \\"-*-*-*-*-*-*-24-*-*-*-*-*-*-*\\"
# Theme options (comment/uncomment theme group)
# Theme options (comment/uncomment theme group)
## Theme 1 "
P
aradise
P
ink"
## Theme 1 "
p
aradise
p
ink"
#set $accent-bg #d64161
#set $accent-bg #d64161
#set $accent-txt #F9FAF9
#set $accent-txt #F9FAF9
##set $accent-txt #363636
#set $indicator #109648
#set $indicator #109648
# Theme 2 "tmux"
# Theme 2 "tmux"
...
@@ -22,8 +23,18 @@ set $i3inputfont \\"-*-*-*-*-*-*-24-*-*-*-*-*-*-*\\"
...
@@ -22,8 +23,18 @@ set $i3inputfont \\"-*-*-*-*-*-*-24-*-*-*-*-*-*-*\\"
#set $accent-txt #F9FAF9
#set $accent-txt #F9FAF9
#set $indicator #d64161
#set $indicator #d64161
# Theme 3 "plurple"
# Theme 3 "french lilac"
set $accent-bg #8f5f95
#set $accent-bg #8f5f95
#set $accent-txt #F9FAF9
#set $indicator #109648
# Theme 4 "cardinal"
#set $accent-bg #ba263f
#set $accent-txt #F9FAF9
#set $indicator #109648
# Theme 5 "illuminating emerald"
set $accent-bg #00916e
set $accent-txt #F9FAF9
set $accent-txt #F9FAF9
set $indicator #109648
set $indicator #109648
...
@@ -32,11 +43,12 @@ set $inactive-bg #323838
...
@@ -32,11 +43,12 @@ set $inactive-bg #323838
set $inactive-txt #F9FAF9
set $inactive-txt #F9FAF9
set $unfocused-bg #566161
set $unfocused-bg #566161
set $unfocused-txt #bdbbbb
set $unfocused-txt #bdbbbb
set $borders-all #000000
# class border backgr. text indic. child_border
# class border backgr. text indic. child_border
client.focused
$accent-bg
$accent-bg $accent-txt $indicator $accent-bg
client.focused
$borders-all
$accent-bg $accent-txt $indicator $accent-bg
client.focused_inactive
$inactive-bg
$inactive-bg $inactive-txt $indicator $inactive-bg
client.focused_inactive
$borders-all
$inactive-bg $inactive-txt $indicator $inactive-bg
client.unfocused
$unfocused-bg
$unfocused-bg $unfocused-txt $indicator $unfocused-bg
client.unfocused
$borders-all
$unfocused-bg $unfocused-txt $indicator $unfocused-bg
#client.urgent #CB4B16 #FDF6E3 #CB4B16 $indicator
#client.urgent #CB4B16 #FDF6E3 #CB4B16 $indicator
#client.placeholder #000000 #0c0c0c $accent-txt #000000
#client.placeholder #000000 #0c0c0c $accent-txt #000000
#client.background #2B2C2B
#client.background #2B2C2B
...
@@ -48,7 +60,7 @@ workspace_layout tabbed
...
@@ -48,7 +60,7 @@ workspace_layout tabbed
title_align center
title_align center
# Configure border style <normal|1pixel|pixel xx|none|pixel>
# Configure border style <normal|1pixel|pixel xx|none|pixel>
for_window [class=".*"] $border_no
_name
for_window [class=".*"] $border_no
rmal
for_window [class=".*"] title_window_icon on
for_window [class=".*"] title_window_icon on
for_window [class=".*"] title_window_icon padding 3px
for_window [class=".*"] title_window_icon padding 3px
...
@@ -81,8 +93,8 @@ exec_always --no-startup-id i3wsr --config ~/.config/i3/i3wsr.toml
...
@@ -81,8 +93,8 @@ exec_always --no-startup-id i3wsr --config ~/.config/i3/i3wsr.toml
exec_always --no-startup-id vmware-user-suid-wrapper
exec_always --no-startup-id vmware-user-suid-wrapper
# picom (compositor)
# picom (compositor)
bindsym $mod+
c
exec --no-startup-id $picom_start
bindsym $mod+
t
exec --no-startup-id $picom_start
bindsym $mod+
$mod_next+c
exec --no-startup-id "killall picom"
bindsym $mod+
ctrl+t
exec --no-startup-id "killall picom"
# kill focused window
# kill focused window
bindsym $mod+Shift+q kill
bindsym $mod+Shift+q kill
...
@@ -90,7 +102,21 @@ bindsym $mod+Shift+q kill
...
@@ -90,7 +102,21 @@ bindsym $mod+Shift+q kill
# instant layout
# instant layout
# REQUIRES XDOTOOL
# REQUIRES XDOTOOL
set $centre_mouse WINDOW=$(xdotool getactivewindow); eval `xdotool getwindowgeometry --shell $WINDOW`; W=`expr $WIDTH / 2`; H=`expr $HEIGHT / 2`; xdotool mousemove --window $WINDOW $W $H
set $centre_mouse WINDOW=$(xdotool getactivewindow); eval `xdotool getwindowgeometry --shell $WINDOW`; W=`expr $WIDTH / 2`; H=`expr $HEIGHT / 2`; xdotool mousemove --window $WINDOW $W $H
bindsym $mod+grave exec --no-startup-id "$centre_mouse; i3-instant-layout --list | rofi -show-icons -sort -kb-row-up \\"Alt+k\\" -kb-row-down \\"Alt+j\\" -theme lb -theme-str '* { font: \\"Sans 16\\"; foreground: #ffffff; border-color: $accent-bg; separatorcolor: $accent-bg; selected-normal-background: $accent-bg; }' -dmenu -i | i3-instant-layout -
bindsym $mod+Escape exec --no-startup-id "$centre_mouse; i3-instant-layout --list | rofi -show-icons -sort -kb-row-up \\"Alt+k\\" -kb-row-down \\"Alt+j\\" -theme lb -theme-str '* { font: \\"Sans 16\\"; foreground: #ffffff; border-color: $accent-bg; separatorcolor: $accent-bg; selected-normal-background: $accent-bg; }' -dmenu -i | i3-instant-layout -
################################################################################################
## sound-section - DO NOT EDIT if you wish to automatically upgrade Alsa -> Pulseaudio later! ##
################################################################################################
exec --no-startup-id volumeicon
bindsym $mod+$mod_next+v exec --no-startup-id "killall volumeicon; sleep 1; 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
################################################################################################
# start dmenu (a program launcher)
# start dmenu (a program launcher)
bindsym $mod_next+d exec dmenu_run -sb "$accent-bg"
bindsym $mod_next+d exec dmenu_run -sb "$accent-bg"
...
@@ -171,9 +197,9 @@ bindsym $mod+g exec "i3-input -f $i3inputfont -l 1 -P \\"Goto Mark: \\" -F '[con
...
@@ -171,9 +197,9 @@ bindsym $mod+g exec "i3-input -f $i3inputfont -l 1 -P \\"Goto Mark: \\" -F '[con
workspace_auto_back_and_forth yes
workspace_auto_back_and_forth yes
# renaming container
# renaming container
bindsym $mod+slash exec
"i3-input -f $i3inputfont -P \\"Change Title: \\" -F 'title_format \\"<span><b><tt>%s:</tt></b>%title</span>\\"'"
bindsym $mod+slash exec
$namechildcon
# sets back to default i3 container title
# sets back to default i3 container title
bindsym $mod+$mod_next+slash title_format " %title"
bindsym $mod+$mod_next+slash
focus parent;
title_format " %title"
; focus child
# container layouts
# container layouts
bindsym $mod_next+w layout tabbed
bindsym $mod_next+w layout tabbed
...
@@ -182,9 +208,11 @@ bindsym $mod_next+e layout splitv
...
@@ -182,9 +208,11 @@ bindsym $mod_next+e layout splitv
bindsym $mod_next+s layout stacking
bindsym $mod_next+s layout stacking
# child container layout bindsyms (creates a child container from currently select window)
# child container layout bindsyms (creates a child container from currently select window)
set $namechildcon "i3-msg focus parent; i3-input -f \\"-*-*-*-*-*-*-24-*-*-*-*-*-*-*\\" -P \\"Name child container: \\" -F 'title_format \\"<span><b>%s</b>%title</span>\\"'; i3-msg focus child"
bindsym $mod+ctrl+q split h
bindsym $mod+ctrl+q split h
bindsym $mod+ctrl+e split v
bindsym $mod+ctrl+e split v
bindsym $mod+ctrl+w split h; layout tabbed
bindsym $mod+ctrl+w split h; layout tabbed
bindsym $mod+c split h; layout tabbed
bindsym $mod+ctrl+s split h; layout stacked
bindsym $mod+ctrl+s split h; layout stacked
# toggle fullscreen mode for the focused container
# toggle fullscreen mode for the focused container
...
@@ -239,6 +267,7 @@ bindsym $mod+Ctrl+l workspace next
...
@@ -239,6 +267,7 @@ bindsym $mod+Ctrl+l workspace next
# to display names or symbols instead of plain workspace numbers you can use
# to display names or symbols instead of plain workspace numbers you can use
# something like: set $ws1 1:mail
# something like: set $ws1 1:mail
# set $ws2 2:
# set $ws2 2:
set $wsg number 0:`
set $ws1 number 1:1
set $ws1 number 1:1
set $ws2 number 2:2
set $ws2 number 2:2
set $ws3 number 3:3
set $ws3 number 3:3
...
@@ -247,9 +276,9 @@ set $ws5 number 5:5
...
@@ -247,9 +276,9 @@ set $ws5 number 5:5
set $ws6 number 6:6
set $ws6 number 6:6
set $ws7 number 7:7
set $ws7 number 7:7
set $ws8 number 8:8
set $ws8 number 8:8
set $wsc number 9:cache
# switch to workspace
# switch to workspace
bindsym $mod+Ctrl+grave workspace $wsg
bindsym $mod+1 workspace $ws1
bindsym $mod+1 workspace $ws1
bindsym $mod+2 workspace $ws2
bindsym $mod+2 workspace $ws2
bindsym $mod+3 workspace $ws3
bindsym $mod+3 workspace $ws3
...
@@ -258,9 +287,9 @@ bindsym $mod+5 workspace $ws5
...
@@ -258,9 +287,9 @@ bindsym $mod+5 workspace $ws5
bindsym $mod+6 workspace $ws6
bindsym $mod+6 workspace $ws6
bindsym $mod+7 workspace $ws7
bindsym $mod+7 workspace $ws7
bindsym $mod+8 workspace $ws8
bindsym $mod+8 workspace $ws8
#bindsym $mod+c workspace $wsc
# Move focused container to workspace
# Move focused container to workspace
bindsym $mod+grave move container to workspace $wsg
bindsym $mod+Shift+1 move container to workspace $ws1
bindsym $mod+Shift+1 move container to workspace $ws1
bindsym $mod+Shift+2 move container to workspace $ws2
bindsym $mod+Shift+2 move container to workspace $ws2
bindsym $mod+Shift+3 move container to workspace $ws3
bindsym $mod+Shift+3 move container to workspace $ws3
...
@@ -269,7 +298,6 @@ bindsym $mod+Shift+5 move container to workspace $ws5
...
@@ -269,7 +298,6 @@ bindsym $mod+Shift+5 move container to workspace $ws5
bindsym $mod+Shift+6 move container to workspace $ws6
bindsym $mod+Shift+6 move container to workspace $ws6
bindsym $mod+Shift+7 move container to workspace $ws7
bindsym $mod+Shift+7 move container to workspace $ws7
bindsym $mod+Shift+8 move container to workspace $ws8
bindsym $mod+Shift+8 move container to workspace $ws8
bindsym $mod+c move container to workspace $wsc
# Move focused container to workspace, and switch to that workspace
# Move focused container to workspace, and switch to that workspace
bindsym $mod+$mod_next+1 move container to workspace $ws1; workspace $ws1
bindsym $mod+$mod_next+1 move container to workspace $ws1; workspace $ws1
...
@@ -282,7 +310,7 @@ bindsym $mod+$mod_next+7 move container to workspace $ws7; workspace $ws7
...
@@ -282,7 +310,7 @@ bindsym $mod+$mod_next+7 move container to workspace $ws7; workspace $ws7
bindsym $mod+$mod_next+8 move container to workspace $ws8; workspace $ws8
bindsym $mod+$mod_next+8 move container to workspace $ws8; workspace $ws8
# move all windows on workspace cache to current container
# move all windows on workspace cache to current container
bindsym $mod+
Ctrl+c
[workspace="
c
"] move container to workspace current
bindsym $mod+
$mod_next+grave
[workspace="
`
"] move container to workspace current
# Open applications on specific workspaces
# Open applications on specific workspaces
# assign [class="Thunderbird"] $ws1
# assign [class="Thunderbird"] $ws1
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment