Commit f2280501 authored by Guilherme Semente's avatar Guilherme Semente 🌱

Add hotkeys to "cut" and "paste" windows

parent 156de53b
# -*- mode: conf -*-
#
# - hotkeys with the [Alt+Super] modifier do desktop related operations
# - hotkeys with the [Super] only modifier do frequent or run operations
# - hotkeys with the [Shift+Super] modifier do infrequent or kill operations
#
#
# general hotkeys
......@@ -88,16 +83,20 @@ super + {alt + l,alt + Tab,Tab}
deskname="{1,2,3,4}";\
test "$curdesk" -eq "$deskname" && bspc desktop -f last || bspc desktop -f "$deskname"
# send node to given desktop
alt + super + shift + {F1,F2,F3,F4}
deskname="{1,2,3,4}";\
bspc node -d "$deskname";\
bspc desktop -f "$deskname"
alt + super + shift + {p,n,o}
deskname="{prev,next,next}";\
bspc node -d "$deskname";\
bspc desktop -f "$deskname"
# hide current node (cut)
super + w
stack_file="${XDG_RUNTIME_DIR}/bspwm-hidden-nodes.txt"; \
target_node=$(bspc query -N -n focused); \
echo "$target_node" >> "$stack_file"; \
bspc node "$target_node" --flag hidden=on
# unhide the most recently hidden node (paste/reinsert)
super + y
stack_file="${XDG_RUNTIME_DIR}/bspwm-hidden-nodes.txt"; \
target_node=$(tail --lines=1 "$stack_file"); \
sed -i '$d' "$stack_file"; \
bspc node "$target_node" --to-desktop focused; \
bspc node "$target_node" --flag hidden=off --focus;
# alternate node between tiled and floating state
super + t
......@@ -181,13 +180,13 @@ shift + super + BackSpace
# volume
super + {bracketleft,bracketright}
pulsemixer --change-volume "{-,+}10" && xwrite "$(pulsemixer --get-volume | cut -d' ' -f2)🔉"
pulsemixer --change-volume "{-,+}10" && xwrite "$(pulsemixer --get-volume | cut -d' ' -f2)%"
{XF86AudioLowerVolume,XF86AudioRaiseVolume}
pulsemixer --change-volume "{-,+}10" && xwrite "$(pulsemixer --get-volume | cut -d' ' -f2)🔉"
pulsemixer --change-volume "{-,+}10" && xwrite "$(pulsemixer --get-volume | cut -d' ' -f2)%"
{XF86AudioMute,super + backslash}
pulsemixer --toggle-mute && xwrite "0🔇"
pulsemixer --toggle-mute && xwrite "0%"
# player control
super + {comma,period,slash}
......@@ -195,11 +194,24 @@ super + {comma,period,slash}
# brightness and screen color temperature
XF86MonBrightnessDown
xbacklight -dec 10 && xwrite "$(printf "%d💡" $(xbacklight -get))"
xbacklight -dec 10 && xwrite "$(printf "%d%%" $(xbacklight -get))"
XF86MonBrightnessUp
xbacklight -inc 10 && xwrite "$(printf "%d💡" $(xbacklight -get))"
xbacklight -inc 10 && xwrite "$(printf "%d%%" $(xbacklight -get))"
shift + super + s
temp="{6500k default,5000k day*,4000k moon,3000k warm*,2800k xwarm,1800k candle}";\
sct "$temp" && xwrite "$(printf "%s" $temp)"
# DEPRECATED: use super + {w,y} instead
# send node to given desktop
#alt + super + shift + {F1,F2,F3,F4}
# deskname="{1,2,3,4}";\
# bspc node -d "$deskname";\
# bspc desktop -f "$deskname"
#alt + super + shift + {p,n,o}
# deskname="{prev,next,next}";\
# bspc node -d "$deskname";\
# bspc desktop -f "$deskname"
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