Commit 3a05c801 authored by Jay Ta'ala's avatar Jay Ta'ala
Browse files

Ported changes to config.simple.

parent 01cd34f7
......@@ -34,7 +34,7 @@ workspace_layout tabbed
for_window [class=".*"] $border_no_name
# focus_wrapping <yes|no|force|workspace>
# Legacy syntax, equivalent to "focus_wrapping force"
# Legacy syntax: "force_focus_wrapping force"
focus_wrapping no
# Hide borders <none|vertical|horizontal|both|smart>
......@@ -121,11 +121,8 @@ bindsym $mod+l focus right
# master-stack keybinding (moves stack window to master and current master back to stack window)
# NOTE: requires 'jq'
set $get_layout $(i3-msg -t get_tree | jq -r 'recurse(.nodes[];.nodes!=null)|select(.nodes[].focused).layout')
#bindsym $mod+m exec "i3-msg focus parent, focus left"
#bindsym $mod+Shift+m exec "STK=$get_layout; i3-msg layout stacked, move left; MST=$get_layout; i3-msg layout stacked, focus up, focus right, layout $STK, focus parent, focus left, move right, focus left, layout $MST"
bindsym $mod+Shift+comma exec "STK=$get_layout; i3-msg layout stacked, move left, focus parent, focus right, layout $STK, focus parent, focus left"
bindsym $mod+Shift+period exec "MST=$get_layout; i3-msg layout stacked, move right, focus parent, focus left, layout $MST, focus parent, focus right"
#bindsym $mod+$mod_next+Shift+period exec "MST=$get_layout; i3-msg layout stacked, focus right; STK=$get_layout; i3-msg layout stacked, focus parent, focus left, move right, focus up, layout $STK, focus parent, focus left, layout $MST"
# container focusing (with fallback for case where window is direct child of workspace container)
# NOTE: requires xdotool
......
......@@ -9,22 +9,22 @@ set $border_no_name border pixel 3
set $border_normal border normal 3
# Theme colors
# set variable for main accent color
set $acolor #d64161
# set variable for main accent-bg color
set $accent-bg #d64161
# set other colors
set $bgicolor #525859
set $bgucolor #323838
set $txtacolor #F9FAF9
set $txtucolor #bdbbbb
set $indcolor #4deb56
set $inactive-bg #566161
set $unfocused-bg #323838
set $accent-txt #F9FAF9
set $unfocused-txt #bdbbbb
set $indicator #109648
# class border backgr. text indic. child_border
client.focused $acolor $acolor $txtacolor $indcolor $acolor
client.focused_inactive $bgicolor $bgicolor $txtacolor $indcolor $bgicolor
client.unfocused $bgucolor $bgucolor $txtucolor $indcolor $bgucolor
#client.urgent #CB4B16 #FDF6E3 #CB4B16 $indcolor
#client.placeholder #000000 #0c0c0c $txtacolor #000000
client.focused $accent-bg $accent-bg $accent-txt $indicator $accent-bg
client.focused_inactive $unfocused-bg $inactive-bg $accent-txt $indicator $inactive-bg
client.unfocused $unfocused-bg $unfocused-bg $unfocused-txt $indicator $unfocused-bg
#client.urgent #CB4B16 #FDF6E3 #CB4B16 $indicator
#client.placeholder #000000 #0c0c0c $accent-txt #000000
#client.background #2B2C2B
# set default desktop layout (default is tiling) <default|stacking|tabbed>
......@@ -33,6 +33,10 @@ workspace_layout tabbed
# Configure border style <normal|1pixel|pixel xx|none|pixel>
for_window [class=".*"] $border_no_name
# focus_wrapping <yes|no|force|workspace>
# Legacy syntax: "force_focus_wrapping force"
focus_wrapping no
# Hide borders <none|vertical|horizontal|both|smart>
hide_edge_borders none
......@@ -40,9 +44,9 @@ hide_edge_borders none
popup_during_fullscreen leave_fullscreen
# change borders
bindsym $mod+period $border_no_name
bindsym $mod+$mod_next+period border none
bindsym $mod+Control+period $border_normal
bindsym $mod+$mod_next+bracketleft $border_no_name
bindsym $mod+$mod_next+bracketright border none
bindsym $mod+$mod_next+backslash $border_normal
# Font for window titles. Will also be used by the bar unless a different font
# is used in the bar {} block below.
......@@ -64,8 +68,8 @@ bindsym $mod+Shift+q kill
# start program launcher
# start dmenu (a program launcher)
bindsym $mod_next+d exec dmenu_run -sb "$acolor"
bindsym $mod_next+Return exec dmenu_run "$acolor"
bindsym $mod_next+d exec dmenu_run -sb "$accent-bg"
bindsym $mod_next+Return exec dmenu_run "$accent-bg"
# There also is the (new) i3-dmenu-desktop which only displays applications
# shipping a .desktop file. It is a wrapper around dmenu, so you need that
......@@ -83,12 +87,15 @@ bindsym $mod+l focus right
# master-stack keybinding (moves stack window to master and current master back to stack window)
# NOTE: requires 'jq'
set $get_layout $(i3-msg -t get_tree | jq -r 'recurse(.nodes[];.nodes!=null)|select(.nodes[].focused).layout')
bindsym $mod+m exec "i3-msg focus parent, focus left"
#bindsym $mod+Shift+m exec "STK=$get_layout; i3-msg layout stacked, move left; MST=$get_layout; i3-msg layout stacked, focus up, focus right, layout $STK, focus parent, focus left, move right, focus left, layout $MST"
bindsym $mod+Shift+comma exec "STK=$get_layout; i3-msg layout stacked, move left, focus parent, focus right, layout $STK, focus parent, focus left"
bindsym $mod+Shift+period exec "MST=$get_layout; i3-msg layout stacked, move right, focus parent, focus left, layout $MST, focus parent, focus right"
bindsym $mod+$mod_next+Shift+period exec "MST=$get_layout; i3-msg layout stacked, focus right; STK=$get_layout; i3-msg layout stacked, focus parent, focus left, move right, focus up, layout $STK, focus parent, focus left, layout $MST"
# container focusing (with fallback for case where window is direct child of workspace container)
# NOTE: requires xdotool
bindsym $mod+comma exec "WINDOW=$(xdotool getactivewindow); i3-msg \\"focus parent; focus left; focus child\\"; NEW_WINDOW=$(xdotool getactivewindow); if [ \\"$NEW_WINDOW\\" -eq \\"$WINDOW\\" ]; then i3-msg \\"focus left\\"; fi"
#bindsym $mod+Ctrl+j exec "WINDOW=$(xdotool getactivewindow); i3-msg \\"focus parent; focus down; focus child\\"; NEW_WINDOW=$(xdotool getactivewindow); if [ \\"$NEW_WINDOW\\" -eq \\"$WINDOW\\" ]; then i3-msg \\"focus down\\"; fi"
#bindsym $mod+Ctrl+k exec "WINDOW=$(xdotool getactivewindow); i3-msg \\"focus parent; focus up; focus child\\"; NEW_WINDOW=$(xdotool getactivewindow); if [ \\"$NEW_WINDOW\\" -eq \\"$WINDOW\\" ]; then i3-msg \\"focus up\\"; fi"
bindsym $mod+period exec "WINDOW=$(xdotool getactivewindow); i3-msg \\"focus parent; focus right; focus child\\"; NEW_WINDOW=$(xdotool getactivewindow); if [ \\"$NEW_WINDOW\\" -eq \\"$WINDOW\\" ]; then i3-msg \\"focus right\\"; fi"
# move focused window
bindsym $mod+Shift+Left move left 100px
......@@ -102,6 +109,11 @@ bindsym $mod+Shift+j move down 100px
bindsym $mod+Shift+k move up 100px
bindsym $mod+Shift+l move right 100px
# mark and move
bindsym $mod+m mark --add m
bindsym $mod+Ctrl+m unmark m
bindsym $mod+Shift+m [workspace="`"] move container to mark m
# workspace back and forth (with/without active container)
workspace_auto_back_and_forth yes
#bindsym $mod+b workspace back_and_forth
......@@ -113,9 +125,9 @@ workspace_auto_back_and_forth yes
set $con_title i3-msg focus parent, title_format \\"<span> <b><tt>...</tt></b></span>\\", focus child
# renaming of parent container
bindsym $mod+slash exec "ANSWER=$(zenity --title=\\"i3-msg title_format\\" --text \\"Change title for parent container\\" --entry); if [ -n \\"$ANSWER\\" ]; then i3-msg focus parent, title_format \\"<span> <b><tt>$ANSWER</tt></b></span>\\", focus child; fi"
bindsym $mod+slash exec "i3-input -f \\"-*-*-*-*-*-*-24-*-*-*-*-*-*-*\\" -P \\"Change Title: \\" -F 'title_format \\"<span> <b><tt>%s</tt></b></span>\\"'"
# sets back to default i3 container title
bindsym $mod+$mod_next+slash focus parent, title_format " %title", focus child
bindsym $mod+$mod_next+slash title_format " %title"
# container layouts
bindsym $mod+w layout tabbed
......@@ -137,14 +149,35 @@ bindsym $mod+shift+f exec "i3-msg focus parent, fullscreen toggle, focus child"
bindsym $mod+Shift+space floating toggle
# change focus between tiling / floating windows
bindsym $mod+Tab focus mode_toggle
bindsym $mod+Ctrl+space focus mode_toggle
# toggle sticky
bindsym $mod+Ctrl+s sticky toggle; exec notify-send 'sticky windows toggled'
bindsym $mod+Ctrl+s sticky toggle;exec notify-send 'sticky windows toggled'
# focus last window
# requires (https://crates.io/crates/i3-focus-last)
bindsym $mod+Tab exec i3-focus-last
# window transparency adjustment (and alias to restart picom)
bindsym $mod+$mod_next+z exec transset-df -a --min 0.20 --dec 0.20
bindsym $mod+$mod_next+Shift+z exec transset-df -a --min 0.1 --dec 0.1
bindsym $mod+$mod_next+Ctrl+z exec "WINDOWS=$(xdotool search --all --onlyvisible --desktop $(xprop -notype -root _NET_CURRENT_DESKTOP | cut -c 24-) \\"\\" 2>/dev/null); for window in $WINDOWS; do xdotool windowactivate $window; transset-df -a --min 0.20 --dec 0.20; done"
bindsym $mod+$mod_next+x exec transset-df -a --inc 0.20 --max 0.99
bindsym $mod+$mod_next+Shift+x exec transset-df -a --inc 0.1 --max 0.99
bindsym $mod+$mod_next+Ctrl+x exec "WINDOWS=$(xdotool search --all --onlyvisible --desktop $(xprop -notype -root _NET_CURRENT_DESKTOP | cut -c 24-) \\"\\" 2>/dev/null); for window in $WINDOWS; do xdotool windowactivate $window; transset-df -a --inc 0.20 --max 0.99; done"
bindsym $mod+$mod_next+c exec --no-startup-id $picom_start
# window dimming enable or disable (uses xdotool and xprop to set a anti-dim flag, which picom recognises in focus-exclude array)
bindsym $mod+$mod_next+a exec xprop -id $(xdotool getactivewindow) -f ANTIDIM_FLAG 8c -set ANTIDIM_FLAG 1; exec notify-send 'anti-dim set on window'
bindsym $mod+$mod_next+Shift+a exec xprop -id $(xdotool getactivewindow) -remove ANTIDIM_FLAG; exec notify-send 'dim set on window'
# window colour inversion (uses xdotool and xprop to set an invert flag, which picom recognises in invert-color-include array)
bindsym $mod+$mod_next+d exec xprop -id $(xdotool getactivewindow) -f INVERT_FLAG 8c -set INVERT_FLAG 1; exec notify-send 'invert set on window'
bindsym $mod+$mod_next+Shift+d exec xprop -id $(xdotool getactivewindow) -remove INVERT_FLAG; exec notify-send 'invert removed on window'
# focus the parent container
bindsym $mod+a focus parent
bindsym $mod+Escape focus child
bindsym $mod+z focus child
# move the currently focused window to the scratchpad
bindsym $mod+Shift+Tab move scratchpad
......@@ -171,6 +204,7 @@ set $ws5 number 5:5
set $ws6 number 6:6
set $ws7 number 7:7
set $ws8 number 8:8
set $wsx number 0:`
# switch to workspace
bindsym $mod+1 workspace $ws1
......@@ -181,6 +215,7 @@ bindsym $mod+5 workspace $ws5
bindsym $mod+6 workspace $ws6
bindsym $mod+7 workspace $ws7
bindsym $mod+8 workspace $ws8
bindsym $mod+grave workspace $wsx
# Move focused container to workspace
bindsym $mod+Shift+1 move container to workspace $ws1
......@@ -191,6 +226,7 @@ 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+grave move container to workspace $wsx
# Move focused container to workspace, and switch to that workspace
bindsym $mod+$mod_next+1 move container to workspace $ws1; workspace $ws1
......@@ -201,6 +237,7 @@ bindsym $mod+$mod_next+5 move container to workspace $ws5; workspace $ws5
bindsym $mod+$mod_next+6 move container to workspace $ws6; workspace $ws6
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+grave move container to workspace $wsx; workspace $wsx
# Open applications on specific workspaces
# assign [class="Thunderbird"] $ws1
......@@ -281,70 +318,13 @@ bar {
separator #454947
# border backgr. text
focused_workspace #F9FAF9 $acolor #F9FAF9
focused_workspace #F9FAF9 $accent-bg #F9FAF9
active_workspace #595B5B #353836 #FDF6E3
inactive_workspace #595B5B #283339 #EEE8D5
binding_mode $acolor #2C2C2C #F9FAF9
urgent_workspace $acolor #FDF6E3 #E5201D
binding_mode $accent-bg #2C2C2C #F9FAF9
urgent_workspace $accent-bg #FDF6E3 #E5201D
}
}
# hide/unhide i3status bar
bindsym $mod+Control+b bar mode toggle
#############################
### settings for i3-gaps: ###
#############################
## Set inner/outer gaps
#gaps inner 6
#gaps outer -6
#
## Additionally, you can issue commands with the following syntax. This is useful to bind keys to changing the gap size.
## gaps inner|outer current|all set|plus|minus <px>
## gaps inner all set 10
## gaps outer all plus 5
#
## Smart gaps (gaps used if only more than one container on the workspace)
##smart_gaps on
#
## Smart borders (draw borders around container only if it is not the only container on this workspace)
## on|no_gaps (on=always activate and no_gaps=only activate if the gap size to the edge of the screen is 0)
#smart_borders on
#
## Press $mod+Shift+g to enter the gap mode. Choose o or i for modifying outer/inner gaps. Press one of + / - (in-/decrement for current workspace) or 0 (remove gaps for current workspace). If you also press Shift with these keys, the change will be global for all workspaces.
#set $mode_gaps Gaps: (o) outer, (i) inner
#set $mode_gaps_outer Outer Gaps: +|-|0 (local), Shift + +|-|0 (global)
#set $mode_gaps_inner Inner Gaps: +|-|0 (local), Shift + +|-|0 (global)
#bindsym $mod+Shift+g mode "$mode_gaps"
#
#mode "$mode_gaps" {
# bindsym o mode "$mode_gaps_outer"
# bindsym i mode "$mode_gaps_inner"
# bindsym Return mode "default"
# bindsym Escape mode "default"
#}
#mode "$mode_gaps_inner" {
# bindsym plus gaps inner current plus 5
# bindsym minus gaps inner current minus 5
# bindsym 0 gaps inner current set 0
#
# bindsym Shift+plus gaps inner all plus 5
# bindsym Shift+minus gaps inner all minus 5
# bindsym Shift+0 gaps inner all set 0
#
# bindsym Return mode "default"
# bindsym Escape mode "default"
#}
#mode "$mode_gaps_outer" {
# bindsym plus gaps outer current plus 5
# bindsym minus gaps outer current minus 5
# bindsym 0 gaps outer current set 0
#
# bindsym Shift+plus gaps outer all plus 5
# bindsym Shift+minus gaps outer all minus 5
# bindsym Shift+0 gaps outer all set 0
#
# bindsym Return mode "default"
# bindsym Escape mode "default"
#}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment