Get predefined layout loaded in HLWM. Couple of improvements.
This commit is contained in:
parent
1a7c0191b8
commit
4af2996add
@ -10,7 +10,6 @@ set -gx XDG_CACHE_HOME /home/joe/.cache
|
|||||||
set -gx VISUAL nvim
|
set -gx VISUAL nvim
|
||||||
set -gx EDITOR nvim
|
set -gx EDITOR nvim
|
||||||
|
|
||||||
set -gx MANPAGER "sh -c 'col -bx | bat -l man -p'"
|
|
||||||
set -gx DOTNET_CLI_TELEMETRY_OPTOUT 1
|
set -gx DOTNET_CLI_TELEMETRY_OPTOUT 1
|
||||||
|
|
||||||
bind \cx 'if test -z (commandline) ; fg %1 &>/dev/null; else ; clear; commandline "╰─>$ "; end'
|
bind \cx 'if test -z (commandline) ; fg %1 &>/dev/null; else ; clear; commandline "╰─>$ "; end'
|
||||||
|
@ -15,6 +15,7 @@ picom -b -c
|
|||||||
nitrogen --restore &
|
nitrogen --restore &
|
||||||
polybar &
|
polybar &
|
||||||
feh --no-fehbg --bg-center ~/.cache/randomwallpaper@iflow.space/wallpapers/wallpaper.png
|
feh --no-fehbg --bg-center ~/.cache/randomwallpaper@iflow.space/wallpapers/wallpaper.png
|
||||||
|
pcloud &
|
||||||
|
|
||||||
xset r rate 260 60
|
xset r rate 260 60
|
||||||
|
|
||||||
@ -98,14 +99,14 @@ hc keybind $Mod-Shift-f set_attr clients.focus.floating toggle
|
|||||||
hc keybind $Mod-Shift-d set_attr clients.focus.decorated toggle
|
hc keybind $Mod-Shift-d set_attr clients.focus.decorated toggle
|
||||||
hc keybind $Mod-Shift-m set_attr clients.focus.minimized true
|
hc keybind $Mod-Shift-m set_attr clients.focus.minimized true
|
||||||
hc keybind $Mod-Control-m jumpto last-minimized
|
hc keybind $Mod-Control-m jumpto last-minimized
|
||||||
hc keybind $Mod-p pseudotile toggle
|
hc keybind $Mod-t pseudotile toggle
|
||||||
# The following cycles through the available layouts within a frame, but skips
|
# The following cycles through the available layouts within a frame, but skips
|
||||||
# layouts, if the layout change wouldn't affect the actual window positions.
|
# layouts, if the layout change wouldn't affect the actual window positions.
|
||||||
# I.e. if there are two windows within a frame, the grid layout is skipped.
|
# I.e. if there are two windows within a frame, the grid layout is skipped.
|
||||||
hc keybind $Mod-w \
|
hc keybind $Mod-w \
|
||||||
or , and . compare tags.focus.curframe_wcount = 2 \
|
or , and . compare tags.focus.curframe_wcount = 2 \
|
||||||
. cycle_layout +1 max horizontal \
|
. cycle_layout +1 max horizontal \
|
||||||
, cycle_layout +1
|
, cycle_layout +1 max grid
|
||||||
|
|
||||||
# mouse
|
# mouse
|
||||||
hc mouseunbind --all
|
hc mouseunbind --all
|
||||||
@ -114,8 +115,8 @@ hc mousebind $Mod-Button2 zoom
|
|||||||
hc mousebind $Mod-Button3 resize
|
hc mousebind $Mod-Button3 resize
|
||||||
|
|
||||||
# media
|
# media
|
||||||
hc keybind XF86AudioRaiseVolume spawn bash -c 'amixer sset Master 4%+; paplay /usr/share/sounds/freedesktop/stereo/audio-volume-change.oga'
|
hc keybind XF86AudioRaiseVolume spawn bash -c 'paplay /usr/share/sounds/freedesktop/stereo/audio-volume-change.oga; amixer sset Master 4%+'
|
||||||
hc keybind XF86AudioLowerVolume spawn bash -c 'amixer sset Master 4%-; paplay /usr/share/sounds/freedesktop/stereo/audio-volume-change.oga'
|
hc keybind XF86AudioLowerVolume spawn bash -c 'paplay /usr/share/sounds/freedesktop/stereo/audio-volume-change.oga; amixer sset Master 4%-'
|
||||||
hc keybind XF86AudioPlay spawn bash -c 'playerctl -a play-pause; paplay /usr/share/sounds/freedesktop/stereo/dialog-warning.oga'
|
hc keybind XF86AudioPlay spawn bash -c 'playerctl -a play-pause; paplay /usr/share/sounds/freedesktop/stereo/dialog-warning.oga'
|
||||||
|
|
||||||
# bluetooth
|
# bluetooth
|
||||||
@ -214,3 +215,9 @@ for monitor in $(hc list_monitors | cut -d: -f1) ; do
|
|||||||
# start it on each monitor
|
# start it on each monitor
|
||||||
"$panel" "$monitor" &
|
"$panel" "$monitor" &
|
||||||
done
|
done
|
||||||
|
|
||||||
|
tag1=$(cat ~/.cache/1.hlwm)
|
||||||
|
tag2=$(cat ~/.cache/2.hlwm)
|
||||||
|
hc load 1 "$tag1"
|
||||||
|
hc load 2 "$tag2"
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user