From a26667a7bbde7420bd296eb49a4c3433368fa2c4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C5=81ukasz=20Pankowski?= Date: Fri, 26 Jun 2026 21:57:35 +0200 Subject: [PATCH] argen: sync with example, add key for columns --- argen/.config/argen/init | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) diff --git a/argen/.config/argen/init b/argen/.config/argen/init index e6ea43a..c220fce 100755 --- a/argen/.config/argen/init +++ b/argen/.config/argen/init @@ -43,6 +43,7 @@ argenctl binding set normal Super+Shift Period window send next argenctl binding set normal Super+Shift Comma window send prev # Layout +argenctl binding set normal Super C layout switch columns argenctl binding set normal Super M layout switch monocle argenctl binding set normal Super S layout switch stacktile argenctl binding set normal Super H layout set primary-ratio -0.05 @@ -59,33 +60,33 @@ argenctl binding set normal Super+Shift+Control X context close argenctl binding set normal Super Tab context switch --last # Switch contexts interactively -argenctl binding set normal Super Space sh 'argenctl context switch "$(argenctl context list | fuzzel -d)"' +argenctl binding set normal Super Space sh 'argenctl context switch "$(argenctl context list | fuzzel -d --only-match)"' # Create new context interactively argenctl binding set normal Super+Shift Space sh ' set -eu - prompt="$(fuzzel -dl0 -p"new > ")" + prompt="$(fuzzel -d --prompt-only "new > ")" argenctl context new "$prompt" ' # Rename current context interactively argenctl binding set normal Super+Control Space sh ' set -eu - prompt="$(fuzzel -dl0 -p"rename > ")" + prompt="$(fuzzel -d --prompt-only "rename > ")" argenctl context rename "$prompt" ' # Assign currently focused window to be toggled with Super U argenctl binding set normal Super+Shift U sh ' set -eu - window_id=$(argenctl window list --json | jq -r ".[] | select(.focused) | .id") - argenctl binding set normal Super U window toggle $window_id + id=$(argenctl window list --json | jq -r ".[] | select(.focused) | .id") + argenctl binding set normal Super U window toggle "$id" ' # Attach window interactively argenctl binding set normal Super+Shift D sh ' set -eu - id=$(argenctl window list | fuzzel -d --with-nth 2 --accept-nth 1) + id=$(argenctl window list | fuzzel -d --with-nth 2 --accept-nth 1 --only-match) argenctl window attach "$id" ' @@ -99,14 +100,14 @@ argenctl binding set normal Super+Control D sh ' # Quit after confirmed with 'yes' argenctl binding set normal Super+Shift Q sh ' set -eu - confirm="$(fuzzel -dl0 -p"quit? > ")" + confirm="$(fuzzel -d --prompt-only "quit? > ")" if [ "$confirm" = yes ]; then argenctl exit fi ' # Audio and brightness controls -VOL_DEC='wpctl set-volume @DEFAULT_SINK@ --limit 1.5 5%-' +VOL_DEC='wpctl set-volume @DEFAULT_SINK@ 5%-' VOL_INC='wpctl set-mute @DEFAULT_SINK@ 0 && wpctl set-volume @DEFAULT_SINK@ --limit 1.5 5%+' VOL_TOGGLE='wpctl set-mute @DEFAULT_SINK@ toggle' for mode in normal locked; do @@ -116,6 +117,7 @@ for mode in normal locked; do argenctl binding set $mode None XF86AudioLowerVolume sh "$VOL_DEC" argenctl binding set $mode None XF86AudioRaiseVolume sh "$VOL_INC" argenctl binding set $mode None XF86AudioMute sh "$VOL_TOGGLE" + argenctl binding set $mode None XF86MonBrightnessDown sh "brightnessctl s 5%-" argenctl binding set $mode None XF86MonBrightnessUp sh "brightnessctl s +5%" argenctl binding set $mode Super+Shift Bracketleft sh "brightnessctl s 5%-"