feat: configure Waybar, Wofi and Mako
This commit is contained in:
parent
e8b7684f35
commit
3f0609bcfc
7 changed files with 266 additions and 0 deletions
84
waybar/config.jsonc
Normal file
84
waybar/config.jsonc
Normal file
|
|
@ -0,0 +1,84 @@
|
|||
{
|
||||
"layer": "top",
|
||||
"position": "top",
|
||||
"height": 30,
|
||||
"margin-top": 6,
|
||||
"margin-left": 8,
|
||||
"margin-right": 8,
|
||||
"spacing": 8,
|
||||
"modules-left": ["hyprland/workspaces"],
|
||||
"modules-right": [
|
||||
"wlr/taskbar",
|
||||
"idle_inhibitor",
|
||||
"pulseaudio",
|
||||
"network",
|
||||
"cpu",
|
||||
"memory",
|
||||
"temperature",
|
||||
"hyprland/language",
|
||||
"clock",
|
||||
"tray",
|
||||
"custom/power"
|
||||
],
|
||||
"hyprland/workspaces": {
|
||||
"format": "{name}",
|
||||
"all-outputs": false,
|
||||
"active-only": false,
|
||||
"on-click": "activate",
|
||||
"sort-by-number": true,
|
||||
"ignore-workspaces": ["^special:.*", "^secondary$"]
|
||||
},
|
||||
"wlr/taskbar": {
|
||||
"format": "{icon}",
|
||||
"icon-size": 20,
|
||||
"icon-theme": "Adwaita",
|
||||
"tooltip-format": "{title}",
|
||||
"on-click": "activate",
|
||||
"on-click-middle": "close"
|
||||
},
|
||||
"idle_inhibitor": {
|
||||
"format": "{icon}",
|
||||
"format-icons": {"activated": "", "deactivated": ""},
|
||||
"tooltip-format-activated": "Keep screen awake",
|
||||
"tooltip-format-deactivated": "Allow screen to sleep"
|
||||
},
|
||||
"pulseaudio": {
|
||||
"format": "{volume}% {icon} {format_source}",
|
||||
"format-muted": " {format_source}",
|
||||
"format-source": "{volume}% ",
|
||||
"format-source-muted": "",
|
||||
"format-icons": {"headphone": "", "default": ["", "", ""]},
|
||||
"scroll-step": 5,
|
||||
"on-click": "wpctl set-mute @DEFAULT_AUDIO_SINK@ toggle",
|
||||
"on-click-right": "wpctl set-mute @DEFAULT_AUDIO_SOURCE@ toggle"
|
||||
},
|
||||
"network": {
|
||||
"format-ethernet": "{ifname} via {gwaddr} ",
|
||||
"format-wifi": "{essid} {signalStrength}% ",
|
||||
"format-linked": "{ifname} ",
|
||||
"format-disconnected": "Offline ⚠",
|
||||
"tooltip-format": "{ifname}\n{ipaddr}/{cidr}\nGateway: {gwaddr}",
|
||||
"max-length": 34
|
||||
},
|
||||
"cpu": {"format": "{usage}% ", "interval": 3},
|
||||
"memory": {"format": "{percentage}% ", "interval": 3},
|
||||
"temperature": {
|
||||
"hwmon-path-abs": "/sys/devices/pci0000:00/0000:00:18.3/hwmon",
|
||||
"input-filename": "temp1_input",
|
||||
"format": "{temperatureC}°C ",
|
||||
"critical-threshold": 85,
|
||||
"interval": 5
|
||||
},
|
||||
"hyprland/language": {"format": " {}", "format-en": "US", "format-ru": "RU"},
|
||||
"clock": {
|
||||
"format": "{:%a %d %b | %H:%M}",
|
||||
"format-alt": "{:%Y-%m-%d | %H:%M:%S}",
|
||||
"tooltip-format": "<big>{:%B %Y}</big>\n<tt><small>{calendar}</small></tt>"
|
||||
},
|
||||
"tray": {"icon-size": 18, "spacing": 8},
|
||||
"custom/power": {
|
||||
"format": "",
|
||||
"tooltip-format": "Power menu",
|
||||
"on-click": "sh ~/.config/waybar/power-menu.sh"
|
||||
}
|
||||
}
|
||||
11
waybar/power-menu.sh
Normal file
11
waybar/power-menu.sh
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
#!/bin/sh
|
||||
|
||||
choice=$(printf '%s\n' 'Lock' 'Suspend' 'Reboot' 'Power off' |
|
||||
wofi --dmenu --prompt 'Power' --width 300 --height 220 --hide-scroll)
|
||||
|
||||
case "$choice" in
|
||||
Lock) pgrep -x hyprlock >/dev/null || hyprlock ;;
|
||||
Suspend) systemctl suspend ;;
|
||||
Reboot) systemctl reboot ;;
|
||||
'Power off') systemctl poweroff ;;
|
||||
esac
|
||||
94
waybar/style.css
Normal file
94
waybar/style.css
Normal file
|
|
@ -0,0 +1,94 @@
|
|||
* {
|
||||
font-family: "ProFontWindows Nerd Font Mono", "DejaVu Sans Mono", "Font Awesome 6 Free", "Font Awesome 7 Free", monospace;
|
||||
font-size: 12px;
|
||||
font-weight: bold;
|
||||
min-height: 0;
|
||||
}
|
||||
|
||||
window#waybar {
|
||||
background: transparent;
|
||||
color: #cdd6f4;
|
||||
}
|
||||
|
||||
tooltip {
|
||||
background: #1e1e2e;
|
||||
color: #cdd6f4;
|
||||
border: 1px solid #89b4fa;
|
||||
border-radius: 8px;
|
||||
}
|
||||
|
||||
#workspaces,
|
||||
#taskbar,
|
||||
#idle_inhibitor,
|
||||
#pulseaudio,
|
||||
#network,
|
||||
#cpu,
|
||||
#memory,
|
||||
#temperature,
|
||||
#language,
|
||||
#clock,
|
||||
#tray,
|
||||
#custom-power {
|
||||
background: rgba(30, 30, 46, 0.92);
|
||||
border-radius: 8px;
|
||||
padding: 3px 9px;
|
||||
}
|
||||
|
||||
#workspaces {
|
||||
padding: 0 3px;
|
||||
}
|
||||
|
||||
#workspaces button {
|
||||
background: transparent;
|
||||
color: #6c7086;
|
||||
border: none;
|
||||
border-radius: 6px;
|
||||
padding: 0 7px;
|
||||
box-shadow: none;
|
||||
text-shadow: none;
|
||||
}
|
||||
|
||||
#workspaces button.active {
|
||||
color: #89b4fa;
|
||||
background: #313244;
|
||||
}
|
||||
|
||||
#workspaces button.urgent {
|
||||
color: #f38ba8;
|
||||
}
|
||||
|
||||
#workspaces button:hover,
|
||||
#taskbar button:hover {
|
||||
background: #45475a;
|
||||
}
|
||||
|
||||
#taskbar {
|
||||
padding: 0 3px;
|
||||
}
|
||||
|
||||
#taskbar button {
|
||||
padding: 0 5px;
|
||||
border: none;
|
||||
border-radius: 6px;
|
||||
background: transparent;
|
||||
box-shadow: none;
|
||||
}
|
||||
|
||||
#taskbar button.active {
|
||||
background: #313244;
|
||||
}
|
||||
|
||||
#idle_inhibitor { color: #94e2d5; }
|
||||
#idle_inhibitor.activated { color: #f9e2af; }
|
||||
#pulseaudio, #network { color: #89b4fa; }
|
||||
#pulseaudio.muted, #network.disconnected { color: #6c7086; }
|
||||
#cpu, #memory, #temperature { color: #cba6f7; }
|
||||
#temperature.critical { color: #f38ba8; }
|
||||
#language { color: #f5c2e7; }
|
||||
#clock { color: #f38ba8; }
|
||||
#custom-power { color: #89b4fa; padding: 3px 12px; }
|
||||
|
||||
#custom-power:hover {
|
||||
background: #45475a;
|
||||
color: #f38ba8;
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue