1
0
mirror of https://github.com/dcarrillo/dotfiles.git synced 2024-12-22 22:07:59 +00:00

[polybar] Variable rename

This commit is contained in:
Daniel Carrillo 2020-04-11 14:43:48 +02:00
parent 11f8d701fe
commit 677b713f17

View File

@ -17,7 +17,7 @@ for task in $(seq 1 "$1"); do
type = custom/ipc type = custom/ipc
hook-0 = echo "" hook-0 = echo ""
hook-1 = ~/.config/polybar/scripts/task_manager --set-task $task hook-1 = ~/.config/polybar/scripts/task_manager --set-task $task
hook-2 = ~/.config/polybar/scripts/task_manager --show-window $task hook-2 = ~/.config/polybar/scripts/task_manager --show-or-minimize-window $task
hook-3 = ~/.config/polybar/scripts/task_manager --close-window $task hook-3 = ~/.config/polybar/scripts/task_manager --close-window $task
click-left = polybar-msg -p %pid% hook taskbar$task 3 click-left = polybar-msg -p %pid% hook taskbar$task 3
click-middle = polybar-msg -p %pid% hook taskbar$task 4 click-middle = polybar-msg -p %pid% hook taskbar$task 4
@ -151,7 +151,7 @@ case "$1" in
--set-task) --set-task)
print_task_name "$2" print_task_name "$2"
;; ;;
--show-window) --show-or-minimize-window)
id=$(get_task_id "$2") id=$(get_task_id "$2")
if [ "$id" = "$(get_active_window)" ]; then if [ "$id" = "$(get_active_window)" ]; then