mirror of
https://github.com/dcarrillo/dotfiles.git
synced 2024-12-22 16:18:00 +00:00
[polybar] Variable rename
This commit is contained in:
parent
11f8d701fe
commit
677b713f17
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user