💥 fixed hyprland/window, changed look
This commit is contained in:
+36
-28
@@ -8,27 +8,32 @@
|
|||||||
// Choose the order of the modules
|
// Choose the order of the modules
|
||||||
"modules-left": [
|
"modules-left": [
|
||||||
"hyprland/workspaces",
|
"hyprland/workspaces",
|
||||||
"custom/media"
|
"hyprland/window"
|
||||||
],
|
],
|
||||||
"modules-center": [
|
"modules-center": [
|
||||||
"hyprland/window",
|
"clock",
|
||||||
"clock"
|
"custom/media"
|
||||||
],
|
],
|
||||||
"modules-right": [
|
"modules-right": [
|
||||||
"tray",
|
"tray",
|
||||||
"pulseaudio",
|
"pulseaudio",
|
||||||
"custom/notifications"
|
"custom/notifications"
|
||||||
],
|
],
|
||||||
// Modules configuration
|
// Modules configuration
|
||||||
"hyprland/workspaces": {
|
"hyprland/workspaces": {
|
||||||
"disable-scroll": false,
|
"disable-scroll": false,
|
||||||
"all-outputs": true,
|
"all-outputs": true,
|
||||||
"warp-on-scroll": false,
|
"warp-on-scroll": true,
|
||||||
"format": "{icon}",
|
"format": "{icon}",
|
||||||
"format-icons": {
|
"format-icons": {
|
||||||
"urgent": "",
|
"urgent": "",
|
||||||
"focused": "",
|
"focused": "",
|
||||||
|
"active": "",
|
||||||
"default": ""
|
"default": ""
|
||||||
|
},
|
||||||
|
"persistent-workspaces": {
|
||||||
|
"1": [],
|
||||||
|
"2": []
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"bluetooth": {
|
"bluetooth": {
|
||||||
@@ -46,16 +51,22 @@
|
|||||||
"capslock": true,
|
"capslock": true,
|
||||||
"format": "{name} {icon}",
|
"format": "{name} {icon}",
|
||||||
"format-icons": {
|
"format-icons": {
|
||||||
"locked": "",
|
"locked": " ",
|
||||||
"unlocked": ""
|
"unlocked": " "
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"hyprland/window": {
|
"hyprland/window": {
|
||||||
"format": "{icon} {count}",
|
"format": "{class}: {title}",
|
||||||
"show-empty": true,
|
"show-empty": false,
|
||||||
"max-length": 200,
|
"rewrite": {
|
||||||
"separate-outputs": true,
|
": ": "",
|
||||||
"format-icons": ["", ""],
|
"firefox(.*)": "Firefox",
|
||||||
|
"(.*)kitty(.*)": "Kitty",
|
||||||
|
"Spotify(.*)": "Spotify",
|
||||||
|
"discord(.*) - Discord": "Discord$1",
|
||||||
|
"org.gnome.(.*)": "$1"
|
||||||
|
|
||||||
|
},
|
||||||
"escape": true
|
"escape": true
|
||||||
},
|
},
|
||||||
"custom/notifications": {
|
"custom/notifications": {
|
||||||
@@ -112,18 +123,19 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"tray": {
|
"tray": {
|
||||||
// "icon-size": 21,
|
"icon-size": 16,
|
||||||
"spacing": 10
|
"spacing": 12
|
||||||
},
|
},
|
||||||
"clock": {
|
"clock": {
|
||||||
"timezone": "",
|
"timezone": "",
|
||||||
"tooltip-format": "<big>{:%Y %B}</big>\n<tt>{calendar}</tt>",
|
"tooltip-format": "<big>{:%Y %B}</big>\n<tt>{calendar}</tt>",
|
||||||
"format": "{:L%a. %d, %H:%M}",
|
"format": "{:L%a. %d, %H:%M}",
|
||||||
"format-alt": "{:%Y-%m-%d}"
|
"format-alt": "{:%Y-%m-%d}"
|
||||||
},
|
},
|
||||||
"cpu": {
|
"cpu": {
|
||||||
"format": "{usage}% ",
|
"format": "{usage}% ",
|
||||||
"tooltip": false
|
"tooltip": true,
|
||||||
|
"escape": true
|
||||||
},
|
},
|
||||||
"memory": {
|
"memory": {
|
||||||
"format": "{}% "
|
"format": "{}% "
|
||||||
@@ -183,34 +195,30 @@
|
|||||||
// "scroll-step": 1, // %, can be a float
|
// "scroll-step": 1, // %, can be a float
|
||||||
"format": "{volume}% {icon} {format_source}",
|
"format": "{volume}% {icon} {format_source}",
|
||||||
"format-bluetooth": "{volume}% {icon} {format_source}",
|
"format-bluetooth": "{volume}% {icon} {format_source}",
|
||||||
"format-bluetooth-muted": " {icon} {format_source}",
|
"format-bluetooth-muted": " {icon}",
|
||||||
"format-muted": " {format_source}",
|
"format-muted": " {format_source}",
|
||||||
"format-source": "{volume}% ",
|
"format-source": "{volume}%",
|
||||||
"format-source-muted": "",
|
|
||||||
"format-icons": {
|
"format-icons": {
|
||||||
"headphone": "",
|
"headphone": "",
|
||||||
"hands-free": "",
|
"hands-free": "",
|
||||||
"headset": "",
|
"headset": "",
|
||||||
"phone": "",
|
|
||||||
"portable": "",
|
|
||||||
"car": "",
|
|
||||||
"default": ["", "", ""]
|
"default": ["", "", ""]
|
||||||
},
|
},
|
||||||
"exec-if": "which pavucontrol",
|
"exec-if": "which pavucontrol",
|
||||||
"on-click": "pavucontrol"
|
"on-click": "pavucontrol"
|
||||||
},
|
},
|
||||||
"custom/media": {
|
"custom/media": {
|
||||||
"format": "{icon} {}",
|
"format": "{icon} {}",
|
||||||
"return-type": "json",
|
"return-type": "json",
|
||||||
"max-length": 40,
|
"max-length": 40,
|
||||||
"escape": true,
|
"escape": true,
|
||||||
"format-icons": {
|
"format-icons": {
|
||||||
"firefox": "",
|
"firefox": "",
|
||||||
"discord": "",
|
"discord": "",
|
||||||
"spotify": "",
|
"spotify": "",
|
||||||
"default": ""
|
"default": ""
|
||||||
},
|
},
|
||||||
"escape": true,
|
|
||||||
"exec": "$HOME/.config/waybar/mediaplayer.py --player spotify 2> /dev/null", // Script in resources folder
|
"exec": "$HOME/.config/waybar/mediaplayer.py --player spotify 2> /dev/null", // Script in resources folder
|
||||||
"on-click": "playerctl --player spotify play-pause" // Change "spotify to your preferred player"
|
"on-click": "playerctl --player spotify play-pause" // Change "spotify to your preferred player"
|
||||||
}
|
}
|
||||||
|
|||||||
+15
-22
@@ -2,16 +2,16 @@
|
|||||||
@import "mocha.css";
|
@import "mocha.css";
|
||||||
|
|
||||||
window {
|
window {
|
||||||
/* `otf-font-awesome` is required to be installed for icons */
|
|
||||||
font-family: "0xProto Nerd Font Regular", "Font Awesome", sans-serif;
|
font-family: "0xProto Nerd Font Regular", "Font Awesome", sans-serif;
|
||||||
font-size: 12px;
|
font-size: 12px;
|
||||||
border-radius: 10px;
|
|
||||||
color: @text;
|
color: @text;
|
||||||
}
|
}
|
||||||
|
|
||||||
* {
|
* {
|
||||||
color: @text;
|
color: @text;
|
||||||
border-radius: 10px;
|
border-radius: 12px;
|
||||||
|
margin-left: 0;
|
||||||
|
margin-right: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
window#waybar {
|
window#waybar {
|
||||||
@@ -19,7 +19,7 @@ window#waybar {
|
|||||||
}
|
}
|
||||||
|
|
||||||
window#waybar.hidden {
|
window#waybar.hidden {
|
||||||
opacity: 0.2;
|
opacity: .1;
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
@@ -37,7 +37,6 @@ window#waybar.termite {
|
|||||||
|
|
||||||
window#waybar.chromium {
|
window#waybar.chromium {
|
||||||
background-color: @base;
|
background-color: @base;
|
||||||
border: none;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
button {
|
button {
|
||||||
@@ -45,8 +44,7 @@ button {
|
|||||||
/*box-shadow: inset 0 -3px transparent;*/
|
/*box-shadow: inset 0 -3px transparent;*/
|
||||||
/* Avoid rounded borders under each button name */
|
/* Avoid rounded borders under each button name */
|
||||||
border: none;
|
border: none;
|
||||||
border-radius: 2px;
|
background: alpha(@base, .3);
|
||||||
background: transparent;
|
|
||||||
transition: 120ms ease-in;
|
transition: 120ms ease-in;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -62,21 +60,20 @@ button:hover {
|
|||||||
|
|
||||||
#workspaces {
|
#workspaces {
|
||||||
background: alpha(@base, .3);
|
background: alpha(@base, .3);
|
||||||
border-radius: 18px;
|
padding-top: 2px;
|
||||||
padding: 4px;
|
padding-bottom: 2px;
|
||||||
padding-bottom: 3px;
|
|
||||||
padding-top: 3px;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
#workspaces button {
|
#workspaces button {
|
||||||
border-radius: 50%;
|
color: @text;
|
||||||
padding: 2px 6px;
|
padding-left: 6px;
|
||||||
color: @blue;
|
padding-right: 6.9px;
|
||||||
font-size: 18px;
|
font-size: 19px;
|
||||||
}
|
}
|
||||||
|
|
||||||
#workspaces button.active {
|
#workspaces button.active {
|
||||||
background: alpha(shade(@blue, .5), .6);
|
background: alpha(shade(@blue, .5), .6);
|
||||||
|
/* Customize font size and stuff when in different states */
|
||||||
}
|
}
|
||||||
|
|
||||||
#workspaces button.urgent {
|
#workspaces button.urgent {
|
||||||
@@ -98,10 +95,6 @@ button:hover {
|
|||||||
background: alpha(@base, .3);
|
background: alpha(@base, .3);
|
||||||
}
|
}
|
||||||
|
|
||||||
#backlight:hover {
|
|
||||||
background: alpha(@base, .5);
|
|
||||||
}
|
|
||||||
|
|
||||||
#mode {
|
#mode {
|
||||||
background-color: alpha(@yellow, .3);
|
background-color: alpha(@yellow, .3);
|
||||||
box-shadow: inset 0 -3px @text;
|
box-shadow: inset 0 -3px @text;
|
||||||
@@ -128,10 +121,10 @@ button:hover {
|
|||||||
color: @text;
|
color: @text;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/*
|
||||||
#window,
|
#window,
|
||||||
#workspaces {
|
#workspaces {}
|
||||||
margin: 0 4px;
|
*/
|
||||||
}
|
|
||||||
|
|
||||||
/* If workspaces is the leftmost module, omit left margin */
|
/* If workspaces is the leftmost module, omit left margin */
|
||||||
.modules-left > widget:first-child > #workspaces {
|
.modules-left > widget:first-child > #workspaces {
|
||||||
|
|||||||
Reference in New Issue
Block a user