argen: sync with example, add key for columns

This commit is contained in:
2026-06-26 21:57:35 +02:00
parent dbdfac823c
commit a26667a7bb

View File

@@ -43,6 +43,7 @@ argenctl binding set normal Super+Shift Period window send next
argenctl binding set normal Super+Shift Comma window send prev argenctl binding set normal Super+Shift Comma window send prev
# Layout # Layout
argenctl binding set normal Super C layout switch columns
argenctl binding set normal Super M layout switch monocle argenctl binding set normal Super M layout switch monocle
argenctl binding set normal Super S layout switch stacktile argenctl binding set normal Super S layout switch stacktile
argenctl binding set normal Super H layout set primary-ratio -0.05 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 argenctl binding set normal Super Tab context switch --last
# Switch contexts interactively # 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 # Create new context interactively
argenctl binding set normal Super+Shift Space sh ' argenctl binding set normal Super+Shift Space sh '
set -eu set -eu
prompt="$(fuzzel -dl0 -p"new > ")" prompt="$(fuzzel -d --prompt-only "new > ")"
argenctl context new "$prompt" argenctl context new "$prompt"
' '
# Rename current context interactively # Rename current context interactively
argenctl binding set normal Super+Control Space sh ' argenctl binding set normal Super+Control Space sh '
set -eu set -eu
prompt="$(fuzzel -dl0 -p"rename > ")" prompt="$(fuzzel -d --prompt-only "rename > ")"
argenctl context rename "$prompt" argenctl context rename "$prompt"
' '
# Assign currently focused window to be toggled with Super U # Assign currently focused window to be toggled with Super U
argenctl binding set normal Super+Shift U sh ' argenctl binding set normal Super+Shift U sh '
set -eu set -eu
window_id=$(argenctl window list --json | jq -r ".[] | select(.focused) | .id") id=$(argenctl window list --json | jq -r ".[] | select(.focused) | .id")
argenctl binding set normal Super U window toggle $window_id argenctl binding set normal Super U window toggle "$id"
' '
# Attach window interactively # Attach window interactively
argenctl binding set normal Super+Shift D sh ' argenctl binding set normal Super+Shift D sh '
set -eu 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" argenctl window attach "$id"
' '
@@ -99,14 +100,14 @@ argenctl binding set normal Super+Control D sh '
# Quit after confirmed with 'yes' # Quit after confirmed with 'yes'
argenctl binding set normal Super+Shift Q sh ' argenctl binding set normal Super+Shift Q sh '
set -eu set -eu
confirm="$(fuzzel -dl0 -p"quit? > ")" confirm="$(fuzzel -d --prompt-only "quit? > ")"
if [ "$confirm" = yes ]; then if [ "$confirm" = yes ]; then
argenctl exit argenctl exit
fi fi
' '
# Audio and brightness controls # 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_INC='wpctl set-mute @DEFAULT_SINK@ 0 && wpctl set-volume @DEFAULT_SINK@ --limit 1.5 5%+'
VOL_TOGGLE='wpctl set-mute @DEFAULT_SINK@ toggle' VOL_TOGGLE='wpctl set-mute @DEFAULT_SINK@ toggle'
for mode in normal locked; do 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 XF86AudioLowerVolume sh "$VOL_DEC"
argenctl binding set $mode None XF86AudioRaiseVolume sh "$VOL_INC" argenctl binding set $mode None XF86AudioRaiseVolume sh "$VOL_INC"
argenctl binding set $mode None XF86AudioMute sh "$VOL_TOGGLE" argenctl binding set $mode None XF86AudioMute sh "$VOL_TOGGLE"
argenctl binding set $mode None XF86MonBrightnessDown sh "brightnessctl s 5%-" argenctl binding set $mode None XF86MonBrightnessDown sh "brightnessctl s 5%-"
argenctl binding set $mode None XF86MonBrightnessUp 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%-" argenctl binding set $mode Super+Shift Bracketleft sh "brightnessctl s 5%-"