Set to background all polybar click actions
This commit is contained in:
parent
7eb2ea4d47
commit
5431939340
@ -355,8 +355,8 @@
|
||||
type = custom/script
|
||||
|
||||
format-underline = ${colors.bg}
|
||||
click-left = ~/.config/polybar/scripts/mail-open.sh
|
||||
click-right = ~/.config/polybar/scripts/mail-refresh.sh
|
||||
click-left = ~/.config/polybar/scripts/mail-open.sh >/dev/null 2>%1 &
|
||||
click-right = ~/.config/polybar/scripts/mail-refresh.sh >/dev/null 2>%1 &
|
||||
format = <label>
|
||||
exec = ~/.config/polybar/scripts/mail-status.sh
|
||||
interval = 2
|
||||
@ -400,7 +400,7 @@
|
||||
:header-args+: :shebang "#!/usr/bin/env bash"
|
||||
:END:
|
||||
#+begin_src bash
|
||||
$TERMINAL -e "tmux new-session -A -s neomutt neomutt" &
|
||||
$TERMINAL -e "tmux new-session -A -s neomutt neomutt"
|
||||
#+end_src
|
||||
|
||||
* Unread News
|
||||
@ -409,8 +409,8 @@
|
||||
type = custom/script
|
||||
|
||||
format-underline = ${colors.bg}
|
||||
click-left = ~/.config/polybar/scripts/news-open.sh
|
||||
click-right = ~/.config/polybar/scripts/news-refresh.sh &
|
||||
click-left = ~/.config/polybar/scripts/news-open.sh >/dev/null 2>%1 &
|
||||
click-right = ~/.config/polybar/scripts/news-refresh.sh >/dev/null 2>%1 &
|
||||
format = <label>
|
||||
exec = ~/.config/polybar/scripts/news-status.sh
|
||||
interval = 60
|
||||
@ -458,7 +458,7 @@
|
||||
:header-args+: :shebang "#!/usr/bin/env bash"
|
||||
:END:
|
||||
#+begin_src bash
|
||||
$TERMINAL -e "tmux new-session -A -s newsboat newsboat" &
|
||||
$TERMINAL -e "tmux new-session -A -s newsboat newsboat"
|
||||
#+end_src
|
||||
|
||||
* Redshift
|
||||
@ -467,7 +467,7 @@
|
||||
type = custom/script
|
||||
|
||||
format-underline = ${colors.bg}
|
||||
click-left = ~/.config/polybar/scripts/redshift-toggle.sh
|
||||
click-left = ~/.config/polybar/scripts/redshift-toggle.sh >/dev/null 2>%1 &
|
||||
format = <label>
|
||||
exec = ~/.config/polybar/scripts/redshift-status.sh
|
||||
interval = 2
|
||||
@ -496,7 +496,7 @@
|
||||
#+begin_src bash
|
||||
if pgrep -x "redshift" >/dev/null; then
|
||||
killall redshift && \
|
||||
dunstify --replace=36492 "Redshift 望" "Turned off";
|
||||
dunstify --replace=36492 "Redshift 望" "Turned off";
|
||||
else
|
||||
nohup redshift > /dev/null 2>&1 &
|
||||
dunstify --replace=36492 "Redshift 望" "Starting...";
|
||||
@ -509,7 +509,7 @@
|
||||
type = custom/script
|
||||
|
||||
format-underline = ${colors.bg}
|
||||
click-left = ~/.config/polybar/scripts/nordvpn-toggle.sh
|
||||
click-left = ~/.config/polybar/scripts/nordvpn-toggle.sh >/dev/null 2>%1 &
|
||||
format = <label>
|
||||
exec = ~/.config/polybar/scripts/nordvpn-status.sh
|
||||
interval = 2
|
||||
@ -560,8 +560,8 @@
|
||||
type = custom/script
|
||||
|
||||
format-underline = ${colors.bg}
|
||||
click-left = ~/.config/polybar/scripts/packages-update.sh
|
||||
click-right = ~/.config/polybar/scripts/packages-refresh.sh
|
||||
click-left = ~/.config/polybar/scripts/packages-update.sh >/dev/null 2>%1 &
|
||||
click-right = ~/.config/polybar/scripts/packages-refresh.sh >/dev/null 2>%1 &
|
||||
format = <label>
|
||||
exec = ~/.config/polybar/scripts/packages-status.sh
|
||||
interval = 600
|
||||
@ -612,7 +612,7 @@
|
||||
:header-args+: :shebang "#!/usr/bin/env bash"
|
||||
:END:
|
||||
#+BEGIN_SRC bash
|
||||
$TERMINAL -e "yay" &
|
||||
$TERMINAL -e "yay"
|
||||
#+END_SRC
|
||||
|
||||
* Dunst
|
||||
@ -621,7 +621,7 @@
|
||||
type = custom/script
|
||||
|
||||
format-underline = ${colors.bg}
|
||||
click-left = ~/.config/polybar/scripts/dunst-toggle.sh
|
||||
click-left = ~/.config/polybar/scripts/dunst-toggle.sh >/dev/null 2>%1 &
|
||||
format = <label>
|
||||
exec = ~/.config/polybar/scripts/dunst-status.sh
|
||||
interval = 2
|
||||
@ -674,8 +674,8 @@
|
||||
type = custom/script
|
||||
|
||||
format-underline = ${colors.bg}
|
||||
click-left = ~/.config/polybar/scripts/lockscreen-toggle.sh
|
||||
click-right = ~/.local/bin/lockscreen
|
||||
click-left = ~/.config/polybar/scripts/lockscreen-toggle.sh >/dev/null 2>%1 &
|
||||
click-right = ~/.local/bin/lockscreen >/dev/null 2>%1 &
|
||||
format = <label>
|
||||
exec = ~/.config/polybar/scripts/lockscreen-status.sh
|
||||
|
||||
@ -753,7 +753,7 @@
|
||||
type = custom/script
|
||||
|
||||
format-underline = ${colors.bg}
|
||||
click-left = ~/.config/polybar/scripts/wireguard-toggle.sh
|
||||
click-left = ~/.config/polybar/scripts/wireguard-toggle.sh >/dev/null 2>%1 &
|
||||
format = <label>
|
||||
exec = ~/.config/polybar/scripts/wireguard-status.sh
|
||||
|
||||
@ -806,7 +806,7 @@
|
||||
[module/screenshot]
|
||||
type = custom/text
|
||||
content = ""
|
||||
click-left = ~/.local/bin/screenshot
|
||||
click-left = ~/.local/bin/screenshot >/dev/null 2>%1 &
|
||||
#+END_SRC
|
||||
|
||||
* Scripts
|
||||
|
Loading…
Reference in New Issue
Block a user