[kitty/polybar] Remove tilix leftovers

This commit is contained in:
Daniel Carrillo 2023-09-30 17:35:44 +02:00
parent 8fcb4267cc
commit 221a87cad1
Signed by: dcarrillo
GPG Key ID: E4CD5C09DAED6E16
6 changed files with 21 additions and 14 deletions

View File

@ -80,7 +80,7 @@ allow_remote_control yes
listen_on unix:@mykitty
map F1 launch --allow-remote-control kitty +kitten broadcast
map ctrl+alt+p kitten secrets.py "description" "Tilix Password"
map ctrl+alt+p kitten secrets.py "description" "Kitty password"
map kitty_mod+p>l kitten hints --type line --program @
#: }}}

View File

@ -10,6 +10,12 @@ import secretstorage
from kitty.boss import Boss
#
# To add passwords to the Secret Service that can be retrieved for this kitten:
# secret-tool store --label user1 description "Kitty password" id $(uuidgen)
# secret-tool store --label user2 description "Kitty password" id $(uuidgen)
# Add map to kitty.conf:
# map ctrl+alt+p kitten secrets.py "description" "Kitty password"
def main(args: List[str]) -> Optional[str]:
secrets = get_secret_names(args[1], args[2])

View File

@ -2,7 +2,7 @@
[ -f ~/.config/polybar/bar.env ] && . ~/.config/polybar/bar.env
export TERMINAL_CMD=${TERMINAL_CMD:-"tilix --profile orange --new-process -e"}
export TERMINAL_CMD=${TERMINAL_CMD:-"kitty --class=info --override='foreground=#c69026' "}
export WM_CONTROL=${WM_CONTROL:-"~/.config/polybar/scripts/switch_window_state"}
export ROFI_THEME=${ROFI_THEME:-orange}

View File

@ -20,14 +20,14 @@ label-song-ellipsis = true
[module/cpu_bar]
type = custom/script
exec = ~/.config/polybar/scripts/cpu_usage.py
format-prefix = "%{A1:$TERMINAL_CMD 'top -o %CPU' &:}CPU %{A}"
format-prefix = "%{A1:$TERMINAL_CMD top -o %CPU &:}CPU %{A}"
format-prefix-foreground = ${colors.foreground-alt}
interval = 5
[module/memory_bar]
type = internal/memory
format = <bar-used>
format-prefix = "%{A1:$TERMINAL_CMD 'top -o RES' &:} %{A}"
format-prefix = "%{A1:$TERMINAL_CMD top -o RES &:} %{A}"
format-prefix-foreground = ${colors.foreground-alt}
bar-used-width = 10
@ -35,7 +35,7 @@ bar-used-gradient = false
bar-used-indicator =
bar-used-indicator-foreground = ${colors.foreground}
bar-used-indicator-font = 0
bar-used-fill = "%{A1:$TERMINAL_CMD 'top -o RES' &:}%{T5}_%{T-}%{A}"
bar-used-fill = "%{A1:$TERMINAL_CMD top -o RES &:}%{T5}_%{T-}%{A}"
bar-used-foreground-0 = ${colors.bn}
bar-used-foreground-1 = ${colors.bn}
bar-used-foreground-2 = ${colors.bn}
@ -45,7 +45,7 @@ bar-used-foreground-5 = ${colors.bm}
bar-used-foreground-6 = ${colors.bd}
bar-used-foreground-7 = ${colors.bd}
bar-used-foreground-8 = ${colors.bd}
bar-used-empty = "%{A1:$TERMINAL_CMD 'top -o RES' &:}%{T5}_%{T-}%{A}"
bar-used-empty = "%{A1:$TERMINAL_CMD top -o RES &:}%{T5}_%{T-}%{A}"
bar-used-empty-foreground = ${colors.foreground-alt}
[module/wireless]
@ -90,7 +90,7 @@ tail = true
[module/network_status]
type = custom/script
exec = ~/.config/polybar/scripts/network_status
click-left = $TERMINAL_CMD "fping --elapsed --count 100 1.0.0.1"
click-left = $TERMINAL_CMD fping --elapsed --count 100 1.0.0.1
interval = 5
[module/vpn]
@ -127,7 +127,7 @@ click-left = gnome-calendar
type = internal/alsa
format-volume = <label-volume> <bar-volume>
label-volume = "%{A3:$TERMINAL_CMD 'pulsemixer' &:}%{A}"
label-volume = "%{A3:$TERMINAL_CMD pulsemixer &:}%{A}"
label-volume-foreground = ${root.foreground}
format-muted-prefix = ""
@ -147,18 +147,18 @@ bar-volume-foreground-7 = ${colors.bm}
bar-volume-gradient = false
bar-volume-indicator =
bar-volume-fill = "%{A3:$TERMINAL_CMD 'pulsemixer' &:}%{T5}_%{T-}%{A}"
bar-volume-empty = "%{A3:$TERMINAL_CMD 'pulsemixer' &:}%{T5}_%{T-}%{A}"
bar-volume-fill = "%{A3:$TERMINAL_CMD pulsemixer &:}%{T5}_%{T-}%{A}"
bar-volume-empty = "%{A3:$TERMINAL_CMD pulsemixer &:}%{T5}_%{T-}%{A}"
bar-volume-empty-foreground = ${colors.foreground-alt}
click-right = $TERMINAL_CMD 'pulsemixer'
click-right = $TERMINAL_CMD pulsemixer
[module/updates]
type = custom/script
exec = ~/.config/polybar/scripts/check_updates
tail = true
interval = 5
click-left = $TERMINAL_CMD "yay -Suy" &
click-left = $TERMINAL_CMD yay -Suy &
[module/polywins]
type = custom/script

View File

@ -36,7 +36,7 @@ def show_cpu_usage():
if global_count < 10:
padding = '%{F' + colors['id'] + '}' + '_' * (10 - global_count) + '%{F-}'
print("%{A1:$TERMINAL_CMD 'top -o %CPU' &:}%{T5}" + bar + padding + "%{T-}%{A}")
print("%{A1:$TERMINAL_CMD top -o %CPU &:}%{T5}" + bar + padding + "%{T-}%{A}")
if __name__ == "__main__":

View File

@ -63,6 +63,7 @@ get_icon_by_name()
[gnome-terminal]=
[gpaste-ui]=
[keepassxc]=
[info]=
[kitty]=
[librewolf-default]=
[librewolf]=
@ -77,7 +78,7 @@ get_icon_by_name()
[steam]=
[telegramdesktop]=
[thunderbird]=
[tilix]=
[vpn]=
[tor]=
[vivaldi-stable]=
[xterm]=