From bd030de9f1da974053884f78c0510d7c08b7f8e1 Mon Sep 17 00:00:00 2001 From: juan Date: Wed, 30 Nov 2022 14:10:00 +0800 Subject: [PATCH] Update wob --- .config/kitty/kitty.conf | 2 +- .config/sway/config.d/display | 2 +- .config/sway/config.d/keybinds | 2 +- .config/sway/config.d/theme | 2 +- .config/swaync/style.css | 2 +- .config/waybar/config | 6 +++--- .config/waybar/style.css | 2 +- .config/wob/wob.ini | 11 +++++++++++ .config/wofi/config | 2 +- 9 files changed, 21 insertions(+), 10 deletions(-) create mode 100644 .config/wob/wob.ini diff --git a/.config/kitty/kitty.conf b/.config/kitty/kitty.conf index 1761473..9c2828f 100644 --- a/.config/kitty/kitty.conf +++ b/.config/kitty/kitty.conf @@ -28,4 +28,4 @@ allow_remote_control yes map kitty_mod+n new_os_window_with_cwd -include themes/light.conf +include themes/dark.conf diff --git a/.config/sway/config.d/display b/.config/sway/config.d/display index 0f77b4d..e17d581 100644 --- a/.config/sway/config.d/display +++ b/.config/sway/config.d/display @@ -1,7 +1,7 @@ # vim: filetype=i3config # wallpaper -output * bg $(find ~/Pictures/Wallpapers/light -type f | shuf -n1) fill +output * bg $(find ~/Pictures/Wallpapers/dark -type f | shuf -n1) fill # laptop output mode set $laptop eDP-1 diff --git a/.config/sway/config.d/keybinds b/.config/sway/config.d/keybinds index a412139..4e97ab8 100644 --- a/.config/sway/config.d/keybinds +++ b/.config/sway/config.d/keybinds @@ -24,7 +24,7 @@ bindsym $mod+Ctrl+t exec ~/.config/sway/scripts/themes.sh #bind fn keys bindsym XF86AudioMicMute exec amixer set Capture toggle -exec mkfifo $SWAYSOCK.wob && tail -f $SWAYSOCK.wob | wob -p 1 -b 2 -a top -M 48 --border-color '#474f54F0' --background-color '#2a2f33F0' --bar-color '#bfddb2F0' --overflow-mode wrap --overflow-background-color '#2a2f33F0' --overflow-bar-color '#d76e6ef0' --overflow-border-color '#474f54F0' +exec mkfifo $SWAYSOCK.wob && tail -f $SWAYSOCK.wob | wob bindsym XF86AudioRaiseVolume exec pactl set-sink-volume @DEFAULT_SINK@ +5% && pactl get-sink-volume @DEFAULT_SINK@ | head -n 1| awk '{print substr($5, 1, length($5)-1)}' > $SWAYSOCK.wob bindsym XF86AudioLowerVolume exec pactl set-sink-volume @DEFAULT_SINK@ -5% && pactl get-sink-volume @DEFAULT_SINK@ | head -n 1 | awk '{print substr($5, 1, length($5)-1)}' > $SWAYSOCK.wob bindsym XF86AudioMute exec pactl set-sink-mute @DEFAULT_SINK@ toggle && ~/.config/sway/scripts/getmute.sh > $SWAYSOCK.wob diff --git a/.config/sway/config.d/theme b/.config/sway/config.d/theme index d609893..4dc4ecf 100644 --- a/.config/sway/config.d/theme +++ b/.config/sway/config.d/theme @@ -1,3 +1,3 @@ # vim: filetype=i3config -include ~/.config/sway/config.d/themes/light +include ~/.config/sway/config.d/themes/dark diff --git a/.config/swaync/style.css b/.config/swaync/style.css index 74e80e8..ad740e6 100644 --- a/.config/swaync/style.css +++ b/.config/swaync/style.css @@ -2,7 +2,7 @@ * vim: ft=less */ -@import "light.less"; +@import "dark.less"; .notification-row { outline: none; diff --git a/.config/waybar/config b/.config/waybar/config index 9d4e052..7ca1988 100644 --- a/.config/waybar/config +++ b/.config/waybar/config @@ -41,9 +41,9 @@ }, "battery": { "states": { - "good": 80, - "warning": 30, - "critical": 15 + "good": 75, + "warning": 15, + "critical": 5 }, "format": "{icon} {capacity}%", "format-charging": " {capacity}%", diff --git a/.config/waybar/style.css b/.config/waybar/style.css index dd36574..5fb4dbc 100644 --- a/.config/waybar/style.css +++ b/.config/waybar/style.css @@ -10,7 +10,7 @@ min-height: 0; } -@import "light.less"; +@import "dark.less"; window#waybar { background: @background; diff --git a/.config/wob/wob.ini b/.config/wob/wob.ini new file mode 100644 index 0000000..50e503f --- /dev/null +++ b/.config/wob/wob.ini @@ -0,0 +1,11 @@ +border_size = 2 +anchor = top +margin = 48 +border_color = 474f54f0 +background_color = 2a2f33f0 +bar_color = bfddb2F0 +bar_padding = 2 +overflow_mode = wrap +overflow_background_color = 2a2f33f0 +overflow_bar_color = d76e6ef0 +overflow_border_color = 474f54f0 diff --git a/.config/wofi/config b/.config/wofi/config index 4174f7e..d4518d4 100644 --- a/.config/wofi/config +++ b/.config/wofi/config @@ -1,5 +1,5 @@ # style -style=/home/juan/.config/wofi/light.css +style=/home/juan/.config/wofi/dark.css width=600 height=500