From 11754bd45c74b84e3b885f3c797e9a3bcc926415 Mon Sep 17 00:00:00 2001 From: spinach <19keegandeppe@gmail.com> Date: Mon, 27 Feb 2023 10:11:15 -0500 Subject: [PATCH] made weather forecast general purpose and included a resource monitor on CPU left click --- editors/vim/pack/man/start/vimtex | 2 +- gui/i3/base.conf | 4 ++-- gui/polybar/config.ini | 7 ++++--- src/weather | 2 +- 4 files changed, 8 insertions(+), 7 deletions(-) diff --git a/editors/vim/pack/man/start/vimtex b/editors/vim/pack/man/start/vimtex index fc829f9..112e62c 160000 --- a/editors/vim/pack/man/start/vimtex +++ b/editors/vim/pack/man/start/vimtex @@ -1 +1 @@ -Subproject commit fc829f9ceefcf6013b36c150f0e73279dcbc3ff7 +Subproject commit 112e62c1c873fb1910c08ed331f354ae017aac57 diff --git a/gui/i3/base.conf b/gui/i3/base.conf index 1de9dc3..581e95c 100644 --- a/gui/i3/base.conf +++ b/gui/i3/base.conf @@ -52,9 +52,9 @@ bindsym $mod+d exec --no-startup-id rofi-launcher # setting up a vimscratch pad to use vimwiki for_window [instance="todo"] move window to scratchpad for_window [instance="cal"] move window to scratchpad -#for_window [instance="spotify"] move window to scratchpad +for_window [instance="spotify"] move window to scratchpad for_window [instance="wiki"] move window to scratchpad -for_window [instance="weather"] move window to scratchpad +for_window [instance="scratch"] move window to scratchpad # bindings bindsym $mod+s exec i3-scratchpad.sh todo st -n todo -e vim ~/vimwiki/todo/index.md bindsym $mod+c exec i3-scratchpad.sh cal st -n cal -e calcurse diff --git a/gui/polybar/config.ini b/gui/polybar/config.ini index 5eca0a5..c9af037 100644 --- a/gui/polybar/config.ini +++ b/gui/polybar/config.ini @@ -94,9 +94,9 @@ type = custom/script interval = 30 ; left click is forecast -click-left = weather -f +click-left = i3-scratchpad.sh scratch st -n scratch -e weather -f ; middle click is nerdfont forecast -click-middle = weather -pf +click-middle = i3-scratchpad.sh scratch st -n scratch -e weather -pf ; right click is radar click-right = weather -r @@ -144,9 +144,10 @@ label-discharging = %percentage%% %time% [module/cpu] type = internal/cpu interval = 2 -format-prefix = "CPU " +format-prefix = "%{A1:i3-scratchpad.sh scratch st -n scratch -e zfxtop:}CPU %{A}" format-prefix-foreground = ${colors.primary} label = %percentage%% +; zfxtop for monitoring [module/temperature] type = internal/temperature diff --git a/src/weather b/src/weather index 529fcc9..cb8bdd3 160000 --- a/src/weather +++ b/src/weather @@ -1 +1 @@ -Subproject commit 529fcc92e19d8e6dcde45fbd56ddd156fdbcacdc +Subproject commit cb8bdd3e43b50a0610cff3a69959cb27eb407afc