Initial commit
This commit is contained in:
commit
9c9cd19c2b
28 changed files with 2144 additions and 0 deletions
88
.config/waybar/config.jsonc
Normal file
88
.config/waybar/config.jsonc
Normal file
|
|
@ -0,0 +1,88 @@
|
|||
{
|
||||
"position": "top",
|
||||
"layer": "top",
|
||||
"modules-left": [
|
||||
"custom/launcher",
|
||||
"cpu",
|
||||
"memory",
|
||||
"tray"
|
||||
],
|
||||
"modules-center": [
|
||||
"mpris",
|
||||
"river/tags",
|
||||
"river/window"
|
||||
],
|
||||
"modules-right": [
|
||||
"pulseaudio",
|
||||
"clock",
|
||||
"network",
|
||||
"custom/power"
|
||||
],
|
||||
"pulseaudio": {
|
||||
"tooltip": false,
|
||||
"scroll-step": 5,
|
||||
"format": "{icon} {volume}%",
|
||||
"format-muted": " {volume}%",
|
||||
"on-click": "pactl set-sink-mute @DEFAULT_SINK@ toggle",
|
||||
"format-icons": {
|
||||
"default": [
|
||||
"",
|
||||
"",
|
||||
""
|
||||
]
|
||||
}
|
||||
},
|
||||
"river/tags": {},
|
||||
"river/window": {
|
||||
"format": "<b>{}</b>"
|
||||
},
|
||||
"mpris": {
|
||||
"dynamic-len": 30,
|
||||
"format": "{player_icon} {dynamic}",
|
||||
"format-paused": "{status_icon} <i>{dynamic}</i>",
|
||||
"player-icons": {
|
||||
"default": "▶",
|
||||
"spotify": ""
|
||||
},
|
||||
"status-icons": {
|
||||
"paused": "⏸"
|
||||
}
|
||||
},
|
||||
"network": {
|
||||
"tooltip": false,
|
||||
"format-wifi": " {essid}",
|
||||
"format-ethernet": ""
|
||||
},
|
||||
"backlight": {
|
||||
"tooltip": false,
|
||||
"format": " {}%",
|
||||
"interval": 1,
|
||||
"on-scroll-up": "light -A 5",
|
||||
"on-scroll-down": "light -U 5"
|
||||
},
|
||||
"tray": {
|
||||
"icon-size": 18,
|
||||
"spacing": 10
|
||||
},
|
||||
"clock": {
|
||||
"format": " {:%H:%M %d/%m/%Y}"
|
||||
},
|
||||
"cpu": {
|
||||
"interval": 15,
|
||||
"format": " {}%",
|
||||
"max-length": 10
|
||||
},
|
||||
"memory": {
|
||||
"interval": 30,
|
||||
"format": " {}%",
|
||||
"max-length": 10
|
||||
},
|
||||
"custom/launcher": {
|
||||
"format": "",
|
||||
"on-click": "pkill fuzzel || fuzzel"
|
||||
},
|
||||
"custom/power": {
|
||||
"format": "",
|
||||
"on-click": "~/.config/waybar/power.sh"
|
||||
}
|
||||
}
|
||||
26
.config/waybar/power.sh
Executable file
26
.config/waybar/power.sh
Executable file
|
|
@ -0,0 +1,26 @@
|
|||
#! /bin/bash
|
||||
|
||||
case "$(fuzzel --dmenu <<EOF)" in
|
||||
log out
|
||||
power off
|
||||
reboot
|
||||
soft reboot
|
||||
do nothing
|
||||
EOF
|
||||
|
||||
"log out")
|
||||
riverctl exit
|
||||
;;
|
||||
|
||||
"power off")
|
||||
systemctl poweroff
|
||||
;;
|
||||
|
||||
"reboot")
|
||||
systemctl reboot
|
||||
;;
|
||||
|
||||
"soft reboot")
|
||||
systemctl soft-reboot
|
||||
;;
|
||||
esac
|
||||
82
.config/waybar/style.css
Normal file
82
.config/waybar/style.css
Normal file
|
|
@ -0,0 +1,82 @@
|
|||
@define-color nord0 #2e3440;
|
||||
@define-color nord1 #3b4252;
|
||||
@define-color nord2 #434c5e;
|
||||
@define-color nord3 #4c566a;
|
||||
@define-color nord4 #d8dee9;
|
||||
@define-color nord5 #e5e9f0;
|
||||
@define-color nord6 #eceff4;
|
||||
@define-color nord7 #8fbcbb;
|
||||
@define-color nord8 #88c0d0;
|
||||
@define-color nord9 #81a1c1;
|
||||
@define-color nord10 #5e81ac;
|
||||
@define-color nord11 #bf616a;
|
||||
@define-color nord12 #d08770;
|
||||
@define-color nord13 #ebcb8b;
|
||||
@define-color nord14 #a3be8c;
|
||||
@define-color nord15 #b48ead;
|
||||
|
||||
* {
|
||||
border: none;
|
||||
font-family: "monospace";
|
||||
font-size: 14px;
|
||||
min-height: 10px;
|
||||
}
|
||||
|
||||
window#waybar {
|
||||
margin: 0;
|
||||
background: @nord0;
|
||||
}
|
||||
|
||||
window#waybar.hidden {
|
||||
opacity: 0.2;
|
||||
}
|
||||
|
||||
#mpris, #network, #pulseaudio, #clock, #cpu, #memory, #tray, #custom-launcher, #custom-power, #window {
|
||||
margin: 4px 4px;
|
||||
padding: 0px 10px;
|
||||
border-radius: 8px;
|
||||
transition: none;
|
||||
background: @nord1;
|
||||
}
|
||||
|
||||
#custom-launcher, #custom-power {
|
||||
font-size: 24px;
|
||||
}
|
||||
|
||||
#tags {
|
||||
margin: 4px 4px;
|
||||
border-radius: 8px;
|
||||
background: @nord1;
|
||||
}
|
||||
|
||||
#tags button {
|
||||
transition: none;
|
||||
color: @nord8;
|
||||
background: transparent;
|
||||
border-radius: 8px;
|
||||
}
|
||||
|
||||
#tags button.focused {
|
||||
color: @nord1;
|
||||
background: @nord9;
|
||||
}
|
||||
|
||||
#tags button:hover {
|
||||
color: @nord1;
|
||||
background: @nord8;
|
||||
}
|
||||
|
||||
#tags button.focused:hover {
|
||||
background: @nord10;
|
||||
}
|
||||
|
||||
#custom-launcher { color: #1793D1; }
|
||||
#cpu { color: @nord14; }
|
||||
#memory { color: @nord13; }
|
||||
#window { color: @nord8; }
|
||||
#mpris { color: @nord14; }
|
||||
#clock { color: @nord12; }
|
||||
#tray { color: @nord6; }
|
||||
#pulseaudio { color: @nord10; }
|
||||
#network { color: @nord15; }
|
||||
#custom-power { color: @nord11; }
|
||||
Loading…
Add table
Add a link
Reference in a new issue