1
1
mirror of https://github.com/rywng/dotfiles.git synced 2024-11-25 04:11:49 +08:00

Update wob

This commit is contained in:
juan 2022-11-30 14:10:00 +08:00
parent 5b73214550
commit bd030de9f1
No known key found for this signature in database
GPG Key ID: 63A51E78F28ACE53
9 changed files with 21 additions and 10 deletions

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -1,3 +1,3 @@
# vim: filetype=i3config
include ~/.config/sway/config.d/themes/light
include ~/.config/sway/config.d/themes/dark

View File

@ -2,7 +2,7 @@
* vim: ft=less
*/
@import "light.less";
@import "dark.less";
.notification-row {
outline: none;

View File

@ -41,9 +41,9 @@
},
"battery": {
"states": {
"good": 80,
"warning": 30,
"critical": 15
"good": 75,
"warning": 15,
"critical": 5
},
"format": "{icon} {capacity}%",
"format-charging": " {capacity}%",

View File

@ -10,7 +10,7 @@
min-height: 0;
}
@import "light.less";
@import "dark.less";
window#waybar {
background: @background;

11
.config/wob/wob.ini Normal file
View File

@ -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

View File

@ -1,5 +1,5 @@
# style
style=/home/juan/.config/wofi/light.css
style=/home/juan/.config/wofi/dark.css
width=600
height=500