feat!: migration to waybar
This commit is contained in:
+83
-49
@@ -7,9 +7,8 @@
|
||||
"gtk-layer-shell": true,
|
||||
"height": 0,
|
||||
"modules-left": [
|
||||
"hyprland/submap",
|
||||
"clock",
|
||||
"cpu",
|
||||
"memory",
|
||||
"hyprland/workspaces"
|
||||
],
|
||||
"modules-center": [
|
||||
@@ -17,47 +16,81 @@
|
||||
],
|
||||
"modules-right": [
|
||||
"tray",
|
||||
"cpu",
|
||||
"memory",
|
||||
"network",
|
||||
"bluetooth",
|
||||
"backlight",
|
||||
"battery",
|
||||
"pulseaudio",
|
||||
"pulseaudio#microphone",
|
||||
"custom/powerMenu"
|
||||
"pulseaudio#microphone"
|
||||
],
|
||||
"bluetooth": {
|
||||
"format": "{icon}",
|
||||
"format-disabled": "\udb80\udcb2",
|
||||
"format-off": "\udb80\udcb2",
|
||||
"format-on": "\udb80\udcaf",
|
||||
"format-connected": "\udb80\udcb1",
|
||||
"format-icons": [
|
||||
"\udb82\udd47",
|
||||
"\udb82\udd3e",
|
||||
"\udb82\udd3f",
|
||||
"\udb82\udd40",
|
||||
"\udb82\udd41",
|
||||
"\udb82\udd42",
|
||||
"\udb82\udd43",
|
||||
"\udb82\udd44",
|
||||
"\udb82\udd45",
|
||||
"\udb82\udd46"
|
||||
],
|
||||
"tooltip-format": "{controller_alias}\t{controller_address}\n\n{num_connections} connected",
|
||||
"tooltip-format-connected": "{controller_alias}\t{controller_address}\n\n{num_connections} connected\n\n{device_enumerate}",
|
||||
"tooltip-format-enumerate-connected": "{device_alias}\t{device_address}",
|
||||
"tooltip-format-enumerate-connected-battery": "{device_alias}\t{device_address}\t{device_battery_percentage}%",
|
||||
"on-click": "alacritty -e bluetui -T bluetui"
|
||||
},
|
||||
"hyprland/submap": {
|
||||
// "format": "{icon}",
|
||||
"max-length": 4,
|
||||
"tooltip": false
|
||||
// "icons": {
|
||||
// "device": "\uf4a9",
|
||||
// "groups": "\udb80\udec3",
|
||||
// "launch": "\udb85\udcde",
|
||||
// "notifications": "\uf400",
|
||||
// "screenshot": "\udb83\ude51",
|
||||
// "window": "\ueb7f",
|
||||
// "workspace": "\ueb23",
|
||||
// "groupedlaunch": "\uf0c0"
|
||||
// }
|
||||
},
|
||||
"hyprland/window": {
|
||||
"format": "{}"
|
||||
"format": "{}",
|
||||
"tooltip-format": "Class: {class}",
|
||||
"rewrite": {
|
||||
"(.*) — Librewolf": "🌎 $1",
|
||||
"nvim - (.*)": "\ue6ae $1",
|
||||
"Yazi: (.*)": "\udb81\ude45 $1"
|
||||
}
|
||||
},
|
||||
"tray": {
|
||||
"icon-size": 14,
|
||||
"spacing": 8
|
||||
},
|
||||
"custom/dualsense": {
|
||||
"tooltip": false,
|
||||
"return-type": "json",
|
||||
"exec": "$HOME/.config/waybar/dualsense-notifier.sh",
|
||||
"on-click": "dualsensectl power-off"
|
||||
},
|
||||
"custom/powerMenu": {
|
||||
"format": "⏻",
|
||||
"on-click": "rofi -show p -modi p:rofi-power-menu -theme ~/.config/rofi/themes/power.rasi"
|
||||
},
|
||||
"custom/quickactions": {
|
||||
"format": "",
|
||||
"menu": "on-click",
|
||||
"menu-file": "~/.config/waybar/quickactions.xml",
|
||||
"menu-actions": {}
|
||||
},
|
||||
"network": {
|
||||
"format-disconnected": " Net",
|
||||
"format-disconnected": "\udb80\udf19",
|
||||
"format-wifi": "{icon} {essid}",
|
||||
"format-ethernet": " Wired",
|
||||
"format-ethernet": "\udb80\ude00",
|
||||
"tooltip-format-ethernet": "<big>Ethernet</big>\nInterface: {ifname}\nIP: {ipaddr}\nUp/Down (bps): {bandwidthUpBits}/{bandwidthDownBits}",
|
||||
"tooltip-format-wifi": "<big>Wi-Fi</big>\nSSID: {essid}\nIP: {ipaddr}\nSignal strength: {signalStrength}%\nUp/Down (bps): {bandwidthUpBits}/{bandwidthDownBits}\nFrequency: {frequency}GHz",
|
||||
"tooltip-format-disconnected": "<big>Networking</big>\n{ifname} disconnected",
|
||||
"on-click": "terminator -x nmtui",
|
||||
"on-click": "alacritty -e nmtui -T nmtui",
|
||||
"format-icons": [
|
||||
"",
|
||||
"",
|
||||
"",
|
||||
""
|
||||
"\udb82\udd2f",
|
||||
"\udb82\udd1f",
|
||||
"\udb82\udd22",
|
||||
"\udb82\udd25",
|
||||
"\udb82\udd28"
|
||||
]
|
||||
},
|
||||
"clock": {
|
||||
@@ -68,47 +101,48 @@
|
||||
"hyprland/workspaces": {
|
||||
"disable-scroll": true,
|
||||
"all-outputs": true,
|
||||
"on-click": "activate",
|
||||
"format": "{icon}"
|
||||
"tooltips": {
|
||||
"default": "{name}: {windows}",
|
||||
"empty": "" // Will result in no tooltip
|
||||
}
|
||||
},
|
||||
"cpu": {
|
||||
"tooltip-format": "<big>CPU</big>\n<tt>Total: {usage}</tt>",
|
||||
"format": " {usage}",
|
||||
"format": "\uf4bc {usage}",
|
||||
"interval": 5
|
||||
},
|
||||
"memory": {
|
||||
"format": " {percentage}",
|
||||
"format": "\uefc5 {percentage}",
|
||||
"interval": 5
|
||||
},
|
||||
"pulseaudio": {
|
||||
"format": "{icon} {volume}",
|
||||
"format": "{icon} {volume}",
|
||||
"tooltip": true,
|
||||
"format-muted": " Off",
|
||||
"on-click": "pamixer -t",
|
||||
"on-scroll-up": "pamixer -i 5",
|
||||
"on-scroll-down": "pamixer -d 5",
|
||||
"format-muted": "\udb81\udcc4 Off",
|
||||
"on-click": "wpctl set-mute @DEFAULT_AUDIO_SINK@ toggle",
|
||||
"on-scroll-up": "wpctl set-volume @DEFAULT_AUDIO_SINK@ 5%+",
|
||||
"on-scroll-down": "wpctl set-volume @DEFAULT_AUDIO_SINK@ 5%-",
|
||||
"scroll-step": 5,
|
||||
"format-icons": {
|
||||
"headphone": "",
|
||||
"headphone": "\uf025",
|
||||
"hands-free": "",
|
||||
"headset": "",
|
||||
"phone": "",
|
||||
"portable": "",
|
||||
"headset": "\uee59",
|
||||
"phone": "\udb82\udd70",
|
||||
"portable": "\udb82\udda2",
|
||||
"car": "🏎",
|
||||
"default": [
|
||||
"",
|
||||
"",
|
||||
""
|
||||
"\udb81\udcc3",
|
||||
"\udb81\udf1f"
|
||||
]
|
||||
}
|
||||
},
|
||||
"pulseaudio#microphone": {
|
||||
"format": "{format_source}",
|
||||
"format-source": " {volume}",
|
||||
"format-source-muted": " 0",
|
||||
"on-click": "pamixer --default-source -t",
|
||||
"on-scroll-up": "pamixer --default-source -i 5",
|
||||
"on-scroll-down": "pamixer --default-source -d 5",
|
||||
"format-source": "\uf130 {volume}",
|
||||
"format-source-muted": "\uf131 Off",
|
||||
"on-click": "wpctl set-mute @DEFAULT_AUDIO_SOURCE@ toggle",
|
||||
"on-scroll-up": "wpctl set-volume @DEFAULT_AUDIO_SOURCE@ 5%+",
|
||||
"on-scroll-down": "wpctl set-volume @DEFAULT_AUDIO_SOURCE@ 5%-",
|
||||
"scroll-step": 5
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,28 +0,0 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<interface>
|
||||
<object class="GtkMenu" id="menu">
|
||||
<child>
|
||||
<object class="GtkMenuItem" id="suspend">
|
||||
<property name="label">Suspend</property>
|
||||
</object>
|
||||
</child>
|
||||
<child>
|
||||
<object class="GtkMenuItem" id="hibernate">
|
||||
<property name="label">Hibernate</property>
|
||||
</object>
|
||||
</child>
|
||||
<child>
|
||||
<object class="GtkMenuItem" id="shutdown">
|
||||
<property name="label">Shutdown</property>
|
||||
</object>
|
||||
</child>
|
||||
<child>
|
||||
<object class="GtkSeparatorMenuItem" id="delimiter1" />
|
||||
</child>
|
||||
<child>
|
||||
<object class="GtkMenuItem" id="reboot">
|
||||
<property name="label">Reboot</property>
|
||||
</object>
|
||||
</child>
|
||||
</object>
|
||||
</interface>
|
||||
@@ -1,115 +0,0 @@
|
||||
@import "colors.css";
|
||||
|
||||
* {
|
||||
border: none;
|
||||
border-radius: 0;
|
||||
font-family: 'FluentSystemIcons-Regular,Comfortaa', monospace;
|
||||
font-weight: bold;
|
||||
font-size: 13px;
|
||||
min-height: 0;
|
||||
margin-left: 3px;
|
||||
margin-right: 3px;
|
||||
}
|
||||
|
||||
window#waybar {
|
||||
background: rgba(0, 0, 0, 0);
|
||||
color: #cc5c00;
|
||||
}
|
||||
|
||||
tooltip {
|
||||
background: black;
|
||||
border-radius: 10px;
|
||||
border-width: 2px;
|
||||
border-style: solid;
|
||||
border-color: #cc5c00;
|
||||
}
|
||||
|
||||
#workspaces button {
|
||||
padding: 3px;
|
||||
color: #a79f9d;
|
||||
margin-right: 5px;
|
||||
}
|
||||
|
||||
#workspaces button.active {
|
||||
color: white;
|
||||
}
|
||||
|
||||
#workspaces button.focused {
|
||||
color: white;
|
||||
background: #cc5c00;
|
||||
border-radius: 10px;
|
||||
}
|
||||
|
||||
#workspaces button.urgent {
|
||||
color: white;
|
||||
background: #cc5c00;
|
||||
border-radius: 10px;
|
||||
}
|
||||
|
||||
#workspaces button:hover {
|
||||
background: white;
|
||||
color: #cc5c00;
|
||||
border-radius: 10px;
|
||||
}
|
||||
|
||||
#workspaces {
|
||||
background: black;
|
||||
border-radius: 10px;
|
||||
margin-left: 10px;
|
||||
padding-right: 0px;
|
||||
padding-left: 5px;
|
||||
}
|
||||
|
||||
#window,
|
||||
#clock,
|
||||
#custom-powerMenu,
|
||||
#pulseaudio,
|
||||
#memory,
|
||||
#tray,
|
||||
#custom-dualsense,
|
||||
#network,
|
||||
#workspaces,
|
||||
#cpu {
|
||||
background: black;
|
||||
padding: 4px 12px;
|
||||
margin: 3px 2px;
|
||||
margin-top: 9px;
|
||||
border: 1px solid rgb(204, 92, 0);
|
||||
border-radius: 10px;
|
||||
}
|
||||
|
||||
#tray {
|
||||
border-radius: 10px;
|
||||
margin-right: 10px;
|
||||
}
|
||||
|
||||
#cpu {
|
||||
margin-right: 0;
|
||||
border-radius: 10px 0px 0px 10px;
|
||||
background-color: #010006;
|
||||
}
|
||||
|
||||
#memory {
|
||||
margin-left: 0;
|
||||
border-radius: 0px 10px 10px 0px;
|
||||
background-color: #010006;
|
||||
}
|
||||
|
||||
#window {
|
||||
border-radius: 10px;
|
||||
margin-left: 60px;
|
||||
margin-right: 60px;
|
||||
}
|
||||
|
||||
#clock {
|
||||
color: #009e58;
|
||||
min-width: 125px;
|
||||
}
|
||||
|
||||
#pulseaudio {
|
||||
color: #9b1603;
|
||||
}
|
||||
|
||||
#pulseaudio.microphone {
|
||||
color: rgb(167, 159, 157);
|
||||
}
|
||||
Reference in New Issue
Block a user