use new waybar
This commit is contained in:
parent
0e15e26350
commit
6fcb849bc4
9 changed files with 1205 additions and 26 deletions
|
@ -6,7 +6,7 @@ height=300
|
|||
border-size=2
|
||||
border-color=#88c0d0
|
||||
border-radius=15
|
||||
icons=0
|
||||
icons=1
|
||||
max-icon-size=64
|
||||
default-timeout=5000
|
||||
ignore-timeout=1
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
[Appearance]
|
||||
color_scheme_path=/home/simono41/.config/qt5ct/colors/arc-dark.conf
|
||||
custom_palette=true
|
||||
icon_theme=ePapirus-Dark
|
||||
icon_theme=Papirus-Dark
|
||||
standard_dialogs=default
|
||||
style=Fusion
|
||||
|
||||
|
|
|
@ -235,31 +235,37 @@ bindsym $mod+r mode "resize"
|
|||
# Status-Bar
|
||||
#exec_always --no-startup-id $HOME/.config/polybar/launch.sh --cuts
|
||||
|
||||
# bar {
|
||||
# swaybar_command /usr/bin/swaybar
|
||||
# #font pango:Terminus (TTF) Bold 12
|
||||
# #font pango:Hack Nerd Font 13
|
||||
# font pango:Hack Bold 14
|
||||
# #font pango:DejaVu Sans Mono, FontAwesome 12
|
||||
# #font pango:MesloLGM Nerd Font Bold 13
|
||||
|
||||
# position top
|
||||
# status_command i3status-rs ~/.config/i3status-rust/config.toml
|
||||
|
||||
# # https://fontawesome.com/v4/cheatsheet/
|
||||
# separator_symbol
|
||||
|
||||
# colors {
|
||||
# background $bg-color
|
||||
# statusline #263238
|
||||
# separator #757575
|
||||
|
||||
# #colors outline background number
|
||||
# active_workspace #009688 #009688 #eceff1
|
||||
# focused_workspace $bg-color $bg-color $text-color
|
||||
# inactive_workspace $inactive-bg-color $inactive-bg-color $inactive-text-color
|
||||
# urgent_workspace $urgent-bg-color $urgent-bg-color $text-color
|
||||
# }
|
||||
# }
|
||||
|
||||
|
||||
# Read `man 5 sway-bar` for more information about this section.
|
||||
bar {
|
||||
swaybar_command /usr/bin/swaybar
|
||||
#font pango:Terminus (TTF) Bold 12
|
||||
#font pango:Hack Nerd Font 13
|
||||
#font pango:Hack 12
|
||||
#font pango:DejaVu Sans Mono, FontAwesome 12
|
||||
font pango:MesloLGM Nerd Font Bold 13
|
||||
|
||||
position top
|
||||
status_command i3status-rs ~/.config/i3status-rust/config.toml
|
||||
|
||||
# https://fontawesome.com/v4/cheatsheet/
|
||||
separator_symbol
|
||||
|
||||
colors {
|
||||
background $bg-color
|
||||
statusline #263238
|
||||
separator #757575
|
||||
|
||||
#colors outline background number
|
||||
active_workspace #009688 #009688 #eceff1
|
||||
focused_workspace $bg-color $bg-color $text-color
|
||||
inactive_workspace $inactive-bg-color $inactive-bg-color $inactive-text-color
|
||||
urgent_workspace $urgent-bg-color $urgent-bg-color $text-color
|
||||
}
|
||||
swaybar_command waybar
|
||||
}
|
||||
|
||||
input * {
|
||||
|
|
209
dot_config/waybar/config
Normal file
209
dot_config/waybar/config
Normal file
|
@ -0,0 +1,209 @@
|
|||
{
|
||||
// "layer": "top", // Waybar at top layer
|
||||
// "position": "bottom", // Waybar position (top|bottom|left|right)
|
||||
"height": 30, // Waybar height (to be removed for auto height)
|
||||
// "width": 1280, // Waybar width
|
||||
"spacing": 4, // Gaps between modules (4px)
|
||||
// Choose the order of the modules
|
||||
"modules-left": [
|
||||
"sway/workspaces"
|
||||
],
|
||||
"modules-center": [
|
||||
"sway/window"
|
||||
],
|
||||
"modules-right": [
|
||||
"idle_inhibitor",
|
||||
"pulseaudio",
|
||||
"network",
|
||||
"cpu",
|
||||
"memory",
|
||||
"temperature",
|
||||
"backlight",
|
||||
"battery",
|
||||
"battery#bat2",
|
||||
"clock",
|
||||
"tray"
|
||||
],
|
||||
// Modules configuration
|
||||
// "sway/workspaces": {
|
||||
// "disable-scroll": true,
|
||||
// "all-outputs": true,
|
||||
// "format": "{name}: {icon}",
|
||||
// "format-icons": {
|
||||
// "1": "",
|
||||
// "2": "",
|
||||
// "3": "",
|
||||
// "4": "",
|
||||
// "5": "",
|
||||
// "urgent": "",
|
||||
// "focused": "",
|
||||
// "default": ""
|
||||
// }
|
||||
// },
|
||||
"keyboard-state": {
|
||||
"numlock": true,
|
||||
"capslock": true,
|
||||
"format": "{name} {icon}",
|
||||
"format-icons": {
|
||||
"locked": "",
|
||||
"unlocked": ""
|
||||
}
|
||||
},
|
||||
"sway/mode": {
|
||||
"format": "<span style=\"italic\">{}</span>"
|
||||
},
|
||||
"sway/scratchpad": {
|
||||
"format": "{icon} {count}",
|
||||
"show-empty": false,
|
||||
"format-icons": [
|
||||
"",
|
||||
""
|
||||
],
|
||||
"tooltip": true,
|
||||
"tooltip-format": "{app}: {title}"
|
||||
},
|
||||
"mpd": {
|
||||
"format": "{stateIcon} {consumeIcon}{randomIcon}{repeatIcon}{singleIcon}{artist} - {album} - {title} ({elapsedTime:%M:%S}/{totalTime:%M:%S}) ⸨{songPosition}|{queueLength}⸩ {volume}% ",
|
||||
"format-disconnected": "Disconnected ",
|
||||
"format-stopped": "{consumeIcon}{randomIcon}{repeatIcon}{singleIcon}Stopped ",
|
||||
"unknown-tag": "N/A",
|
||||
"interval": 2,
|
||||
"consume-icons": {
|
||||
"on": " "
|
||||
},
|
||||
"random-icons": {
|
||||
"off": "<span color=\"#f53c3c\"></span> ",
|
||||
"on": " "
|
||||
},
|
||||
"repeat-icons": {
|
||||
"on": " "
|
||||
},
|
||||
"single-icons": {
|
||||
"on": "1 "
|
||||
},
|
||||
"state-icons": {
|
||||
"paused": "",
|
||||
"playing": ""
|
||||
},
|
||||
"tooltip-format": "MPD (connected)",
|
||||
"tooltip-format-disconnected": "MPD (disconnected)"
|
||||
},
|
||||
"idle_inhibitor": {
|
||||
"format": "{icon}",
|
||||
"format-icons": {
|
||||
"activated": "",
|
||||
"deactivated": ""
|
||||
}
|
||||
},
|
||||
"tray": {
|
||||
// "icon-size": 21,
|
||||
"spacing": 10
|
||||
},
|
||||
"clock": {
|
||||
// "timezone": "America/New_York",
|
||||
"tooltip-format": "<big>{:%Y %B}</big>\n<tt><small>{calendar}</small></tt>",
|
||||
"format-alt": "{:%Y-%m-%d}"
|
||||
},
|
||||
"cpu": {
|
||||
"format": "{usage}% ",
|
||||
"tooltip": false
|
||||
},
|
||||
"memory": {
|
||||
"format": "{}% "
|
||||
},
|
||||
"temperature": {
|
||||
// "thermal-zone": 2,
|
||||
// "hwmon-path": "/sys/class/hwmon/hwmon2/temp1_input",
|
||||
"critical-threshold": 80,
|
||||
// "format-critical": "{temperatureC}°C {icon}",
|
||||
"format": "{temperatureC}°C {icon}",
|
||||
"format-icons": [
|
||||
"",
|
||||
"",
|
||||
""
|
||||
]
|
||||
},
|
||||
"backlight": {
|
||||
// "device": "acpi_video1",
|
||||
"format": "{percent}% {icon}",
|
||||
"format-icons": [
|
||||
"",
|
||||
"",
|
||||
"",
|
||||
"",
|
||||
"",
|
||||
"",
|
||||
"",
|
||||
"",
|
||||
""
|
||||
]
|
||||
},
|
||||
"battery": {
|
||||
"states": {
|
||||
// "good": 95,
|
||||
"warning": 30,
|
||||
"critical": 15
|
||||
},
|
||||
"format": "{capacity}% {icon}",
|
||||
"format-charging": "{capacity}% ",
|
||||
"format-plugged": "{capacity}% ",
|
||||
"format-alt": "{time} {icon}",
|
||||
// "format-good": "", // An empty format will hide the module
|
||||
// "format-full": "",
|
||||
"format-icons": [
|
||||
"",
|
||||
"",
|
||||
"",
|
||||
"",
|
||||
""
|
||||
]
|
||||
},
|
||||
"battery#bat2": {
|
||||
"bat": "BAT2"
|
||||
},
|
||||
"network": {
|
||||
// "interface": "wlp2*", // (Optional) To force the use of this interface
|
||||
"format-wifi": "{essid} ({signalStrength}%) ",
|
||||
"format-ethernet": "{ipaddr}/{cidr} ",
|
||||
"tooltip-format": "{ifname} via {gwaddr} ",
|
||||
"format-linked": "{ifname} (No IP) ",
|
||||
"format-disconnected": "Disconnected ⚠",
|
||||
"format-alt": "{ifname}: {ipaddr}/{cidr}",
|
||||
"on-click-right": "wezterm start nmtui"
|
||||
},
|
||||
"pulseaudio": {
|
||||
// "scroll-step": 1, // %, can be a float
|
||||
"format": "{volume}% {icon} {format_source}",
|
||||
"format-bluetooth": "{volume}% {icon} {format_source}",
|
||||
"format-bluetooth-muted": " {icon} {format_source}",
|
||||
"format-muted": " {format_source}",
|
||||
"format-source": "{volume}% ",
|
||||
"format-source-muted": "",
|
||||
"format-icons": {
|
||||
"headphone": "",
|
||||
"hands-free": "",
|
||||
"headset": "",
|
||||
"phone": "",
|
||||
"portable": "",
|
||||
"car": "",
|
||||
"default": [
|
||||
"",
|
||||
"",
|
||||
""
|
||||
]
|
||||
},
|
||||
"on-click": "pavucontrol-qt"
|
||||
},
|
||||
"custom/media": {
|
||||
"format": "{icon} {}",
|
||||
"return-type": "json",
|
||||
"max-length": 40,
|
||||
"format-icons": {
|
||||
"spotify": "",
|
||||
"default": "🎜"
|
||||
},
|
||||
"escape": true,
|
||||
"exec": "$HOME/.config/waybar/mediaplayer.py 2> /dev/null" // Script in resources folder
|
||||
// "exec": "$HOME/.config/waybar/mediaplayer.py --player spotify 2> /dev/null" // Filter player based on name
|
||||
}
|
||||
}
|
110
dot_config/waybar/config-old
Normal file
110
dot_config/waybar/config-old
Normal file
|
@ -0,0 +1,110 @@
|
|||
{
|
||||
"layer": "top",
|
||||
"position": "top",
|
||||
"height": 27,
|
||||
"modules-left": [
|
||||
"sway/workspaces",
|
||||
"sway/window"
|
||||
],
|
||||
"modules-center": [],
|
||||
"modules-right": [
|
||||
"network",
|
||||
"temperature",
|
||||
"backlight",
|
||||
"pulseaudio",
|
||||
"battery",
|
||||
"clock",
|
||||
"tray"
|
||||
],
|
||||
"sway/workspaces": {
|
||||
"disable-scroll": true,
|
||||
"disable-markup": true,
|
||||
"format": "{index}"
|
||||
},
|
||||
"sway/window": {
|
||||
"format": "{}",
|
||||
"max-length": 150
|
||||
},
|
||||
"tray": {
|
||||
"icon-size": 18,
|
||||
"spacing": 15
|
||||
},
|
||||
"clock": {
|
||||
"format": "{:%a %b %e %R}",
|
||||
"interval": 30
|
||||
},
|
||||
"battery": {
|
||||
"bat": "BAT0",
|
||||
"states": {
|
||||
"full": 99,
|
||||
"good": 98,
|
||||
"normal": 98,
|
||||
"warning": 20,
|
||||
"critical": 20
|
||||
},
|
||||
"format": "{icon} {capacity}%",
|
||||
"format-good": "{icon} {capacity}%",
|
||||
"format-full": " {capacity}%",
|
||||
"format-icons": [
|
||||
"",
|
||||
"",
|
||||
"",
|
||||
"",
|
||||
""
|
||||
],
|
||||
"interval": 30
|
||||
},
|
||||
"network": {
|
||||
// "interface": "wlan0", // (Optional) To force the use of this interface,
|
||||
"format-wifi": " {essid}",
|
||||
"format-ethernet": "{ifname}: {ipaddr}/{cidr} ",
|
||||
"format-linked": "{ifname} (No IP) ",
|
||||
"format-disconnected": "",
|
||||
"format-alt": "{ifname}: {ipaddr}/{cidr}",
|
||||
"family": "ipv4",
|
||||
"tooltip-format-wifi": " {ifname} @ {essid}\nIP: {ipaddr}\nStrength: {signalStrength}%\nFreq: {frequency}MHz\n {bandwidthUpBits} {bandwidthDownBits}",
|
||||
"tooltip-format-ethernet": " {ifname}\nIP: {ipaddr}\n {bandwidthUpBits} {bandwidthDownBits}",
|
||||
"on-click-right": "wezterm start nmtui"
|
||||
},
|
||||
"temperature": {
|
||||
"thermal-zone": 0,
|
||||
"format": "{icon} {temperatureC}°C",
|
||||
"format-icons": [
|
||||
""
|
||||
],
|
||||
"interval": 30
|
||||
},
|
||||
"backlight": {
|
||||
"device": "intel_backlight",
|
||||
"format": "{icon} {percent}% ",
|
||||
"format-icons": [
|
||||
"",
|
||||
"",
|
||||
"",
|
||||
""
|
||||
],
|
||||
"interval": 60
|
||||
},
|
||||
"pulseaudio": {
|
||||
"scroll-step": 3, // %, can be a float
|
||||
"format": "{icon} {volume}% {format_source}",
|
||||
"format-bluetooth": "{volume}% {icon} {format_source}",
|
||||
"format-bluetooth-muted": " {icon} {format_source}",
|
||||
"format-muted": " {format_source}",
|
||||
//"format-source": "{volume}% ",
|
||||
//"format-source-muted": "",
|
||||
"format-source": "",
|
||||
"format-source-muted": "",
|
||||
"format-icons": {
|
||||
"headphone": "",
|
||||
"hands-free": "",
|
||||
"headset": "",
|
||||
"phone": "",
|
||||
"portable": "",
|
||||
"car": "",
|
||||
"default": ["", "", ""]
|
||||
},
|
||||
"on-click": "pavucontrol-qt",
|
||||
"on-click-right": "pactl set-source-mute @DEFAULT_SOURCE@ toggle"
|
||||
},
|
||||
}
|
176
dot_config/waybar/config-old2
Normal file
176
dot_config/waybar/config-old2
Normal file
|
@ -0,0 +1,176 @@
|
|||
{
|
||||
"layer": "top", // Waybar at top layer
|
||||
"position": "top", // Waybar position (top|bottom|left|right)
|
||||
// "height": 36, // Waybar height (to be removed for auto height)
|
||||
// Archived modules
|
||||
// "custom/gpu", "bluetooth", "custom/weather", "temperature", "sway/window"
|
||||
// Choose the order of the modules
|
||||
"modules-left": [ "clock", "sway/language", "custom/scratchpad-indicator", "custom/pacman", "sway/mode", "idle_inhibitor", "custom/media"],
|
||||
"modules-center": ["sway/workspaces"],
|
||||
"modules-right": [ "custom/cpugovernor", "cpu", "temperature", "custom/gpu", "pulseaudio", "bluetooth", "network", "tray"],
|
||||
// Modules configuration
|
||||
"sway/workspaces": {
|
||||
"disable-scroll": true,
|
||||
"all-outputs": true,
|
||||
"format": "{icon}",
|
||||
"format-icons": {
|
||||
"1": "<span color=\"#D8DEE9\"></span>",
|
||||
"2": "<span color=\"#88C0D0\"></span>",
|
||||
"3": "<span color=\"#A3BE8C\"></span>",
|
||||
"4": "<span color=\"#D8DEE9\"></span>",
|
||||
"urgent": "",
|
||||
"focused": "",
|
||||
"default": ""
|
||||
}
|
||||
},
|
||||
"sway/mode": {
|
||||
"format": "<span style=\"italic\">{}</span>"
|
||||
},
|
||||
"sway/window": {
|
||||
"format": "{}",
|
||||
"max-length": 50,
|
||||
"tooltip": false
|
||||
},
|
||||
"bluetooth": {
|
||||
"interval": 30,
|
||||
"format": "{icon}",
|
||||
// "format-alt": "{status}",
|
||||
"format-icons": {
|
||||
"enabled": "",
|
||||
"disabled": ""
|
||||
},
|
||||
"on-click": "blueberry"
|
||||
},
|
||||
"sway/language": {
|
||||
"format": "<big></big> {}",
|
||||
"max-length": 5,
|
||||
"min-length": 5,
|
||||
},
|
||||
"idle_inhibitor": {
|
||||
"format": "{icon}",
|
||||
"format-icons": {
|
||||
"activated": "",
|
||||
"deactivated": ""
|
||||
},
|
||||
"tooltip": "true"
|
||||
},
|
||||
"tray": {
|
||||
//"icon-size": 11,
|
||||
"spacing": 5
|
||||
},
|
||||
"clock": {
|
||||
"format": " {:%H:%M %e %b}",
|
||||
"tooltip-format": "<big>{:%Y %B}</big>\n<tt><small>{calendar}</small></tt>",
|
||||
"today-format": "<b>{}</b>",
|
||||
"on-click": "gnome-calendar"
|
||||
},
|
||||
"cpu": {
|
||||
"interval": "1",
|
||||
"format": " {max_frequency}GHz <span color=\"darkgray\">| {usage}%</span>",
|
||||
"max-length": 13,
|
||||
"min-length": 13,
|
||||
"on-click": "kitty -e htop --sort-key PERCENT_CPU",
|
||||
"tooltip": false
|
||||
},
|
||||
"temperature": {
|
||||
//"thermal-zone": 1,
|
||||
"interval": "4",
|
||||
"hwmon-path": "/sys/class/hwmon/hwmon3/temp1_input",
|
||||
"critical-threshold": 74,
|
||||
"format-critical": " {temperatureC}°C",
|
||||
"format": "{icon} {temperatureC}°C",
|
||||
"format-icons": ["", "", ""],
|
||||
"max-length": 7,
|
||||
"min-length": 7
|
||||
},
|
||||
"network": {
|
||||
// "interface": "wlan0", // (Optional) To force the use of this interface,
|
||||
"format-wifi": " {essid}",
|
||||
"format-ethernet": "{ifname}: {ipaddr}/{cidr} ",
|
||||
"format-linked": "{ifname} (No IP) ",
|
||||
"format-disconnected": "",
|
||||
"format-alt": "{ifname}: {ipaddr}/{cidr}",
|
||||
"family": "ipv4",
|
||||
"tooltip-format-wifi": " {ifname} @ {essid}\nIP: {ipaddr}\nStrength: {signalStrength}%\nFreq: {frequency}MHz\n {bandwidthUpBits} {bandwidthDownBits}",
|
||||
"tooltip-format-ethernet": " {ifname}\nIP: {ipaddr}\n {bandwidthUpBits} {bandwidthDownBits}"
|
||||
},
|
||||
"pulseaudio": {
|
||||
"scroll-step": 3, // %, can be a float
|
||||
"format": "{icon} {volume}% {format_source}",
|
||||
"format-bluetooth": "{volume}% {icon} {format_source}",
|
||||
"format-bluetooth-muted": " {icon} {format_source}",
|
||||
"format-muted": " {format_source}",
|
||||
//"format-source": "{volume}% ",
|
||||
//"format-source-muted": "",
|
||||
"format-source": "",
|
||||
"format-source-muted": "",
|
||||
"format-icons": {
|
||||
"headphone": "",
|
||||
"hands-free": "",
|
||||
"headset": "",
|
||||
"phone": "",
|
||||
"portable": "",
|
||||
"car": "",
|
||||
"default": ["", "", ""]
|
||||
},
|
||||
"on-click": "pavucontrol",
|
||||
"on-click-right": "pactl set-source-mute @DEFAULT_SOURCE@ toggle"
|
||||
},
|
||||
"custom/pacman": {
|
||||
"format": "<big></big> {}",
|
||||
"interval": 3600, // every hour
|
||||
"exec": "checkupdates | wc -l", // # of updates
|
||||
"exec-if": "exit 0", // always run; consider advanced run conditions
|
||||
"on-click": "kitty -e 'yay'; pkill -SIGRTMIN+8 waybar", // update system
|
||||
"signal": 8,
|
||||
"max-length": 5,
|
||||
"min-length": 3
|
||||
},
|
||||
"custom/weather": {
|
||||
"exec": "curl 'https://wttr.in/?format=1'",
|
||||
"interval": 3600
|
||||
},
|
||||
"custom/gpu": {
|
||||
"exec": "$HOME/.config/waybar/custom_modules/custom-gpu.sh",
|
||||
"return-type": "json",
|
||||
"format": " {}",
|
||||
"interval": 2,
|
||||
"tooltip": "{tooltip}",
|
||||
"max-length": 19,
|
||||
"min-length": 19,
|
||||
"on-click": "powerupp"
|
||||
|
||||
},
|
||||
"custom/cpugovernor": {
|
||||
"format": "{icon}",
|
||||
"interval": "30",
|
||||
"return-type": "json",
|
||||
"exec": "$HOME/.config/waybar/custom_modules/cpugovernor.sh",
|
||||
"min-length": 2,
|
||||
"max-length": 2,
|
||||
"format-icons": {
|
||||
"perf": "",
|
||||
"sched": ""
|
||||
},
|
||||
},
|
||||
"custom/media": {
|
||||
"format": "{icon} {}",
|
||||
"return-type": "json",
|
||||
"max-length": 40,
|
||||
"format-icons": {
|
||||
"spotify": "",
|
||||
"default": "🎜"
|
||||
},
|
||||
"escape": true,
|
||||
"exec": "$HOME/.config/waybar/mediaplayer.py 2> /dev/null" // Script in resources folder
|
||||
// "exec": "$HOME/.config/waybar/mediaplayer.py --player spotify 2> /dev/null" // Filter player based on name
|
||||
},
|
||||
"custom/scratchpad-indicator": {
|
||||
"interval": 3,
|
||||
"return-type": "json",
|
||||
"exec": "swaymsg -t get_tree | jq --unbuffered --compact-output '( select(.name == \"root\") | .nodes[] | select(.name == \"__i3\") | .nodes[] | select(.name == \"__i3_scratch\") | .focus) as $scratch_ids | [.. | (.nodes? + .floating_nodes?) // empty | .[] | select(.id |IN($scratch_ids[]))] as $scratch_nodes | { text: \"\\($scratch_nodes | length)\", tooltip: $scratch_nodes | map(\"\\(.app_id // .window_properties.class) (\\(.id)): \\(.name)\") | join(\"\\n\") }'",
|
||||
"format": "{} ",
|
||||
"on-click": "exec swaymsg 'scratchpad show'",
|
||||
"on-click-right": "exec swaymsg 'move scratchpad'"
|
||||
}
|
||||
}
|
280
dot_config/waybar/style.css
Normal file
280
dot_config/waybar/style.css
Normal file
|
@ -0,0 +1,280 @@
|
|||
* {
|
||||
/* `otf-font-awesome` is required to be installed for icons */
|
||||
font-family: FontAwesome, Roboto, Helvetica, Arial, sans-serif;
|
||||
font-size: 13px;
|
||||
}
|
||||
|
||||
window#waybar {
|
||||
background-color: rgba(43, 48, 59, 0.5);
|
||||
border-bottom: 3px solid rgba(100, 114, 125, 0.5);
|
||||
color: #ffffff;
|
||||
transition-property: background-color;
|
||||
transition-duration: .5s;
|
||||
}
|
||||
|
||||
window#waybar.hidden {
|
||||
opacity: 0.2;
|
||||
}
|
||||
|
||||
/*
|
||||
window#waybar.empty {
|
||||
background-color: transparent;
|
||||
}
|
||||
window#waybar.solo {
|
||||
background-color: #FFFFFF;
|
||||
}
|
||||
*/
|
||||
|
||||
window#waybar.termite {
|
||||
background-color: #3F3F3F;
|
||||
}
|
||||
|
||||
window#waybar.chromium {
|
||||
background-color: #000000;
|
||||
border: none;
|
||||
}
|
||||
|
||||
button {
|
||||
/* Use box-shadow instead of border so the text isn't offset */
|
||||
box-shadow: inset 0 -3px transparent;
|
||||
/* Avoid rounded borders under each button name */
|
||||
border: none;
|
||||
border-radius: 0;
|
||||
}
|
||||
|
||||
/* https://github.com/Alexays/Waybar/wiki/FAQ#the-workspace-buttons-have-a-strange-hover-effect */
|
||||
button:hover {
|
||||
background: inherit;
|
||||
box-shadow: inset 0 -3px #ffffff;
|
||||
}
|
||||
|
||||
#workspaces button {
|
||||
padding: 0 5px;
|
||||
background-color: transparent;
|
||||
color: #ffffff;
|
||||
}
|
||||
|
||||
#workspaces button:hover {
|
||||
background: rgba(0, 0, 0, 0.2);
|
||||
}
|
||||
|
||||
#workspaces button.focused {
|
||||
background-color: #64727D;
|
||||
box-shadow: inset 0 -3px #ffffff;
|
||||
}
|
||||
|
||||
#workspaces button.urgent {
|
||||
background-color: #eb4d4b;
|
||||
}
|
||||
|
||||
#mode {
|
||||
background-color: #64727D;
|
||||
border-bottom: 3px solid #ffffff;
|
||||
}
|
||||
|
||||
#clock,
|
||||
#battery,
|
||||
#cpu,
|
||||
#memory,
|
||||
#disk,
|
||||
#temperature,
|
||||
#backlight,
|
||||
#network,
|
||||
#pulseaudio,
|
||||
#wireplumber,
|
||||
#custom-media,
|
||||
#tray,
|
||||
#mode,
|
||||
#idle_inhibitor,
|
||||
#scratchpad,
|
||||
#mpd {
|
||||
padding: 0 10px;
|
||||
color: #ffffff;
|
||||
}
|
||||
|
||||
#window,
|
||||
#workspaces {
|
||||
margin: 0 4px;
|
||||
}
|
||||
|
||||
/* If workspaces is the leftmost module, omit left margin */
|
||||
.modules-left > widget:first-child > #workspaces {
|
||||
margin-left: 0;
|
||||
}
|
||||
|
||||
/* If workspaces is the rightmost module, omit right margin */
|
||||
.modules-right > widget:last-child > #workspaces {
|
||||
margin-right: 0;
|
||||
}
|
||||
|
||||
#clock {
|
||||
background-color: #64727D;
|
||||
}
|
||||
|
||||
#battery {
|
||||
background-color: #ffffff;
|
||||
color: #000000;
|
||||
}
|
||||
|
||||
#battery.charging, #battery.plugged {
|
||||
color: #ffffff;
|
||||
background-color: #26A65B;
|
||||
}
|
||||
|
||||
@keyframes blink {
|
||||
to {
|
||||
background-color: #ffffff;
|
||||
color: #000000;
|
||||
}
|
||||
}
|
||||
|
||||
#battery.critical:not(.charging) {
|
||||
background-color: #f53c3c;
|
||||
color: #ffffff;
|
||||
animation-name: blink;
|
||||
animation-duration: 0.5s;
|
||||
animation-timing-function: linear;
|
||||
animation-iteration-count: infinite;
|
||||
animation-direction: alternate;
|
||||
}
|
||||
|
||||
label:focus {
|
||||
background-color: #000000;
|
||||
}
|
||||
|
||||
#cpu {
|
||||
background-color: #2ecc71;
|
||||
color: #000000;
|
||||
}
|
||||
|
||||
#memory {
|
||||
background-color: #9b59b6;
|
||||
}
|
||||
|
||||
#disk {
|
||||
background-color: #964B00;
|
||||
}
|
||||
|
||||
#backlight {
|
||||
background-color: #90b1b1;
|
||||
}
|
||||
|
||||
#network {
|
||||
background-color: #2980b9;
|
||||
}
|
||||
|
||||
#network.disconnected {
|
||||
background-color: #f53c3c;
|
||||
}
|
||||
|
||||
#pulseaudio {
|
||||
background-color: #f1c40f;
|
||||
color: #000000;
|
||||
}
|
||||
|
||||
#pulseaudio.muted {
|
||||
background-color: #90b1b1;
|
||||
color: #2a5c45;
|
||||
}
|
||||
|
||||
#wireplumber {
|
||||
background-color: #fff0f5;
|
||||
color: #000000;
|
||||
}
|
||||
|
||||
#wireplumber.muted {
|
||||
background-color: #f53c3c;
|
||||
}
|
||||
|
||||
#custom-media {
|
||||
background-color: #66cc99;
|
||||
color: #2a5c45;
|
||||
min-width: 100px;
|
||||
}
|
||||
|
||||
#custom-media.custom-spotify {
|
||||
background-color: #66cc99;
|
||||
}
|
||||
|
||||
#custom-media.custom-vlc {
|
||||
background-color: #ffa000;
|
||||
}
|
||||
|
||||
#temperature {
|
||||
background-color: #f0932b;
|
||||
}
|
||||
|
||||
#temperature.critical {
|
||||
background-color: #eb4d4b;
|
||||
}
|
||||
|
||||
#tray {
|
||||
background-color: #2980b9;
|
||||
}
|
||||
|
||||
#tray > .passive {
|
||||
-gtk-icon-effect: dim;
|
||||
}
|
||||
|
||||
#tray > .needs-attention {
|
||||
-gtk-icon-effect: highlight;
|
||||
background-color: #eb4d4b;
|
||||
}
|
||||
|
||||
#idle_inhibitor {
|
||||
background-color: #2d3436;
|
||||
}
|
||||
|
||||
#idle_inhibitor.activated {
|
||||
background-color: #ecf0f1;
|
||||
color: #2d3436;
|
||||
}
|
||||
|
||||
#mpd {
|
||||
background-color: #66cc99;
|
||||
color: #2a5c45;
|
||||
}
|
||||
|
||||
#mpd.disconnected {
|
||||
background-color: #f53c3c;
|
||||
}
|
||||
|
||||
#mpd.stopped {
|
||||
background-color: #90b1b1;
|
||||
}
|
||||
|
||||
#mpd.paused {
|
||||
background-color: #51a37a;
|
||||
}
|
||||
|
||||
#language {
|
||||
background: #00b093;
|
||||
color: #740864;
|
||||
padding: 0 5px;
|
||||
margin: 0 5px;
|
||||
min-width: 16px;
|
||||
}
|
||||
|
||||
#keyboard-state {
|
||||
background: #97e1ad;
|
||||
color: #000000;
|
||||
padding: 0 0px;
|
||||
margin: 0 5px;
|
||||
min-width: 16px;
|
||||
}
|
||||
|
||||
#keyboard-state > label {
|
||||
padding: 0 5px;
|
||||
}
|
||||
|
||||
#keyboard-state > label.locked {
|
||||
background: rgba(0, 0, 0, 0.2);
|
||||
}
|
||||
|
||||
#scratchpad {
|
||||
background: rgba(0, 0, 0, 0.2);
|
||||
}
|
||||
|
||||
#scratchpad.empty {
|
||||
background-color: transparent;
|
||||
}
|
102
dot_config/waybar/style.css-old
Normal file
102
dot_config/waybar/style.css-old
Normal file
|
@ -0,0 +1,102 @@
|
|||
* {
|
||||
font-family: "Hack Nerd Font";
|
||||
font-size: 16px;
|
||||
}
|
||||
|
||||
|
||||
window#waybar {
|
||||
background-color: #225877;
|
||||
color: #ffffff;
|
||||
}
|
||||
|
||||
|
||||
.modules-left {
|
||||
background-color: #323232;
|
||||
padding: 0px 0px 0px 0px;
|
||||
}
|
||||
|
||||
|
||||
.modules-right {
|
||||
background-color: #323232;
|
||||
padding: 0px 5px 0px 0px;
|
||||
}
|
||||
|
||||
|
||||
#custom-scratch {
|
||||
background-color: #323232;
|
||||
color: #b8b8b8;
|
||||
padding: 0px 9px 0px 9px;
|
||||
}
|
||||
|
||||
|
||||
#workspaces {}
|
||||
|
||||
|
||||
#workspaces button {
|
||||
padding: 0px 11px 0px 11px;
|
||||
min-width: 1px;
|
||||
color: #888888;
|
||||
}
|
||||
|
||||
|
||||
#workspaces button.focused {
|
||||
padding: 0px 11px 0px 11px;
|
||||
background-color: #285577;
|
||||
color: #ffffff;
|
||||
}
|
||||
|
||||
|
||||
#mode {
|
||||
background-color: #900000;
|
||||
color: #ffffff;
|
||||
padding: 0px 5px 0px 5px;
|
||||
border: 1px solid #2f343a;
|
||||
}
|
||||
|
||||
|
||||
#window {
|
||||
color: #ffffff;
|
||||
background-color: #285577;
|
||||
padding: 0px 10px 0px 10px;
|
||||
}
|
||||
|
||||
|
||||
window#waybar.empty #window {
|
||||
background-color: transparent;
|
||||
color: transparent;
|
||||
}
|
||||
|
||||
|
||||
window#waybar.empty {
|
||||
background-color: #323232;
|
||||
}
|
||||
|
||||
|
||||
#network,
|
||||
#temperature,
|
||||
#backlight,
|
||||
#pulseudio,
|
||||
#battery {
|
||||
padding: 0px 15px 0px 15px;
|
||||
}
|
||||
|
||||
|
||||
#clock {
|
||||
margin: 0px 15px 0px 15px;
|
||||
}
|
||||
|
||||
|
||||
#tray {
|
||||
padding: 0px 8px 0px 5px;
|
||||
margin: 0px 5px 0px 5px;
|
||||
}
|
||||
|
||||
|
||||
#battery.critical {
|
||||
color: #ff5555;
|
||||
}
|
||||
|
||||
|
||||
#network.disconnected {
|
||||
color: #ff5555;
|
||||
}
|
296
dot_config/waybar/style.css-old2
Normal file
296
dot_config/waybar/style.css-old2
Normal file
|
@ -0,0 +1,296 @@
|
|||
|
||||
@keyframes blink-warning {
|
||||
70% {
|
||||
color: @light;
|
||||
}
|
||||
|
||||
to {
|
||||
color: @light;
|
||||
background-color: @warning;
|
||||
}
|
||||
}
|
||||
|
||||
@keyframes blink-critical {
|
||||
70% {
|
||||
color: @light;
|
||||
}
|
||||
|
||||
to {
|
||||
color: @light;
|
||||
background-color: @critical;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
/* -----------------------------------------------------------------------------
|
||||
* Styles
|
||||
* -------------------------------------------------------------------------- */
|
||||
|
||||
/* COLORS */
|
||||
|
||||
/* Nord */
|
||||
@define-color bg #2E3440;
|
||||
/*@define-color bg #353C4A;*/
|
||||
@define-color light #D8DEE9;
|
||||
/*@define-color dark @nord_dark_font;*/
|
||||
@define-color warning #ebcb8b;
|
||||
@define-color critical #BF616A;
|
||||
@define-color mode #434C5E;
|
||||
/*@define-color workspaces @bg;*/
|
||||
/*@define-color workspaces @nord_dark_font;*/
|
||||
/*@define-color workspacesfocused #434C5E;*/
|
||||
@define-color workspacesfocused #4C566A;
|
||||
@define-color tray @workspacesfocused;
|
||||
@define-color sound #EBCB8B;
|
||||
@define-color network #5D7096;
|
||||
@define-color memory #546484;
|
||||
@define-color cpu #596A8D;
|
||||
@define-color temp #4D5C78;
|
||||
@define-color layout #5e81ac;
|
||||
@define-color battery #88c0d0;
|
||||
@define-color date #434C5E;
|
||||
@define-color time #434C5E;
|
||||
@define-color backlight #434C5E;
|
||||
@define-color nord_bg #434C5E;
|
||||
@define-color nord_bg_blue #546484;
|
||||
@define-color nord_light #D8DEE9;
|
||||
@define-color nord_light_font #D8DEE9;
|
||||
@define-color nord_dark_font #434C5E;
|
||||
|
||||
/* Reset all styles */
|
||||
* {
|
||||
border: none;
|
||||
border-radius: 3px;
|
||||
min-height: 0;
|
||||
margin: 0.2em 0.3em 0.2em 0.3em;
|
||||
}
|
||||
|
||||
/* The whole bar */
|
||||
#waybar {
|
||||
background: @bg;
|
||||
color: @light;
|
||||
font-family: "Cantarell", "Font Awesome 5 Pro";
|
||||
font-size: 12px;
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
/* Each module */
|
||||
#battery,
|
||||
#clock,
|
||||
#cpu,
|
||||
#custom-layout,
|
||||
#memory,
|
||||
#mode,
|
||||
#network,
|
||||
#pulseaudio,
|
||||
#temperature,
|
||||
#custom-alsa,
|
||||
#custom-pacman,
|
||||
#custom-weather,
|
||||
#custom-gpu,
|
||||
#tray,
|
||||
#backlight,
|
||||
#language,
|
||||
#custom-cpugovernor {
|
||||
padding-left: 0.6em;
|
||||
padding-right: 0.6em;
|
||||
}
|
||||
|
||||
/* Each module that should blink */
|
||||
#mode,
|
||||
#memory,
|
||||
#temperature,
|
||||
#battery {
|
||||
animation-timing-function: linear;
|
||||
animation-iteration-count: infinite;
|
||||
animation-direction: alternate;
|
||||
}
|
||||
|
||||
/* Each critical module */
|
||||
#memory.critical,
|
||||
#cpu.critical,
|
||||
#temperature.critical,
|
||||
#battery.critical {
|
||||
color: @critical;
|
||||
}
|
||||
|
||||
/* Each critical that should blink */
|
||||
#mode,
|
||||
#memory.critical,
|
||||
#temperature.critical,
|
||||
#battery.critical.discharging {
|
||||
animation-name: blink-critical;
|
||||
animation-duration: 2s;
|
||||
}
|
||||
|
||||
/* Each warning */
|
||||
#network.disconnected,
|
||||
#memory.warning,
|
||||
#cpu.warning,
|
||||
#temperature.warning,
|
||||
#battery.warning {
|
||||
background: @warning;
|
||||
color: @nord_dark_font;
|
||||
}
|
||||
|
||||
/* Each warning that should blink */
|
||||
#battery.warning.discharging {
|
||||
animation-name: blink-warning;
|
||||
animation-duration: 3s;
|
||||
}
|
||||
|
||||
/* And now modules themselves in their respective order */
|
||||
|
||||
#mode { /* Shown current Sway mode (resize etc.) */
|
||||
color: @light;
|
||||
background: @mode;
|
||||
}
|
||||
|
||||
/* Workspaces stuff */
|
||||
|
||||
#workspaces {
|
||||
/* color: #D8DEE9;
|
||||
margin-right: 10px;*/
|
||||
}
|
||||
|
||||
#workspaces button {
|
||||
font-weight: bold; /* Somewhy the bar-wide setting is ignored*/
|
||||
padding: 0;
|
||||
/*color: #999;*/
|
||||
opacity: 0.3;
|
||||
background: none;
|
||||
font-size: 1em;
|
||||
}
|
||||
|
||||
#workspaces button.focused {
|
||||
background: @workspacesfocused;
|
||||
color: #D8DEE9;
|
||||
opacity: 1;
|
||||
padding: 0 0.4em;
|
||||
}
|
||||
|
||||
#workspaces button.urgent {
|
||||
border-color: #c9545d;
|
||||
color: #c9545d;
|
||||
opacity: 1;
|
||||
}
|
||||
|
||||
#window {
|
||||
margin-right: 40px;
|
||||
margin-left: 40px;
|
||||
font-weight: normal;
|
||||
}
|
||||
#bluetooth {
|
||||
background: @nord_bg_blue;
|
||||
font-size: 1.2em;
|
||||
font-weight: bold;
|
||||
padding: 0 0.6em;
|
||||
}
|
||||
#custom-gpu {
|
||||
background: @nord_bg;
|
||||
font-weight: bold;
|
||||
padding: 0 0.6em;
|
||||
}
|
||||
#custom-weather {
|
||||
background: @mode;
|
||||
font-weight: bold;
|
||||
padding: 0 0.6em;
|
||||
}
|
||||
#custom-pacman {
|
||||
background: @nord_light;
|
||||
color: @nord_dark_font;
|
||||
font-weight: bold;
|
||||
padding: 0 0.6em;
|
||||
}
|
||||
#custom-scratchpad-indicator {
|
||||
background: @nord_light;
|
||||
color: @nord_dark_font;
|
||||
font-weight: bold;
|
||||
padding: 0 0.6em;
|
||||
}
|
||||
#idle_inhibitor {
|
||||
background: @mode;
|
||||
/*font-size: 1.6em;*/
|
||||
font-weight: bold;
|
||||
padding: 0 0.6em;
|
||||
}
|
||||
#custom-alsa {
|
||||
background: @sound;
|
||||
}
|
||||
|
||||
#network {
|
||||
background: @nord_bg_blue;
|
||||
}
|
||||
|
||||
#memory {
|
||||
background: @memory;
|
||||
}
|
||||
|
||||
#cpu {
|
||||
background: @nord_bg;
|
||||
color: #D8DEE9;
|
||||
}
|
||||
#cpu.critical {
|
||||
color: @nord_dark_font;
|
||||
}
|
||||
#language {
|
||||
background: @nord_bg_blue;
|
||||
color: #D8DEE9;
|
||||
padding: 0 0.4em;
|
||||
}
|
||||
#custom-cpugovernor {
|
||||
background-color: @nord_light;
|
||||
color: @nord_dark_font;
|
||||
}
|
||||
#custom-cpugovernor.perf {
|
||||
|
||||
}
|
||||
#temperature {
|
||||
background-color: @nord_bg;
|
||||
color: #D8DEE9;
|
||||
}
|
||||
#temperature.critical {
|
||||
background: @critical;
|
||||
}
|
||||
#custom-layout {
|
||||
background: @layout;
|
||||
}
|
||||
|
||||
#battery {
|
||||
background: @battery;
|
||||
}
|
||||
|
||||
#backlight {
|
||||
background: @backlight;
|
||||
}
|
||||
|
||||
#clock {
|
||||
background: @nord_bg_blue;
|
||||
color: #D8DEE9;
|
||||
}
|
||||
#clock.date {
|
||||
background: @date;
|
||||
}
|
||||
|
||||
#clock.time {
|
||||
background: @mode;
|
||||
}
|
||||
|
||||
#pulseaudio { /* Unsused but kept for those who needs it */
|
||||
background: @nord_bg_blue;
|
||||
color: #D8DEE9;
|
||||
}
|
||||
|
||||
#pulseaudio.muted {
|
||||
background: #BF616A;
|
||||
color: #BF616A;
|
||||
/* No styles */
|
||||
}
|
||||
#pulseaudio.source-muted {
|
||||
background: #D08770;
|
||||
color: #D8DEE9;
|
||||
/* No styles */
|
||||
}
|
||||
#tray {
|
||||
background: #434C5E;
|
||||
}
|
Loading…
Reference in a new issue