mirror of
https://github.com/donovanglover/nix-config.git
synced 2024-11-16 05:13:11 +01:00
sxhkd: Move non-bspc commands to the top
The sxhkdrc becomes much easier to manage when all the window manager commands are at the bottom together.
This commit is contained in:
parent
4dfdc10f53
commit
3b8b3bece4
@ -1,13 +1,9 @@
|
|||||||
# New Start: A modern Arch workflow built with an emphasis on functionality.
|
# New Start: A modern Arch workflow built with an emphasis on functionality.
|
||||||
# Copyright (C) 2017-2018 Donovan Glover
|
# Copyright (C) 2017-2018 Donovan Glover
|
||||||
|
|
||||||
# Reload sxhkd
|
# Reload sxhkd / Quit bspwm
|
||||||
super + Escape
|
super + {_, alt} + Escape
|
||||||
pkill -USR1 -x sxhkd
|
{pkill -USR1 -x sxhkd,bspc quit}
|
||||||
|
|
||||||
# Quit the bspwm session
|
|
||||||
super + alt + Escape
|
|
||||||
bspc quit
|
|
||||||
|
|
||||||
# Take a screenshot
|
# Take a screenshot
|
||||||
super + p
|
super + p
|
||||||
@ -21,6 +17,29 @@ super + {_,shift} + Return
|
|||||||
super + {_,shift} + backslash
|
super + {_,shift} + backslash
|
||||||
termite -e {"tmux new-session; set status", "tmux"}
|
termite -e {"tmux new-session; set status", "tmux"}
|
||||||
|
|
||||||
|
# toggle polybar: top_padding depends on the height you set in polybar/config
|
||||||
|
super + o
|
||||||
|
(xdotool search --class --onlyvisible "Polybar" && \
|
||||||
|
(xdo hide -N "Polybar" && bspc config top_padding 0)) || \
|
||||||
|
(xdo show -N "Polybar" && bspc config top_padding 80)
|
||||||
|
|
||||||
|
# Change the wal color scheme
|
||||||
|
alt + m
|
||||||
|
wal -o ~/.config/wal/done.sh -i ~/Pictures/Wallpapers
|
||||||
|
|
||||||
|
# Show rofi drun / window / calc
|
||||||
|
alt + {z,space,backslash}
|
||||||
|
env XDG_CURRENT_DESKTOP="KDE" QT_FONT_DPI="192" rofi -show {drun,window,calc -modi calc -no-show-match -no-sort}
|
||||||
|
|
||||||
|
# Show rofi-pass
|
||||||
|
alt + slash
|
||||||
|
rofi-pass
|
||||||
|
|
||||||
|
# Get the current node's state
|
||||||
|
alt + n
|
||||||
|
SXHKD_NODE=$(bspc query -T -n) && \
|
||||||
|
notify-send "Current window $(echo $SXHKD_NODE | jq '.client.className') is in a node with state" "$(echo $SXHKD_NODE | jq '.client.state')"
|
||||||
|
|
||||||
# ====================
|
# ====================
|
||||||
# ======= Node =======
|
# ======= Node =======
|
||||||
# ====================
|
# ====================
|
||||||
@ -73,16 +92,6 @@ super + {1-9,0}
|
|||||||
super + f
|
super + f
|
||||||
bspc desktop -l next
|
bspc desktop -l next
|
||||||
|
|
||||||
# =======================
|
|
||||||
# ======= polybar =======
|
|
||||||
# =======================
|
|
||||||
|
|
||||||
# top_padding depends on the height you set in polybar/config
|
|
||||||
super + o
|
|
||||||
(xdotool search --class --onlyvisible "Polybar" && \
|
|
||||||
(xdo hide -N "Polybar" && bspc config top_padding 0)) || \
|
|
||||||
(xdo show -N "Polybar" && bspc config top_padding 80)
|
|
||||||
|
|
||||||
# =====================
|
# =====================
|
||||||
# ===== Preselect =====
|
# ===== Preselect =====
|
||||||
# =====================
|
# =====================
|
||||||
@ -115,32 +124,4 @@ super + alt + shift + {h,j,k,l}
|
|||||||
super + {Left,Down,Up,Right}
|
super + {Left,Down,Up,Right}
|
||||||
bspc node -v {-20 0,0 20,0 -20,20 0}
|
bspc node -v {-20 0,0 20,0 -20,20 0}
|
||||||
|
|
||||||
# ====================
|
|
||||||
# ======= Rofi =======
|
|
||||||
# ====================
|
|
||||||
|
|
||||||
# Show the application launcher
|
|
||||||
alt + {z,space,backslash}
|
|
||||||
env XDG_CURRENT_DESKTOP="KDE" QT_FONT_DPI="192" rofi -show {drun,window,calc -modi calc -no-show-match -no-sort}
|
|
||||||
|
|
||||||
# Show pass
|
|
||||||
alt + slash
|
|
||||||
rofi-pass
|
|
||||||
|
|
||||||
# ===================
|
|
||||||
# ======= wal =======
|
|
||||||
# ===================
|
|
||||||
|
|
||||||
alt + m
|
|
||||||
wal -o ~/.config/wal/done.sh -i ~/Pictures/Wallpapers
|
|
||||||
|
|
||||||
# =====================
|
|
||||||
# ======= dunst =======
|
|
||||||
# =====================
|
|
||||||
|
|
||||||
# Get the current node's state
|
|
||||||
alt + n
|
|
||||||
SXHKD_NODE=$(bspc query -T -n) && \
|
|
||||||
notify-send "Current window $(echo $SXHKD_NODE | jq '.client.className') is in a node with state" "$(echo $SXHKD_NODE | jq '.client.state')"
|
|
||||||
|
|
||||||
# vim:ft=sxhkdrc
|
# vim:ft=sxhkdrc
|
||||||
|
Loading…
Reference in New Issue
Block a user