merging waybar configs with my old ones

This commit is contained in:
Mark Riedesel 2024-06-12 14:24:17 -05:00
parent 93879b3ef7
commit a4740d2dc0
11 changed files with 264 additions and 132 deletions

View file

@ -18,7 +18,7 @@
"position": "top",
"modules-left": ["custom/menu", "sway/workspaces", "custom/scratchpad"],
"modules-center": ["custom/wf-recorder", "sway/mode", "custom/weather"],
"modules-center": ["custom/wf-recorder", "sway/mode"],
"modules-right": [
// informational
"sway/language",
@ -33,11 +33,10 @@
// connecting
"network",
"bluetooth",
"custom/valent",
// media
"custom/playerctl",
"custom/idle_inhibitor",
"custom/idle-inhibitor",
"custom/dnd",
"pulseaudio",
"backlight",
@ -69,7 +68,7 @@
"clock": {
"interval": 60,
"format": "{:%e %b %Y %H:%M}",
"format": "{:%a, %b %d %I:%M%p %Z %d/%m/%Y}",
"tooltip": true,
"tooltip-format": "<big>{:%B %Y}</big>\n<tt>{calendar}</tt>",
"on-click": "swaymsg exec \\$calendar"
@ -159,9 +158,9 @@
"format": "󰀼 {}",
"interval": 3600,
"return-type": "json",
"exec-if": "$HOME/.config/scripts/checkupdates.sh check",
"exec": "$HOME/.config/scripts/checkupdates.sh status",
"on-click": "$HOME/.config/scripts/checkupdates.sh check && swaymsg exec \\$update-manager",
"exec-if": "$HOME/.config/sway/scripts/checkupdates.sh check",
"exec": "$HOME/.config/sway/scripts/checkupdates.sh status",
"on-click": "$HOME/.config/sway/scripts/checkupdates.sh check && swaymsg exec \\$update-manager",
"on-click-middle": "waybar-signal pacman",
"signal": 14
},
@ -189,7 +188,7 @@
"one": "󰖯",
"many": "󰖲"
},
"exec": "/bin/sh $HOME/.config/scripts/scratchpad.sh",
"exec": "/bin/sh $HOME/.config/sway/scripts/scratchpad.sh",
"on-click": "swaymsg 'scratchpad show'",
"signal": 7
},
@ -203,9 +202,9 @@
"on": "󰌵",
"off": "󰌶"
},
"exec": "fallback_latitude=50.1 fallback_longitude=8.7 latitude= longitude= $HOME/.config/scripts/sunset.sh",
"on-click": "$HOME/.config/scripts/sunset.sh toggle",
"exec-if": "$HOME/.config/scripts/sunset.sh check",
"exec": "fallback_latitude=50.1 fallback_longitude=8.7 latitude= longitude= $HOME/.config/sway/scripts/sunset.sh",
"on-click": "$HOME/.config/sway/scripts/sunset.sh toggle",
"exec-if": "$HOME/.config/sway/scripts/sunset.sh check",
"signal": 6
},
@ -279,8 +278,8 @@
"tracking": "󰖷",
"stopped": "󰋣"
},
"exec": "$HOME/.config/waybar/scripts/zeit.sh status",
"on-click": "$HOME/.config/scripts/zeit.sh click; waybar-signal zeit",
"exec": "$HOME/.config/sway/scripts/zeit.sh status",
"on-click": "$HOME/.config/sway/scripts/zeit.sh click; waybar-signal zeit",
"exec-if": "[ -x \"$(command -v zeit)\" ]",
"signal": 10
},
@ -293,9 +292,9 @@
"default": "󰚢",
"dnd": "󰚣"
},
"on-click": "$HOME/.config/scripts/dnd.sh toggle; waybar-signal dnd",
"on-click-right": "$HOME/.config/scripts/dnd.sh restore",
"exec": "$HOME/.config/scripts/dnd.sh status",
"on-click": "$HOME/.config/sway/scripts/dnd.sh toggle; waybar-signal dnd",
"on-click-right": "$HOME/.config/sway/scripts/dnd.sh restore",
"exec": "$HOME/.config/sway/scripts/dnd.sh status",
"signal": 11
},
@ -308,9 +307,9 @@
"on": "󰃡",
"off": "󰃠"
},
"exec": "$HOME/.config/scripts/wluma.sh",
"on-click": "$HOME/.config/scripts/wluma.sh toggle",
"exec-if": "$HOME/.config/scripts/wluma.sh check",
"exec": "$HOME/.config/sway/scripts/wluma.sh",
"on-click": "$HOME/.config/sway/scripts/wluma.sh toggle",
"exec-if": "$HOME/.config/sway/scripts/wluma.sh check",
"signal": 12
},
@ -318,7 +317,7 @@
"format": "{icon}",
"tooltip": true,
"interval": 60,
"exec": "$HOME/.config/scripts/valent.py",
"exec": "$HOME/.config/sway/scripts/valent.py",
"exec-if": "[ -x \"$(command -v valent)\" ]",
"return-type": "json",
"format-icons": {
@ -333,7 +332,7 @@
"signal": 13
},
"custom/idle_inhibitor": {
"custom/idle-inhibitor": {
"interval": 60,
"return-type": "json",
"format": "{icon}",

View file

@ -1,2 +1,95 @@
@import "/usr/share/sway/templates/waybar/style.css";
@import url("../../.cache/wal/colors-waybar.css");
@define-color warning_color @color15;
@define-color error_color @color14;
@define-color focused_color @color8;
@keyframes blink-warning {
70% {
color: @wm_icon_bg;
}
to {
color: @wm_icon_bg;
background-color: @warning_color;
}
}
@keyframes blink-critical {
70% {
color: @wm_icon_bg;
}
to {
color: @wm_icon_bg;
background-color: @error_color;
}
}
* {
border-radius: 0;
border: none;
margin: 0;
min-height: 0;
padding: 0;
font-family: Font Awesome, "JetBrainsMono NF", "Roboto Mono", "Ubuntu", "Droid", "MesloLGL Nerd Font", Roboto, sans-serif;
}
window#waybar {
color: @foreground;
background: rgba(0, 0, 0, 0);
}
.modules-right,
.modules-left {
margin: 0;
padding: 2px 10px;
background-color: alpha(@background, 0.7);
}
.modules-right {
border-radius: 0 0 0 10px;
}
.modules-left {
border-radius: 0 0 10px 0;
}
#backlight,
#battery,
#bluetooth,
#clock,
#cpu,
#custom-adaptive-light,
#custom-clipboard,
#custom-dnd,
#custom-github,
#custom-idle-inhibitor,
#custom-menu,
#custom-scratchpad,
#custom-sunset,
#custom-weather,
#custom-zeit,
#language,
#memory,
#mode,
#network,
#network,
#pulseaudio,
#temperature,
#tray
{
padding: 0 10px;
}
#workspaces button {
padding-bottom: 2px;
color: @foreground;
}
#workspaces button.focused {
border-color: @focused_color;
}
#workspaces button.urgent {
border-color: @error_color;
color: @error_color;
}