improve hyprland
This commit is contained in:
26
modules/optionnals/desktop/config/etc/xdg/waybar/colors.css
Normal file
26
modules/optionnals/desktop/config/etc/xdg/waybar/colors.css
Normal file
@@ -0,0 +1,26 @@
|
||||
@define-color rosewater #f2d5cf;
|
||||
@define-color flamingo #eebebe;
|
||||
@define-color pink #f4b8e4;
|
||||
@define-color mauve #ca9ee6;
|
||||
@define-color red #e78284;
|
||||
@define-color maroon #ea999c;
|
||||
@define-color peach #ef9f76;
|
||||
@define-color yellow #e5c890;
|
||||
@define-color green #a6d189;
|
||||
@define-color teal #81c8be;
|
||||
@define-color sky #99d1db;
|
||||
@define-color sapphire #85c1dc;
|
||||
@define-color blue #8caaee;
|
||||
@define-color lavender #babbf1;
|
||||
@define-color text #c6d0f5;
|
||||
@define-color subtext1 #b5bfe2;
|
||||
@define-color subtext0 #a5adce;
|
||||
@define-color overlay2 #949cbb;
|
||||
@define-color overlay1 #838ba7;
|
||||
@define-color overlay0 #737994;
|
||||
@define-color surface2 #626880;
|
||||
@define-color surface1 #51576d;
|
||||
@define-color surface0 #414559;
|
||||
@define-color base #303446;
|
||||
@define-color mantle #292c3c;
|
||||
@define-color crust #232634;
|
||||
101
modules/optionnals/desktop/config/etc/xdg/waybar/config.jsonc
Normal file
101
modules/optionnals/desktop/config/etc/xdg/waybar/config.jsonc
Normal file
@@ -0,0 +1,101 @@
|
||||
{
|
||||
"position": "top",
|
||||
"reload_style_on_change": true,
|
||||
"modules-left": [
|
||||
"custom/logo",
|
||||
"cpu",
|
||||
"memory",
|
||||
"disk",
|
||||
"network",
|
||||
"pulseaudio",
|
||||
],
|
||||
"modules-center": [
|
||||
"hyprland/workspaces"
|
||||
],
|
||||
"modules-right": [
|
||||
"custom/maj",
|
||||
"clock",
|
||||
"tray"
|
||||
],
|
||||
"custom/logo": {
|
||||
"format": "{icon}",
|
||||
"format-icons": {
|
||||
"default": " "
|
||||
}
|
||||
},
|
||||
"cpu": {
|
||||
"format": " {usage}% ",
|
||||
"tooltip": true
|
||||
},
|
||||
"memory": {
|
||||
"format": " {percentage}% ",
|
||||
"tooltip": true,
|
||||
"tooltip-format": "asd: {used:0.2f} G / {total:0.2f} G"
|
||||
},
|
||||
"disk": {
|
||||
"interval": 300,
|
||||
"format": " {percentage_free}% ",
|
||||
"path": "/"
|
||||
},
|
||||
"network": {
|
||||
"format-wifi": "<span size='12000'> </span>{essid} ",
|
||||
"format-ethernet": " {ipaddr} ",
|
||||
"tooltip-format": " {bandwidthUpBytes} {bandwidthDownBytes}",
|
||||
"format-linked": " {ifname} (No IP) ",
|
||||
"format-disconnected": " Disconnected ",
|
||||
"format-alt": " {signalStrength}% ",
|
||||
"interval": 1
|
||||
},
|
||||
"pulseaudio": {
|
||||
"format": "{icon}{volume}% ",
|
||||
"format-muted": " 0% ",
|
||||
"format-icons": {
|
||||
"headphone": " ",
|
||||
"hands-free": " ",
|
||||
"headset": " ",
|
||||
"phone": " ",
|
||||
"portable": " ",
|
||||
"car": " ",
|
||||
"default": [
|
||||
" ",
|
||||
" ",
|
||||
" "
|
||||
]
|
||||
},
|
||||
"on-click-right": "pavucontrol -t 3",
|
||||
"on-click": "pactl -- set-sink-mute 0 toggle",
|
||||
"tooltip": false,
|
||||
"tooltip-format": "{volume}%",
|
||||
"scroll-step": 5.0,
|
||||
},
|
||||
"hyprland/workspaces": {
|
||||
"disable-scroll": false,
|
||||
"all-outputs": false,
|
||||
"on-click": "activate",
|
||||
"persistent-workspaces": {
|
||||
"HDMI-A-1": [1, 2, 3, 4],
|
||||
"HDMI-A-2": [5, 6, 7, 8],
|
||||
},
|
||||
"format": "{name}",
|
||||
"format-icons": {
|
||||
"default": "",
|
||||
},
|
||||
},
|
||||
"custom/maj": {
|
||||
"exec": "/etc/xdg/scripts/update.sh",
|
||||
"interval": 300,
|
||||
"return-type": "json",
|
||||
"format": "{icon}{text}",
|
||||
"format-icons": {
|
||||
"default": " "
|
||||
}
|
||||
},
|
||||
"clock": {
|
||||
"format": " {:%a %d %H:%M} ",
|
||||
"tooltip-format": "<big>{:%Y %B}</big>\n<tt><small>{calendar}</small></tt>"
|
||||
},
|
||||
"tray": {
|
||||
"icon-size": 18,
|
||||
"spacing": 6
|
||||
}
|
||||
}
|
||||
116
modules/optionnals/desktop/config/etc/xdg/waybar/style.css
Normal file
116
modules/optionnals/desktop/config/etc/xdg/waybar/style.css
Normal file
@@ -0,0 +1,116 @@
|
||||
@import "colors.css";
|
||||
|
||||
* {
|
||||
/*font-family: "Font Awesome 6 Free Solid", "Font Awesome 6 Free Regular", "Font Awesome 6 Brands Regular", "CaskaydiaCove Nerd Font Propo";*/
|
||||
font-family: "CaskaydiaCove Nerd Font Propo";
|
||||
font-size: 16px;
|
||||
font-weight: bold;
|
||||
min-height: 0px;
|
||||
padding: 0;
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
#waybar {
|
||||
color: @text;
|
||||
border: none;
|
||||
box-shadow: none;
|
||||
background-color: rgba(48, 52, 70, 0);
|
||||
}
|
||||
|
||||
#custom-logo,
|
||||
#cpu,
|
||||
#memory,
|
||||
#disk,
|
||||
#network,
|
||||
#workspaces,
|
||||
#custom-maj,
|
||||
#pulseaudio,
|
||||
#memory,
|
||||
#clock,
|
||||
#tray {
|
||||
border-radius: 10px;
|
||||
background-color: rgba(48, 52, 70, 0.8);
|
||||
margin: 10px 10px 0px 10px;
|
||||
border: @overlay0 2px solid;
|
||||
}
|
||||
|
||||
#custom-settings {
|
||||
color: @pink;
|
||||
}
|
||||
|
||||
#custom-lockscreen {
|
||||
color: @green;
|
||||
}
|
||||
|
||||
#workspaces {
|
||||
padding: 0 5px;
|
||||
min-width: 152px;
|
||||
}
|
||||
|
||||
#workspaces button {
|
||||
background-color: @overlay0;
|
||||
margin: 5px 5px;
|
||||
border-radius: 10px;
|
||||
}
|
||||
|
||||
#workspaces button:hover,
|
||||
#workspaces button.empty:hover,
|
||||
#workspaces button.active:hover,
|
||||
#workspaces button.visible:hover,
|
||||
#workspaces button.urgent:hover {
|
||||
background: @overlay2;
|
||||
border: 0px solid @red;
|
||||
}
|
||||
|
||||
#workspaces button label {
|
||||
color: @teal;
|
||||
opacity: 0;
|
||||
padding: 1px 6px 0px 6px;
|
||||
transition: padding 0.2s;
|
||||
}
|
||||
|
||||
#workspaces button.visible label {
|
||||
opacity: 1;
|
||||
padding: 1px 20px;
|
||||
transition: padding 0.2s;
|
||||
}
|
||||
|
||||
#workspaces button.empty {
|
||||
background: @surface0;
|
||||
}
|
||||
|
||||
#workspaces button.active {
|
||||
background: @overlay1;
|
||||
}
|
||||
|
||||
#workspaces button.visible {
|
||||
background: @overlay0;
|
||||
}
|
||||
|
||||
#workspaces button.urgent {
|
||||
background: @red;
|
||||
}
|
||||
|
||||
#network {
|
||||
color: @pink;
|
||||
}
|
||||
|
||||
#pulseaudio {
|
||||
color: @yellow;
|
||||
}
|
||||
|
||||
#cpu {
|
||||
color: @blue;
|
||||
}
|
||||
|
||||
#memory {
|
||||
color: @green;
|
||||
}
|
||||
|
||||
#clock {
|
||||
color: @red;
|
||||
}
|
||||
|
||||
#tray {
|
||||
padding: 0 8px 0 10px;
|
||||
}
|
||||
Reference in New Issue
Block a user