diff options
-rwxr-xr-x | awesome/rc.lua | 1 | ||||
-rw-r--r-- | fish/config.fish | 4 | ||||
-rw-r--r-- | fish/fish_variables | 1 | ||||
-rwxr-xr-x | lemonbar/sys_bar | 14 | ||||
-rwxr-xr-x | lemonbar/ws_bar (renamed from lemonbar/mainbar) | 0 | ||||
-rwxr-xr-x | lemonbar/ws_button_actions (renamed from lemonbar/button-actions) | 0 | ||||
-rw-r--r-- | picom.conf | 5 | ||||
-rwxr-xr-x | scripts/weather | 17 |
8 files changed, 35 insertions, 7 deletions
diff --git a/awesome/rc.lua b/awesome/rc.lua index c3eacdaa..6d389fe6 100755 --- a/awesome/rc.lua +++ b/awesome/rc.lua @@ -639,3 +639,4 @@ awful.spawn.with_shell("nitrogen --restore") awful.spawn.with_shell("picom") awful.spawn.with_shell("firefox") awful.spawn.with_shell("sxhkd") +awful.spawn.with_shell("deadd-notification-center") diff --git a/fish/config.fish b/fish/config.fish index 4b981b42..1b61180c 100644 --- a/fish/config.fish +++ b/fish/config.fish @@ -17,6 +17,4 @@ alias ls='exa -l' alias la='exa -a' alias lsa='exa -al' alias nf='neofetch' - -alias vysor='Vysor.AppImage' - +alias vim='nvim' diff --git a/fish/fish_variables b/fish/fish_variables index 44da7342..bff725f5 100644 --- a/fish/fish_variables +++ b/fish/fish_variables @@ -30,3 +30,4 @@ SETUVAR fish_pager_color_completion:\x1d SETUVAR fish_pager_color_description:B3A06D\x1eyellow SETUVAR fish_pager_color_prefix:white\x1e\x2d\x2dbold\x1e\x2d\x2dunderline SETUVAR fish_pager_color_progress:brwhite\x1e\x2d\x2dbackground\x3dcyan +SETUVAR fish_user_paths:/home/zt/\x2elocal/bin\x1e/zt/Programs\x1e/home/zt/\x2econfig/scripts diff --git a/lemonbar/sys_bar b/lemonbar/sys_bar new file mode 100755 index 00000000..f55e26d0 --- /dev/null +++ b/lemonbar/sys_bar @@ -0,0 +1,14 @@ +#!/bin/python + +import time +import os + +def getMem(): + mem = os.popen('free -m | grep Mem').read().split() + return 'Mem: ' + str(int(int(mem[2]) / int(mem[1]) * 100)) + +print(getMem()) + +def getCPU(): + + diff --git a/lemonbar/mainbar b/lemonbar/ws_bar index d8d1674e..d8d1674e 100755 --- a/lemonbar/mainbar +++ b/lemonbar/ws_bar diff --git a/lemonbar/button-actions b/lemonbar/ws_button_actions index bebf6635..bebf6635 100755 --- a/lemonbar/button-actions +++ b/lemonbar/ws_button_actions @@ -428,8 +428,13 @@ opacity-rule = [ "95:class_g = 'Thunderbird' && focused", "90:class_g = 'Thunderbird' && !focused", "90:name *?= 'AUR'", + "90:name *?= 'Arch'", + "90:name *?= 'google'", + "95:name *?= 'stackoverflow'", "90:name *?= 'Vidhu Kant'", "95:name *?= 'DuckDuckgo'", "98:name *?= 'twitter'", "98:name *?= 'Mail'", + "98:name *?= 'WhatsApp'", + "97:name *?= 'Discord'", ]; diff --git a/scripts/weather b/scripts/weather index 3fcab925..cc0ac150 100755 --- a/scripts/weather +++ b/scripts/weather @@ -1,12 +1,21 @@ #!/bin/bash get_current_temp() { - temp=$(curl wttr.in | grep °C | awk 'NR==1 {print $9 "°C"}' | sed -r "s/\x1B\[(([0-9]+)(;[0-9]+)*)?[m,K,H,f,J]//g") # > /tmp/weather_temperature) - stat=$(curl wttr.in | awk 'NR==3 {print $1}') - echo $temp "("$stat")" + if [ $stat == "Smoke" ]; then + temp=$(curl wttr.in | grep °C | awk 'NR==1 {print $4 "°C"}' | sed -r "s/\x1B\[(([0-9]+)(;[0-9]+)*)?[m,K,H,f,J]//g") + elif [ $stat == "Haze" ]; then + temp=$(curl wttr.in | grep °C | awk 'NR==1 {print $9 "°C"}' | sed -r "s/\x1B\[(([0-9]+)(;[0-9]+)*)?[m,K,H,f,J]//g") + fi + + echo $temp +} + +get_current_weather() { + stat=$(curl wttr.in | awk 'NR==3 {print $1}') + echo $(get_current_temp) "("$stat")" } while :; do - echo $(get_current_temp) > /tmp/weather_stat + echo $(get_current_weather) > /tmp/weather_stat sleep 3600 done |