From abd92c7c7cb9fbb6736b5600407b675b1d60c6a4 Mon Sep 17 00:00:00 2001 From: Joseph Ferano Date: Wed, 16 Aug 2023 18:25:38 +0700 Subject: [PATCH] HLWM: Move tabs, toggle audio codec, dunst, fix glut window rule . Add icat alias --- .config/fish/functions/icat.fish | 3 +++ .config/herbstluftwm/autostart | 25 +++++++++++++------------ 2 files changed, 16 insertions(+), 12 deletions(-) create mode 100644 .config/fish/functions/icat.fish diff --git a/.config/fish/functions/icat.fish b/.config/fish/functions/icat.fish new file mode 100644 index 0000000..aeb8ad9 --- /dev/null +++ b/.config/fish/functions/icat.fish @@ -0,0 +1,3 @@ +function icat --wraps='kitty +kitten icat --align=left' --description 'alias icat kitty +kitten icat --align=left' + kitty +kitten icat --align=left $argv +end diff --git a/.config/herbstluftwm/autostart b/.config/herbstluftwm/autostart index 2ed8b2e..fe56dfb 100755 --- a/.config/herbstluftwm/autostart +++ b/.config/herbstluftwm/autostart @@ -12,10 +12,10 @@ xsetroot -solid '#5A8E3A' emacs --daemon picom -b -c -nitrogen --restore & polybar & feh --no-fehbg --bg-center ~/.cache/randomwallpaper@iflow.space/wallpapers/wallpaper.png pcloud & +dunst & xset r rate 260 60 @@ -46,14 +46,14 @@ hc keybind $Mod-k focus up hc keybind $Mod-l focus right # moving clients in tiling and floating mode -hc keybind $Mod-Shift-Left shift left -hc keybind $Mod-Shift-Down shift down -hc keybind $Mod-Shift-Up shift up -hc keybind $Mod-Shift-Right shift right -hc keybind $Mod-Shift-h shift left -hc keybind $Mod-Shift-j shift down -hc keybind $Mod-Shift-k shift up -hc keybind $Mod-Shift-l shift right +hc keybind $Mod-Shift-Left shift -e left +hc keybind $Mod-Shift-Down shift -e down +hc keybind $Mod-Shift-Up shift -e up +hc keybind $Mod-Shift-Right shift -e right +hc keybind $Mod-Shift-h shift --level=tabs left +hc keybind $Mod-Shift-j shift --level=tabs down +hc keybind $Mod-Shift-k shift --level=tabs up +hc keybind $Mod-Shift-l shift --level=tabs right # splitting frames # create an empty frame at the specified direction @@ -122,7 +122,7 @@ hc keybind XF86AudioPlay spawn bash -c 'playerctl -a play-pause; paplay /usr/sha # bluetooth hc keybind $Mod-b spawn bluetoothctl connect F8:5B:6E:2A:6A:CF hc keybind $Mod-Shift-b spawn sudo systemctl restart bluetooth.service -hc keybind $Mod-Ctrl-b spawn bluetoothctl disconnect F8:5B:6E:2A:6A:CF +hc keybind $Mod-Ctrl-b spawn toggle-bt-codec # Lock hc keybind $Mod-Ctrl-Shift-l spawn bash -c 'slock | systemctl suspend' @@ -134,6 +134,8 @@ hc keybind $Mod-BackSpace cycle_monitor #hc keybind $Mod-Shift-Tab cycle_all -1 hc keybind $Mod-Tab cycle +1 hc keybind $Mod-Shift-Tab cycle -1 +hc keybind $Mod-Ctrl-Tab cycle_all --skip-invisible +1 +hc keybind $Mod-Ctrl-Shift-Tab cycle_all --skip-invisible -1 # hc keybind $Mod-c cycle hc keybind $Mod-i jumpto urgent @@ -200,7 +202,7 @@ hc rule floatplacement=center hc rule windowtype~'_NET_WM_WINDOW_TYPE_(DIALOG|UTILITY|SPLASH)' floating=on hc rule windowtype='_NET_WM_WINDOW_TYPE_DIALOG' focus=on hc rule title='emacs-run-launcher' floating=on floatplacement=center -hc rule title~'^Glut |.*$' floating=on floatplacement=center +hc rule title~'^Glut.*' floating=on floatplacement=center hc rule windowtype~'_NET_WM_WINDOW_TYPE_(NOTIFICATION|DOCK|DESKTOP)' manage=off hc rule fixedsize floating=on @@ -226,4 +228,3 @@ tag1=$(cat ~/.cache/1.hlwm) tag2=$(cat ~/.cache/2.hlwm) hc load 1 "$tag1" hc load 2 "$tag2" -