wip
This commit is contained in:
@@ -1,25 +1,28 @@
|
||||
// -*- mode: jsonc -*-
|
||||
{
|
||||
// "layer": "top", // Waybar at top layer
|
||||
"layer": "top", // Waybar at top layer
|
||||
// "position": "bottom", // Waybar position (top|bottom|left|right)
|
||||
"height": 30, // Waybar height (to be removed for auto height)
|
||||
"height": 20, // 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",
|
||||
"sway/mode",
|
||||
"sway/scratchpad",
|
||||
"custom/media"
|
||||
// "sway/workspaces",
|
||||
// "sway/mode",
|
||||
// "sway/scratchpad",
|
||||
"custom/winLeft",
|
||||
"custom/winRight",
|
||||
"custom/overview"
|
||||
],
|
||||
"modules-center": [
|
||||
"clock",
|
||||
"sway/window"
|
||||
],
|
||||
"modules-right": [
|
||||
"tray",
|
||||
"mpd",
|
||||
"idle_inhibitor",
|
||||
//"idle_inhibitor",
|
||||
"pulseaudio",
|
||||
//"network",
|
||||
"power-profiles-daemon",
|
||||
"cpu",
|
||||
"memory",
|
||||
@@ -29,8 +32,7 @@
|
||||
"sway/language",
|
||||
"battery",
|
||||
"battery#bat2",
|
||||
"clock",
|
||||
"tray",
|
||||
"network",
|
||||
"custom/power"
|
||||
],
|
||||
// Modules configuration
|
||||
@@ -103,8 +105,8 @@
|
||||
}
|
||||
},
|
||||
"tray": {
|
||||
// "icon-size": 21,
|
||||
"spacing": 10,
|
||||
"icon-size": 14,
|
||||
"spacing": 8,
|
||||
// "icons": {
|
||||
// "blueman": "bluetooth",
|
||||
// "TelegramDesktop": "$HOME/.local/share/icons/hicolor/16x16/apps/telegram.png"
|
||||
@@ -164,15 +166,16 @@
|
||||
"power-saver": ""
|
||||
}
|
||||
},
|
||||
// "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}"
|
||||
// },
|
||||
"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":"wifi-manager --toggle"
|
||||
},
|
||||
"pulseaudio": {
|
||||
// "scroll-step": 1, // %, can be a float
|
||||
"format": "{volume}% {icon} {format_source}",
|
||||
@@ -192,28 +195,46 @@
|
||||
},
|
||||
"on-click": "pavucontrol"
|
||||
},
|
||||
"custom/media": {
|
||||
"format": "{icon} {text}",
|
||||
"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/media": {
|
||||
// "format": "{icon} {text}",
|
||||
// "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/winLeft": {
|
||||
"format": "←",
|
||||
// "on-click": "hyprctl eval \"hl.dispatch(hl.dsp.layout('consume_or_expel prev'))\""
|
||||
"on-click": "niri msg action consume-or-expel-window-left"
|
||||
// // "exec": "$HOME/.config/waybar/mediaplayer.py --player spotify 2> /dev/null" // Filter player based on name
|
||||
},
|
||||
"custom/winRight": {
|
||||
"format": "→",
|
||||
// "on-click": "hyprctl eval \"hl.dispatch(hl.dsp.layout('consume_or_expel next'))\""
|
||||
"on-click": "niri msg action consume-or-expel-window-right"
|
||||
// // "exec": "$HOME/.config/waybar/mediaplayer.py --player spotify 2> /dev/null" // Filter player based on name
|
||||
},
|
||||
"custom/overview": {
|
||||
"format": "",
|
||||
// "on-click": "hyprctl eval \"hl.dispatch(hl.dsp.layout('consume_or_expel next'))\""
|
||||
"on-click": "niri msg action toggle-overview"
|
||||
// // "exec": "$HOME/.config/waybar/mediaplayer.py --player spotify 2> /dev/null" // Filter player based on name
|
||||
},
|
||||
"custom/power": {
|
||||
"format" : "⏾",
|
||||
"tooltip": false,
|
||||
"menu": "on-click",
|
||||
"menu-file": "$HOME/.config/waybar/power_menu.xml", // Menu file in resources folder
|
||||
"menu-actions": {
|
||||
"shutdown": "shutdown",
|
||||
"reboot": "reboot",
|
||||
"suspend": "systemctl suspend",
|
||||
"hibernate": "systemctl hibernate"
|
||||
}
|
||||
"tooltip": false,
|
||||
"menu": "on-click",
|
||||
"menu-file": "$HOME/.config/waybar/power_menu.xml", // Menu file in resources folder
|
||||
"menu-actions": {
|
||||
"shutdown": "shutdown now",
|
||||
"reboot": "reboot now",
|
||||
"suspend": "systemctl suspend",
|
||||
"hibernate": "systemctl hibernate"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -3,25 +3,22 @@
|
||||
<object class="GtkMenu" id="menu">
|
||||
<child>
|
||||
<object class="GtkMenuItem" id="suspend">
|
||||
<property name="label">Suspend</property>
|
||||
<property name="label">⏾ Suspend</property>
|
||||
</object>
|
||||
</child>
|
||||
<child>
|
||||
<object class="GtkMenuItem" id="hibernate">
|
||||
<property name="label">Hibernate</property>
|
||||
<property name="label">⏾ Hibernate</property>
|
||||
</object>
|
||||
</child>
|
||||
<child>
|
||||
<object class="GtkMenuItem" id="shutdown">
|
||||
<property name="label">Shutdown</property>
|
||||
<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>
|
||||
<property name="label">🗘 Reboot</property>
|
||||
</object>
|
||||
</child>
|
||||
</object>
|
||||
|
||||
@@ -6,10 +6,10 @@
|
||||
border-radius: 4px;
|
||||
/*border-bottom-right-radius: 4px;*/
|
||||
/* `ttf-font-awesome` is required to be installed for icons */
|
||||
font-family: Inter;
|
||||
font-family: Inter Display;
|
||||
|
||||
/* adjust font-size value to your liking: */
|
||||
font-size: 10px;
|
||||
font-size: 10.5px;
|
||||
|
||||
min-height: 0;
|
||||
|
||||
@@ -17,7 +17,7 @@
|
||||
window#waybar {
|
||||
background-color: rgba(0, 0, 0, 0.5);
|
||||
/* border-bottom: 3px solid rgba(100, 114, 125, 0.5); */
|
||||
color: #ffffff;
|
||||
color: #e0def4;
|
||||
/* transition-property: background-color; */
|
||||
/* transition-duration: .5s; */
|
||||
border-top-left-radius: 0px;
|
||||
@@ -82,15 +82,17 @@ window#waybar.chromium {
|
||||
#backlight,
|
||||
#network,
|
||||
#pulseaudio,
|
||||
#custom-media,
|
||||
#custom-winLeft,
|
||||
#custom-winRight,
|
||||
#custom-overview,
|
||||
#tray,
|
||||
#mode,
|
||||
#idle_inhibitor,
|
||||
#custom-power,
|
||||
#mpd {
|
||||
padding: 0 10px;
|
||||
margin: 6px 3px;
|
||||
color: #000000;
|
||||
margin: 5px 3px;
|
||||
color: #e0def4;
|
||||
}
|
||||
|
||||
#window,
|
||||
@@ -109,17 +111,18 @@ window#waybar.chromium {
|
||||
}
|
||||
|
||||
#clock {
|
||||
background-color: @primary-bg;
|
||||
color: white;
|
||||
margin:0px 0px;
|
||||
padding: 0 10px;
|
||||
/* margin-left: 10px; */
|
||||
font-weight: bold;
|
||||
font-size:14px;
|
||||
}
|
||||
|
||||
#battery {
|
||||
background-color: @primary-bg;
|
||||
color: white;
|
||||
}
|
||||
|
||||
#battery.charging {
|
||||
color: #ffffff;
|
||||
background-color: @primary-bg;
|
||||
}
|
||||
|
||||
@@ -132,7 +135,6 @@ window#waybar.chromium {
|
||||
|
||||
#battery.critical:not(.charging) {
|
||||
background-color: #f53c3c;
|
||||
color: #ffffff;
|
||||
animation-name: blink;
|
||||
animation-duration: 0.5s;
|
||||
animation-timing-function: linear;
|
||||
@@ -146,22 +148,18 @@ label:focus {
|
||||
|
||||
#cpu {
|
||||
background-color: @primary-bg;
|
||||
color: #ffffff;
|
||||
}
|
||||
|
||||
#memory {
|
||||
background-color: @primary-bg;
|
||||
color: white;
|
||||
}
|
||||
|
||||
#backlight {
|
||||
background-color: @primary-bg;
|
||||
color:white;
|
||||
}
|
||||
|
||||
#network {
|
||||
background-color: @primary-bg;
|
||||
color:white;
|
||||
|
||||
}
|
||||
|
||||
@@ -171,19 +169,17 @@ label:focus {
|
||||
|
||||
#pulseaudio {
|
||||
background-color: @primary-bg;
|
||||
color: #ffffff;
|
||||
}
|
||||
|
||||
#pulseaudio.muted {
|
||||
background-color: @primary-bg;
|
||||
color: #ffffff;
|
||||
}
|
||||
|
||||
#custom-media {
|
||||
background-color: #66cc99;
|
||||
color: #2a5c45;
|
||||
min-width: 100px;
|
||||
}
|
||||
/* #custom-media { */
|
||||
/* background-color: #66cc99; */
|
||||
/* color: #2a5c45; */
|
||||
/* min-width: 100px; */
|
||||
/* } */
|
||||
|
||||
#custom-media.custom-spotify {
|
||||
background-color: #66cc99;
|
||||
@@ -194,10 +190,12 @@ label:focus {
|
||||
}
|
||||
|
||||
#temperature {
|
||||
color:#000000;
|
||||
background-color: #9ccfd8;
|
||||
}
|
||||
|
||||
#temperature.critical {
|
||||
color:#000000;
|
||||
background-color: #eb6f92;
|
||||
}
|
||||
|
||||
@@ -240,13 +238,38 @@ label:focus {
|
||||
}
|
||||
|
||||
#power-profiles-daemon{
|
||||
color: #ffffff;
|
||||
padding: 0 10px 0px 7px;
|
||||
background-color: @primary-bg;
|
||||
margin: 6px 3px;
|
||||
|
||||
}
|
||||
#custom-power{
|
||||
color: #ffffff;
|
||||
background-color: #26233a;
|
||||
background-color: @primary-bg;
|
||||
/* margin-left: 10px; */
|
||||
}
|
||||
#custom-winLeft{
|
||||
background-color: transparent;
|
||||
margin:0px 0px;
|
||||
margin-right: 10px;
|
||||
padding: 0 0px 0px 18px;
|
||||
/* margin-left: 10px; */
|
||||
font-weight: bold;
|
||||
font-size:14px;
|
||||
}
|
||||
#custom-overview{
|
||||
background-color: transparent;
|
||||
margin:0px 0px;
|
||||
margin-right: 10px;
|
||||
padding: 0 0px 0px 10px;
|
||||
/* margin-left: 10px; */
|
||||
font-weight: bold;
|
||||
font-size:14px;
|
||||
}
|
||||
#custom-winRight{
|
||||
background-color: transparent;
|
||||
margin:0px 0px;
|
||||
padding: 0 0px;
|
||||
/* margin-left: 10px; */
|
||||
font-weight: bold;
|
||||
font-size:14px;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user