feat: better waybar.

This commit is contained in:
Andrey Parhomenko 2024-07-12 02:38:44 +05:00
parent fdae478156
commit 972b8a5d42
4 changed files with 82 additions and 32 deletions

View file

@ -61,13 +61,17 @@ export_loop \
XDG_CONFIG_HOME '$HOME/.config' \ XDG_CONFIG_HOME '$HOME/.config' \
GIT 'https://surdeus.su' \ GIT 'https://surdeus.su' \
PERSONAL_SHELL 'sh' \ PERSONAL_SHELL 'sh' \
MYVIMRC '$HOME/.vimrc'\ VIMRC '$HOME/.vimrc'\
XKB_DEFAULT_OPTIONS 'caps:escape' \ XKB_DEFAULT_OPTIONS 'caps:escape' \
\ \
XCOMPOSER 'river' \ XCOMPOSER 'river' \
XTERMINAL 'wayst' \ XTERMINAL 'wayst' \
XRUNNER 'fuzzel' \ XRUNNER 'fuzzel' \
XBAR 'waybar' \ XBAR 'waybar' \
XBLUETOOTH_MANAGER 'blueman-manager' \
XOUTPUT_DAEMON 'kanshi' \
XSOUND_CONTROL 'pavucontrol' \
XFILE_MANAGER 'thunar' \
test -r $SETENV && . "$SETENV" && setenv profile test -r $SETENV && . "$SETENV" && setenv profile

View file

@ -179,6 +179,7 @@ riverctl focus-follows-cursor normal
# Only first time, no reloading. # Only first time, no reloading.
if test -z "$RIVER_RELOAD" ; then if test -z "$RIVER_RELOAD" ; then
rivertile -view-padding 0 -outer-padding 0 & rivertile -view-padding 0 -outer-padding 0 &
eval $XOUTPUT_DAEMON &
eval $XBAR & eval $XBAR &

View file

@ -2,57 +2,82 @@
"layer": "top", "layer": "top",
"position": "top", "position": "top",
"sway/language" : {
},
"river/window" : { "river/window" : {
"max-length": 80, "max-length": 30,
"min-length": 80 "on-scroll-up" : "riverctl focus-view next",
"on-scroll-down" : "riverctl focus-view previous",
"on-click-right" : "riverctl close"
}, },
"river/mode" : { "river/mode" : {
"format": "Mode: {}" "format": "{}"
},
"privacy": {
"icon-spacing": 4,
"icon-size": 18,
"transition-duration": 250,
"modules": [
{
"type": "screenshare",
"tooltip": true,
"tooltip-icon-size": 24
},
{
"type": "audio-out",
"tooltip": true,
"tooltip-icon-size": 24
},
{
"type": "audio-in",
"tooltip": true,
"tooltip-icon-size": 24
}
]
}, },
"modules-left": [ "modules-left": [
"river/tags", "river/tags",
"river/window", "river/window",
"custom/left-arrow-dark",
"river/mode", "river/mode",
], ],
"custom/bar" : {
"format": "|"
},
"modules-center": [ "modules-center": [
"network",
], ],
"modules-right": [ "modules-right": [
"clock#1", "backlight",
"pulseaudio", "clock",
"gamemode",
"mpd",
"disk", "disk",
"cpu",
"memory",
"temperature",
"battery", "battery",
"pulseaudio",
"bluetooth",
"tray" "tray"
], ],
"custom/left-arrow-dark": { "backlight" : {
"format": "", "format" : "💡{}%",
"tooltip": false "scroll-step": 5
},
"custom/left-arrow-light": {
"format": "",
"tooltip": false
},
"custom/right-arrow-dark": {
"format": "",
"tooltip": false
},
"custom/right-arrow-light": {
"format": "",
"tooltip": false
}, },
"sway/workspaces": { "clock" : {
"disable-scroll": true, "format" : "{:%EY-%m-%d %H:%M:%S}",
"format": "{name}" "interval" : 1
}, },
"clock#1": { "bluetooth" : {
"format": "{:%a %d-%m-%y %H:%M}", "on-click" : "$XBLUETOOTH_MANAGER"
"tooltip": false
}, },
"pulseaudio": { "pulseaudio": {
@ -96,8 +121,15 @@
"disk": { "disk": {
"interval": 5, "interval": 5,
"format": "Disk {percentage_used:2}%", "format": "Disk {percentage_used:2}%",
"path": "/" "path": "/",
"on-click" : "$XFILE_MANAGER"
}, },
"network" : {
"format" : "{ifname}/{ipaddr} U:{bandwidthUpBytes} D:{bandwidthDownBytes}",
"interval": 1
},
"tray": { "tray": {
"icon-size": 20 "icon-size": 20
} }

View file

@ -8,17 +8,30 @@ window#waybar {
color: white; color: white;
} }
.modules-left > *,
.modules-right > * {
padding : 0 2rem ;
}
#custom-right-arrow-dark, #custom-right-arrow-dark,
#custom-left-arrow-dark { #custom-left-arrow-dark {
color: black; color: black;
background : white ; background : gray ;
} }
#custom-right-arrow-light, #custom-right-arrow-light,
#custom-left-arrow-light { #custom-left-arrow-light {
color: white; color: gray;
background: black; background: black;
} }
#network {
color : red ;
}
#clock {
color : magenta ;
}
#workspaces, #workspaces,
#clock.1, #clock.1,
#clock.2, #clock.2,