create waybar and hyprland config for desktop switch from KDE
This commit is contained in:
@@ -183,7 +183,7 @@ hl.config({
|
||||
sensitivity = 0, -- -1.0 - 1.0, 0 means no modification.
|
||||
|
||||
touchpad = {
|
||||
natural_scroll = false,
|
||||
natural_scroll = true,
|
||||
},
|
||||
},
|
||||
})
|
||||
|
||||
235
laptop/waybar/config.jsonc
Normal file
235
laptop/waybar/config.jsonc
Normal file
@@ -0,0 +1,235 @@
|
||||
[
|
||||
{
|
||||
"layer": "top",
|
||||
"position": "top",
|
||||
"height": 36,
|
||||
"margin-top": 7,
|
||||
"margin-left": 446,
|
||||
"margin-right": 446,
|
||||
"spacing": 6,
|
||||
"modules-left": [
|
||||
"image",
|
||||
"dwl/tags",
|
||||
"dwl/window"
|
||||
],
|
||||
"modules-center": [
|
||||
"cpu",
|
||||
"temperature",
|
||||
"memory",
|
||||
"disk",
|
||||
"network"
|
||||
],
|
||||
"modules-right": [
|
||||
"custom/layout",
|
||||
"tray",
|
||||
"custom/notifications",
|
||||
"battery",
|
||||
"pulseaudio",
|
||||
"clock",
|
||||
"custom/power"
|
||||
],
|
||||
"image": {
|
||||
"exec": "$HOME/.config/waybar/scripts/fedora-logo-themed.sh",
|
||||
"size": 18,
|
||||
"interval": "once",
|
||||
"tooltip": false
|
||||
},
|
||||
"dwl/tags": {
|
||||
"num-tags": 9,
|
||||
"tag-labels": [
|
||||
"1",
|
||||
"2",
|
||||
"3",
|
||||
"4",
|
||||
"5",
|
||||
"6",
|
||||
"7",
|
||||
"8",
|
||||
"9"
|
||||
]
|
||||
},
|
||||
"dwl/window": {
|
||||
"format": "{title}",
|
||||
"max-length": 50,
|
||||
"rewrite": {
|
||||
"(.*) \u2014 Mozilla Firefox": "\uf279 $1",
|
||||
"(.*) - Chromium": "\uf268 $1",
|
||||
"(.*) - Visual Studio Code": "\uf121 $1",
|
||||
"(.*) - zed": "\uf121 $1",
|
||||
"(.*) - Discord": "\uf392 $1",
|
||||
"(.*) - Steam": "\uf1b6 $1"
|
||||
}
|
||||
},
|
||||
"cpu": {
|
||||
"format": "\uf4bc {usage}%",
|
||||
"interval": 2,
|
||||
"tooltip": true,
|
||||
"tooltip-format": "CPU: {usage}%"
|
||||
},
|
||||
"temperature": {
|
||||
"format": "\uf2c9 {temperatureC}\u00b0",
|
||||
"interval": 2,
|
||||
"tooltip": true,
|
||||
"tooltip-format": "CPU Temp: {temperatureC}\u00b0C"
|
||||
},
|
||||
"memory": {
|
||||
"format": "\uefcd {used:0.1f}G",
|
||||
"interval": 2,
|
||||
"tooltip": true,
|
||||
"tooltip-format": "RAM: {used:0.1f}GB / {total:0.1f}GB ({percentage}%)"
|
||||
},
|
||||
"disk": {
|
||||
"format": "\uf07a {used}",
|
||||
"interval": 30,
|
||||
"path": "/",
|
||||
"tooltip": true,
|
||||
"tooltip-format": "Disk: {used} / {total} ({percentage_used}%)"
|
||||
},
|
||||
"network": {
|
||||
"format-wifi": "\uf07a {bandwidthDownBytes} \uf07a {bandwidthUpBytes}",
|
||||
"format-ethernet": "\uf07a {bandwidthDownBytes} \uf07a {bandwidthUpBytes}",
|
||||
"format-disconnected": "\uf1eb Offline",
|
||||
"interval": 2,
|
||||
"tooltip": true,
|
||||
"tooltip-format-wifi": "WiFi: {essid} ({signalStrength}%)\nDown: {bandwidthDownBits}\nUp: {bandwidthUpBits}",
|
||||
"tooltip-format-ethernet": "Ethernet: {ifname}\nDown: {bandwidthDownBits}\nUp: {bandwidthUpBits}"
|
||||
},
|
||||
"custom/layout": {
|
||||
"exec": "$HOME/.config/mango/bin/layout-switcher.sh",
|
||||
"interval": 1,
|
||||
"return-type": "json",
|
||||
"on-click": "python3 $HOME/.config/mango/bin/layout-picker.py",
|
||||
"tooltip": true
|
||||
},
|
||||
"tray": {
|
||||
"icon-size": 16,
|
||||
"spacing": 8,
|
||||
"show-passive-items": true
|
||||
},
|
||||
"custom/notifications": {
|
||||
"format": "{}",
|
||||
"exec": "$HOME/.config/waybar/scripts/notifications.sh",
|
||||
"interval": 2,
|
||||
"return-type": "json",
|
||||
"on-click": "makoctl dismiss --all",
|
||||
"on-click-right": "makoctl restore"
|
||||
},
|
||||
"battery": {
|
||||
"states": {
|
||||
"warning": 30,
|
||||
"critical": 15
|
||||
},
|
||||
"format": "{icon} {capacity}%",
|
||||
"format-icons": [
|
||||
"\uf244",
|
||||
"\uf243",
|
||||
"\uf242",
|
||||
"\uf241",
|
||||
"\uf240"
|
||||
],
|
||||
"format-charging": "\uf0e7 {capacity}%",
|
||||
"format-plugged": "\uf1e6 {capacity}%",
|
||||
"tooltip": true,
|
||||
"tooltip-format": "{timeTo} {capacity}%"
|
||||
},
|
||||
"pulseaudio": {
|
||||
"format": "{icon} {volume}%",
|
||||
"format-muted": "\uf2e2 Muted",
|
||||
"format-icons": {
|
||||
"default": [
|
||||
"\uf026",
|
||||
"\uf027",
|
||||
"\uf028"
|
||||
]
|
||||
},
|
||||
"on-click": "pavucontrol",
|
||||
"on-scroll-up": "pactl set-sink-volume @DEFAULT_SINK@ +5%",
|
||||
"on-scroll-down": "pactl set-sink-volume @DEFAULT_SINK@ -5%",
|
||||
"tooltip": true,
|
||||
"tooltip-format": "{desc}"
|
||||
},
|
||||
"clock": {
|
||||
"format": "{:%I:%M %p %a, %b %d}",
|
||||
"tooltip": true,
|
||||
"tooltip-format": "<tt>{calendar}</tt>",
|
||||
"calendar": {
|
||||
"mode": "month",
|
||||
"weeks-pos": "right",
|
||||
"on-scroll": 1,
|
||||
"format": {
|
||||
"months": "<span color='#d79921'><b>{}</b></span>",
|
||||
"weekdays": "<span color='#d79921'><b>{}</b></span>",
|
||||
"today": "<span color='#b8bb26'><b>{}</b></span>"
|
||||
}
|
||||
}
|
||||
},
|
||||
"custom/power": {
|
||||
"format": "\uf011",
|
||||
"tooltip": "Session Menu",
|
||||
"on-click": "python3 $HOME/.config/waybar/scripts/logout-menu.py"
|
||||
},
|
||||
"output": [
|
||||
"DP-1",
|
||||
"DP-2"
|
||||
]
|
||||
},
|
||||
{
|
||||
"output": "HDMI-A-1",
|
||||
"layer": "top",
|
||||
"position": "top",
|
||||
"height": 36,
|
||||
"margin-top": 7,
|
||||
"margin-left": 50,
|
||||
"margin-right": 50,
|
||||
"spacing": 6,
|
||||
"modules-left": [
|
||||
"image#fedora",
|
||||
"dwl/tags#vertical"
|
||||
],
|
||||
"modules-center": [],
|
||||
"modules-right": [
|
||||
"clock#vertical",
|
||||
"custom/power#vertical"
|
||||
],
|
||||
"image#fedora": {
|
||||
"exec": "$HOME/.config/waybar/scripts/fedora-logo-themed.sh",
|
||||
"size": 18,
|
||||
"interval": "once",
|
||||
"tooltip": false
|
||||
},
|
||||
"dwl/tags#vertical": {
|
||||
"num-tags": 9,
|
||||
"tag-labels": [
|
||||
"1",
|
||||
"2",
|
||||
"3",
|
||||
"4",
|
||||
"5",
|
||||
"6",
|
||||
"7",
|
||||
"8",
|
||||
"9"
|
||||
]
|
||||
},
|
||||
"clock#vertical": {
|
||||
"format": "{:%I:%M %p}",
|
||||
"tooltip": true,
|
||||
"tooltip-format": "<tt>{calendar}</tt>",
|
||||
"calendar": {
|
||||
"mode": "month",
|
||||
"weeks-pos": "right",
|
||||
"on-scroll": 1,
|
||||
"format": {
|
||||
"months": "<span color='#d79921'><b>{}</b></span>",
|
||||
"weekdays": "<span color='#d79921'><b>{}</b></span>",
|
||||
"today": "<span color='#b8bb26'><b>{}</b></span>"
|
||||
}
|
||||
}
|
||||
},
|
||||
"custom/power#vertical": {
|
||||
"format": "\uf011",
|
||||
"tooltip": "Session Menu",
|
||||
"on-click": "python3 $HOME/.config/waybar/scripts/logout-menu.py"
|
||||
}
|
||||
}
|
||||
]
|
||||
299
laptop/waybar/style.css
Executable file
299
laptop/waybar/style.css
Executable file
@@ -0,0 +1,299 @@
|
||||
/* ─── Noctalia-inspired Waybar stylesheet ─── */
|
||||
/* GruvboxAlt dark colors, floating bar with 12px radius */
|
||||
|
||||
* {
|
||||
all: initial;
|
||||
font-family:
|
||||
"JetBrainsMono Nerd Font", "JetBrains Mono", "Font Awesome 6 Free",
|
||||
monospace;
|
||||
font-size: 13px;
|
||||
font-weight: 500;
|
||||
}
|
||||
|
||||
/* ─── Main Bar ─── */
|
||||
#waybar {
|
||||
background-color: rgba(29, 32, 33, 0.85);
|
||||
color: #ebdbb2;
|
||||
border-radius: 8px;
|
||||
padding: 4px 8px;
|
||||
}
|
||||
|
||||
/* ─── Module Sections ─── */
|
||||
.modules-left,
|
||||
.modules-center,
|
||||
.modules-right {
|
||||
padding: 0 4px;
|
||||
}
|
||||
|
||||
/* ─── Individual Modules ─── */
|
||||
#image,
|
||||
#tags,
|
||||
#window,
|
||||
#cpu,
|
||||
#temperature,
|
||||
#memory,
|
||||
#disk,
|
||||
#network,
|
||||
#tray,
|
||||
#custom-notifications,
|
||||
#battery,
|
||||
#pulseaudio,
|
||||
#clock,
|
||||
#custom-layout,
|
||||
#custom-power,
|
||||
#custom-power#vertical {
|
||||
padding: 4px 10px;
|
||||
margin: 2px 3px;
|
||||
border-radius: 8px;
|
||||
background-color: transparent;
|
||||
}
|
||||
|
||||
/* ─── Fedora Logo (Image) ─── */
|
||||
#image,
|
||||
#image#fedora {
|
||||
padding: 4px 8px;
|
||||
margin: 2px 3px;
|
||||
border-radius: 8px;
|
||||
background-color: transparent;
|
||||
}
|
||||
|
||||
/* ─── Workspaces (dwl/tags) ─── */
|
||||
#tags,
|
||||
#tags#vertical {
|
||||
background-color: transparent;
|
||||
padding: 2px 6px;
|
||||
}
|
||||
|
||||
#tags button,
|
||||
#tags#vertical button {
|
||||
padding: 2px 7px;
|
||||
margin: 0 2px;
|
||||
color: #665c54;
|
||||
background-color: transparent;
|
||||
border-radius: 6px;
|
||||
transition: all 0.2s ease;
|
||||
}
|
||||
|
||||
/* Occupied workspace */
|
||||
#tags button.occupied,
|
||||
#tags#vertical button.occupied {
|
||||
color: #d79921;
|
||||
}
|
||||
|
||||
/* Empty workspace */
|
||||
#tags button.empty,
|
||||
#tags#vertical button.empty {
|
||||
color: #665c54;
|
||||
}
|
||||
|
||||
/* Focused workspace */
|
||||
#tags button.focused,
|
||||
#tags button.active,
|
||||
#tags#vertical button.focused,
|
||||
#tags#vertical button.active {
|
||||
color: #282828;
|
||||
background-color: #b8bb26;
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
/* Urgent workspace */
|
||||
#tags button.urgent,
|
||||
#tags#vertical button.urgent {
|
||||
color: #cc241d;
|
||||
background-color: rgba(204, 36, 29, 0.2);
|
||||
}
|
||||
|
||||
/* Hover effect */
|
||||
#tags button:hover,
|
||||
#tags#vertical button:hover {
|
||||
background-color: rgba(184, 187, 38, 0.3);
|
||||
color: #ebdbb2;
|
||||
}
|
||||
|
||||
#tags button.focused:hover,
|
||||
#tags button.active:hover,
|
||||
#tags#vertical button.focused:hover,
|
||||
#tags#vertical button.active:hover {
|
||||
background-color: #b8bb26;
|
||||
color: #282828;
|
||||
}
|
||||
|
||||
#tags button {
|
||||
padding: 2px 5px;
|
||||
margin: 0 2px;
|
||||
color: #665c54;
|
||||
background-color: transparent;
|
||||
border-radius: 6px;
|
||||
transition: all 0.2s ease;
|
||||
}
|
||||
|
||||
/* Occupied workspace */
|
||||
#tags button.occupied {
|
||||
color: #d79921;
|
||||
}
|
||||
|
||||
/* Empty workspace */
|
||||
#tags button.empty {
|
||||
color: #665c54;
|
||||
}
|
||||
|
||||
/* Focused workspace */
|
||||
#tags button.focused,
|
||||
#tags button.active {
|
||||
color: #282828;
|
||||
background-color: #b8bb26;
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
/* Urgent workspace */
|
||||
#tags button.urgent {
|
||||
color: #cc241d;
|
||||
background-color: rgba(204, 36, 29, 0.2);
|
||||
}
|
||||
|
||||
/* Hover effect */
|
||||
#tags button:hover {
|
||||
background-color: rgba(184, 187, 38, 0.3);
|
||||
color: #ebdbb2;
|
||||
}
|
||||
|
||||
#tags button.focused:hover,
|
||||
#tags button.active:hover {
|
||||
background-color: #b8bb26;
|
||||
color: #282828;
|
||||
}
|
||||
|
||||
/* ─── Active Window (dwl/window) ─── */
|
||||
#window {
|
||||
color: #ebdbb2;
|
||||
background-color: transparent;
|
||||
}
|
||||
|
||||
/* ─── Center System Stats ─── */
|
||||
#cpu {
|
||||
color: #fb4934;
|
||||
}
|
||||
|
||||
#temperature {
|
||||
color: #fe8019;
|
||||
}
|
||||
|
||||
#temperature.critical {
|
||||
color: #cc241d;
|
||||
background-color: rgba(204, 36, 29, 0.2);
|
||||
}
|
||||
|
||||
#memory {
|
||||
color: #d79921;
|
||||
}
|
||||
|
||||
#disk {
|
||||
color: #b8bb26;
|
||||
}
|
||||
|
||||
#network {
|
||||
color: #8ec07c;
|
||||
}
|
||||
|
||||
#network.disconnected {
|
||||
color: #928374;
|
||||
}
|
||||
|
||||
/* ─── System Tray ─── */
|
||||
#tray {
|
||||
background-color: transparent;
|
||||
padding: 4px 8px;
|
||||
}
|
||||
|
||||
#tray > .passive {
|
||||
-gtk-icon-effect: dim;
|
||||
}
|
||||
|
||||
#tray > .needs-attention {
|
||||
-gtk-icon-effect: highlight;
|
||||
background-color: rgba(214, 93, 14, 0.3);
|
||||
}
|
||||
|
||||
/* ─── Notifications ─── */
|
||||
#custom-notifications {
|
||||
color: #689d6a;
|
||||
}
|
||||
|
||||
#custom-notifications.has-notifications {
|
||||
color: #fb4934;
|
||||
}
|
||||
|
||||
/* ─── Battery ─── */
|
||||
#battery {
|
||||
color: #689d6a;
|
||||
}
|
||||
|
||||
#battery.warning {
|
||||
color: #d79921;
|
||||
}
|
||||
|
||||
#battery.critical {
|
||||
color: #cc241d;
|
||||
}
|
||||
|
||||
#battery.charging,
|
||||
#battery.plugged {
|
||||
color: #b8bb26;
|
||||
}
|
||||
|
||||
/* ─── Pulseaudio ─── */
|
||||
#pulseaudio {
|
||||
color: #83a598;
|
||||
}
|
||||
|
||||
#pulseaudio.muted {
|
||||
color: #928374;
|
||||
}
|
||||
|
||||
/* ─── Clock ─── */
|
||||
#clock,
|
||||
#clock#vertical {
|
||||
color: #ebdbb2;
|
||||
background-color: transparent;
|
||||
font-weight: 600;
|
||||
}
|
||||
|
||||
/* ─── Layout Switcher ─── */
|
||||
#custom-layout {
|
||||
color: #8ec07c;
|
||||
padding: 4px 10px;
|
||||
margin: 2px 3px;
|
||||
border-radius: 8px;
|
||||
background-color: transparent;
|
||||
}
|
||||
|
||||
#custom-layout:hover {
|
||||
background-color: rgba(142, 192, 124, 0.15);
|
||||
}
|
||||
|
||||
/* ─── Power Button ─── */
|
||||
#custom-power,
|
||||
#custom-power#vertical {
|
||||
color: #fb4934;
|
||||
background-color: transparent;
|
||||
font-size: 14px;
|
||||
padding: 2px 12px;
|
||||
}
|
||||
|
||||
#custom-power:hover,
|
||||
#custom-power#vertical:hover {
|
||||
background-color: rgba(251, 73, 52, 0.15);
|
||||
}
|
||||
|
||||
/* ─── Tooltip ─── */
|
||||
tooltip {
|
||||
background-color: rgba(29, 32, 33, 0.95);
|
||||
border: 1px solid rgba(80, 73, 69, 0.8);
|
||||
border-radius: 8px;
|
||||
padding: 8px;
|
||||
}
|
||||
|
||||
tooltip label {
|
||||
color: #ebdbb2;
|
||||
padding: 4px;
|
||||
}
|
||||
Reference in New Issue
Block a user