modify design
This commit is contained in:
54
config
54
config
@@ -1,25 +1,24 @@
|
|||||||
{
|
{
|
||||||
"layer": "top", // Waybar at top layer
|
"layer": "top",
|
||||||
"position": "top", // Waybar position (top|bottom|left|right)
|
"position": "top",
|
||||||
// "width": 1280, // Waybar width
|
"modules-left": ["custom/haskell", "hyprland/workspaces"],
|
||||||
// Choose the order of the modules
|
"modules-center": ["clock"],
|
||||||
"modules-left": ["hyprland/workspaces"],
|
"modules-right": ["pulseaudio", "backlight", "battery", "custom/music", "tray", "custom/lock", "custom/power"],
|
||||||
"modules-center": ["custom/music"],
|
"custom/haskell": {
|
||||||
"modules-right": ["pulseaudio", "backlight", "battery", "clock", "tray", "custom/lock", "custom/power"],
|
"format": "λ",
|
||||||
"wlr/workspaces": {
|
"tooltip": false
|
||||||
"disable-scroll": true,
|
},
|
||||||
"sort-by-name": true,
|
"hyprland/workspaces": {
|
||||||
"format": " {icon} ",
|
"disable-scroll": true,
|
||||||
"format-icons": {
|
"format": "{id}",
|
||||||
"default": "",
|
"on-click": "activate"
|
||||||
},
|
},
|
||||||
},
|
|
||||||
"tray": {
|
"tray": {
|
||||||
"icon-size": 21,
|
"icon-size": 21,
|
||||||
"spacing": 10
|
"spacing": 10
|
||||||
},
|
},
|
||||||
"custom/music": {
|
"custom/music": {
|
||||||
"format": " {}",
|
"format": "{}",
|
||||||
"escape": true,
|
"escape": true,
|
||||||
"interval": 5,
|
"interval": 5,
|
||||||
"tooltip": false,
|
"tooltip": false,
|
||||||
@@ -35,37 +34,30 @@
|
|||||||
},
|
},
|
||||||
"backlight": {
|
"backlight": {
|
||||||
"device": "intel_backlight",
|
"device": "intel_backlight",
|
||||||
"format": "{icon}",
|
"format": "BRI {percent}%"
|
||||||
"format-icons": ["", "", "", "", "", "", "", "", ""]
|
|
||||||
},
|
},
|
||||||
"battery": {
|
"battery": {
|
||||||
"states": {
|
"states": {
|
||||||
"warning": 30,
|
"warning": 30,
|
||||||
"critical": 15
|
"critical": 15
|
||||||
},
|
},
|
||||||
"format": "{icon}",
|
"format": "BAT {capacity}%",
|
||||||
"format-charging": "",
|
"format-charging": "BAT {capacity}% +",
|
||||||
"format-plugged": "",
|
"format-plugged": "BAT {capacity}% ="
|
||||||
"format-alt": "{icon}",
|
|
||||||
"format-icons": ["", "", "", "", "", "", "", "", "", "", "", ""]
|
|
||||||
},
|
},
|
||||||
"pulseaudio": {
|
"pulseaudio": {
|
||||||
// "scroll-step": 1, // %, can be a float
|
"format": "VOL {volume}%",
|
||||||
"format": "{icon} {volume}%",
|
"format-muted": "VOL MUTE",
|
||||||
"format-muted": "",
|
|
||||||
"format-icons": {
|
|
||||||
"default": ["", "", " "]
|
|
||||||
},
|
|
||||||
"on-click": "pavucontrol"
|
"on-click": "pavucontrol"
|
||||||
},
|
},
|
||||||
"custom/lock": {
|
"custom/lock": {
|
||||||
"tooltip": false,
|
"tooltip": false,
|
||||||
"on-click": "sh -c '(sleep 0.5s; swaylock --grace 0)' & disown",
|
"on-click": "sh -c '(sleep 0.5s; swaylock --grace 0)' & disown",
|
||||||
"format": "",
|
"format": "LOCK"
|
||||||
},
|
},
|
||||||
"custom/power": {
|
"custom/power": {
|
||||||
"tooltip": false,
|
"tooltip": false,
|
||||||
"on-click": "wlogout &",
|
"on-click": "wlogout &",
|
||||||
"format": "襤"
|
"format": "PWR"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
102
style.css
102
style.css
@@ -1,40 +1,22 @@
|
|||||||
@import "mocha.css";
|
@import "mocha.css";
|
||||||
|
|
||||||
* {
|
* {
|
||||||
font-family: FantasqueSansMono Nerd Font;
|
font-family: "FantasqueSansMono Nerd Font", monospace;
|
||||||
font-size: 17px;
|
font-size: 15px;
|
||||||
min-height: 0;
|
min-height: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
#waybar {
|
#waybar {
|
||||||
background: transparent;
|
background: @base;
|
||||||
color: @text;
|
color: @text;
|
||||||
margin: 5px 5px;
|
border-radius: 0;
|
||||||
}
|
margin: 0;
|
||||||
|
padding: 0;
|
||||||
#workspaces {
|
|
||||||
border-radius: 1rem;
|
|
||||||
margin: 5px;
|
|
||||||
background-color: @surface0;
|
|
||||||
margin-left: 1rem;
|
|
||||||
}
|
|
||||||
|
|
||||||
#workspaces button {
|
|
||||||
color: @lavender;
|
|
||||||
border-radius: 1rem;
|
|
||||||
padding: 0.4rem;
|
|
||||||
}
|
|
||||||
|
|
||||||
#workspaces button.active {
|
|
||||||
color: @sky;
|
|
||||||
border-radius: 1rem;
|
|
||||||
}
|
|
||||||
|
|
||||||
#workspaces button:hover {
|
|
||||||
color: @sapphire;
|
|
||||||
border-radius: 1rem;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#workspaces,
|
||||||
|
#workspaces button,
|
||||||
|
#custom-haskell,
|
||||||
#custom-music,
|
#custom-music,
|
||||||
#tray,
|
#tray,
|
||||||
#backlight,
|
#backlight,
|
||||||
@@ -43,15 +25,44 @@
|
|||||||
#pulseaudio,
|
#pulseaudio,
|
||||||
#custom-lock,
|
#custom-lock,
|
||||||
#custom-power {
|
#custom-power {
|
||||||
background-color: @surface0;
|
border-radius: 0;
|
||||||
padding: 0.5rem 1rem;
|
padding: 4px 8px;
|
||||||
margin: 5px 0;
|
margin: 0;
|
||||||
|
background: transparent;
|
||||||
|
}
|
||||||
|
|
||||||
|
#custom-haskell {
|
||||||
|
color: @mauve;
|
||||||
|
font-size: 16px;
|
||||||
|
font-weight: 900;
|
||||||
|
}
|
||||||
|
|
||||||
|
#workspaces {
|
||||||
|
background: transparent;
|
||||||
|
}
|
||||||
|
|
||||||
|
#workspaces button {
|
||||||
|
color: @overlay1;
|
||||||
|
box-shadow: none;
|
||||||
|
border: none;
|
||||||
|
outline: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
#workspaces button.active {
|
||||||
|
color: #eb3489;
|
||||||
|
font-weight: bold;
|
||||||
|
}
|
||||||
|
|
||||||
|
#workspaces button:hover {
|
||||||
|
color: @text;
|
||||||
|
font-weight: bold;
|
||||||
|
box-shadow: none;
|
||||||
|
border: none;
|
||||||
|
background: transparent;
|
||||||
}
|
}
|
||||||
|
|
||||||
#clock {
|
#clock {
|
||||||
color: @blue;
|
color: @blue;
|
||||||
border-radius: 0px 1rem 1rem 0px;
|
|
||||||
margin-right: 1rem;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
#battery {
|
#battery {
|
||||||
@@ -70,33 +81,30 @@
|
|||||||
color: @yellow;
|
color: @yellow;
|
||||||
}
|
}
|
||||||
|
|
||||||
#backlight, #battery {
|
|
||||||
border-radius: 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
#pulseaudio {
|
#pulseaudio {
|
||||||
color: @maroon;
|
color: @maroon;
|
||||||
border-radius: 1rem 0px 0px 1rem;
|
|
||||||
margin-left: 1rem;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
#custom-music {
|
#custom-music {
|
||||||
color: @mauve;
|
color: @mauve;
|
||||||
border-radius: 1rem;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
#custom-lock {
|
#custom-lock {
|
||||||
border-radius: 1rem 0px 0px 1rem;
|
color: @lavender;
|
||||||
color: @lavender;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
#custom-power {
|
#custom-power {
|
||||||
margin-right: 1rem;
|
color: @red;
|
||||||
border-radius: 0px 1rem 1rem 0px;
|
|
||||||
color: @red;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
#tray {
|
#custom-haskell:hover,
|
||||||
margin-right: 1rem;
|
#custom-music:hover,
|
||||||
border-radius: 1rem;
|
#tray:hover,
|
||||||
|
#backlight:hover,
|
||||||
|
#clock:hover,
|
||||||
|
#battery:hover,
|
||||||
|
#pulseaudio:hover,
|
||||||
|
#custom-lock:hover,
|
||||||
|
#custom-power:hover {
|
||||||
|
font-weight: bold;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user