add stuff for home manager

This commit is contained in:
alyx 2026-02-21 01:09:03 +00:00
parent 00add66a97
commit 4b6738323e
No known key found for this signature in database
9 changed files with 831 additions and 10 deletions

129
home/waybar/cyberhack Normal file
View file

@ -0,0 +1,129 @@
[{
"position": "top",
"modules-left": ["group/traydrawer", "custom/weather"],
"modules-center": ["cpu", "group/mpdcontrols", "cpu#frequency"],
"modules-right": ["clock", "wireplumber", "battery", "memory", "disk", "group/poweroptions"],
"margin-top": 8,
"margin-left": 8,
"margin-right": 8,
"height": 40,
"wireplumber": {
"on-click": "pavucontrol",
"format": "󰓃 {volume}%",
"format-muted": "󰓄 {volume}%",
},
"battery": {
"interval": 5,
"format-icons": [" ", " ", " ", " ", " "],
"states": {
"warning": 26,
"critical": 15,
"dead": 5
},
"format": "{icon} {capacity}%",
"tooltip-format": "BAT0, {power}W",
},
"group/mpdcontrols": {
"orientation": "inherit",
"drawer": {
"transition-duration": 250,
"transition-left-to-right": true
},
"modules": ["mpd", "custom/playpause", "custom/prev", "custom/next"]
},
"custom/playpause": {
"format": " 󰐎 ",
"on-click": "mpc toggle"
},
"custom/prev": {
"format": " 󰒮 ",
"on-click": "mpc prev"
},
"custom/next": {
"format": " 󰒭 ",
"on-click": "mpc next"
},
"group/traydrawer": {
"orientation": "inherit",
"modules": ["custom/trayadvisory", "tray"],
"drawer": {
"transition-duration": 250
}
},
"mpd": {
"on-click": "mpc toggle",
"format-disconnected": " MPD disconnected ",
"format-stopped": " Nothing Playing! ",
"format": "  {title} - {album} - {artist} ",
"format-paused": "  {title} - {album} - {artist} ",
"on-scroll-up": "mpc volume +5",
"on-scroll-down": "mpc volume -5"
},
"custom/trayadvisory": {
"format": " "
},
"custom/systemadvisory": {
"format": "󱖫 "
},
"group/poweroptions": {
"orientation": "inherit",
"modules": ["custom/poweroff", "custom/logout"],
"drawer": {
"transition-duration": 250
}
},
"custom/poweroff": {
"format": "⏻ ",
"on-click": "shutdown now",
},
"custom/logout": {
"format": "| 󰩈 ",
"on-click": "swaymsg exit",
},
"custom/weather": {
"format": "{}°",
"tooltip": true,
"interval": 3600,
"exec": "wttrbar --nerd --location edinburgh",
"return-type": "json"
},
"group/systemstatus": {
"orientation": "inherit",
"modules": ["custom/systemadvisory", "memory", "disk"],
"drawer": {
"click-to-reveal": true,
"transition-duration": 250,
}
},
"cpu": {
"format": "  {usage}% ",
"states": { "highcpu": 85 },
},
"cpu#frequency": {
"format": "{max_frequency}GHz"
},
"memory": {
"format": " {avail:0.0f} GiB  {swapAvail:0.0f} GiB"
},
"disk": {
"format": " {specific_free:0.1f} GiB",
"unit": "GiB",
},
}]

49
home/waybar/cyberhack.css Normal file
View file

@ -0,0 +1,49 @@
#waybar {
font-family: "DepartureMono Nerd Font";
background: rgba(0, 36, 40, 0.999);
color: rgba(0, 255, 255, 0.999);
border: 2px solid rgba(0, 146, 148, 0.999);
border-radius: 11px;
}
#wireplumber,
#cpu,
#cpu-frequency,
#battery,
#clock,
#memory,
#disk,
#mpdcontrols,
#poweroptions
{
border: 2px solid rgba(0, 146, 148, 0.999);
/*margin: 3px;*/
min-height: 0;
margin-left: 4px;
margin-right: 4px;
margin-top: 7px;
margin-bottom: 7px;
padding: 2px;
padding-left: 5px;
padding-right: 5px;
border-radius: 4px;
}
#custom-trayadvisory {
margin: 3px 10px 3px;
}
#poweroptions {
margin-right: 10px;
padding-left: 8px;
}
#mpd.playing {
background: rgba(0, 100, 40, 0.4);
color: rgba(87, 255, 0, 1);
}
#cpu.highcpu {
background: rgba(121, 93, 201, 0.2);
color: rgba(87, 255, 0, 1);
}

146
home/waybar/modern Normal file
View file

@ -0,0 +1,146 @@
[
{
"layer": "top",
"margin-top": 10,
"margin-left": 12,
"margin-right": 12,
"height": 35,
"spacing": 5,
"position": "top",
"modules-center": ["group/mpdg"],
"modules-left": ["group/dtray", "battery", "battery#bat1", "battery#bat2"],
"modules-right": ["clock", "group/audio", "disk", "memory", "cpu"],
"memory": {
"format": " {avail} +  {swapAvail} GiB",
},
"cava": {
"method": "pipewire",
"format-icons" : ["▁", "▂", "▃", "▄", "▅", "▆", "▇", "█" ],
"bar_delimiter": 0,
"bars": 12,
"stereo": false,
"hide_on_silence": true,
"input_delay": 1,
"autosens": 0,
"noise_reduction": 0.5,
"sensitivity": 13,
},
"disk": {
"format": " {free} {path}",
},
"cpu": {
"format": " {usage}% {max_frequency}GHz",
"states": { "highcpu": 85 },
},
"group/dtray": {
"orientation": "inherit",
"drawer": {
"transition-duration": 500,
"transition-left-to-right": true
},
"modules": ["custom/arrow", "tray"]
},
"group/audio": {
"orientation": "inherit",
"modules": ["wireplumber", ],
"on-click": "pavucontrol",
},
"group/mpdg": {
"orientation": "inherit",
"drawer": {
"transition-duration": 500,
"children-class": "mpdcontrol",
"transition-left-to-right": true
},
"modules": ["mpd", "custom/playpause", "custom/prev", "custom/next"]
},
"custom/playpause": {
"format": "󰐎",
"on-click": "mpc toggle"
},
"custom/prev": {
"format": "󰒮",
"on-click": "mpc prev"
},
"custom/next": {
"format": "󰒭",
"on-click": "mpc next"
},
"custom/arrow": {
"format": " ",
"tooltip": false,
"on-click": "swaync-client -t",
},
"tray": {
"spacing": 5
},
"clock": {
"format": "{:%I:%M %p}",
},
"wireplumber": {
"on-click": "pavucontrol",
"format": "󰓃 {volume}%",
"format-muted": "󰓄 {volume}%",
},
"mpd": {
"on-click": "mpc toggle",
"format-disconnected": "MPD seems to be down",
"format-stopped": "Nothing playing!",
"format": "{title} - {album} - {artist}",
"format-paused": "{title} - {album} - {artist}",
},
"battery": {
"bat": "BAT0",
"interval": 5,
"format-icons": [" ", " ", " ", " ", " "],
"states": {
"warning": 30,
"critical": 15,
"dead": 5
},
"format": "{icon} {capacity}%",
"tooltip-format": "BAT0, {power}W"
},
"battery#bat1": {
"bat": "BAT1",
"interval": 5,
"format-icons": [" ", " ", " ", " ", " "],
"states": {
"warning": 30,
"critical": 15,
"dead": 5
},
"format": "{icon} {capacity}%",
"tooltip-format": "BAT1, {power}W"
},
"battery#bat2": {
"bat": "BAT2",
"interval": 5,
"format-icons": [" ", " ", " ", " ", " "],
"states": {
"warning": 30,
"critical": 15,
"dead": 5
},
"format": "{icon} {capacity}%",
"tooltip-format": "BAT2, {power}W"
},
}
]

114
home/waybar/modern.css Normal file
View file

@ -0,0 +1,114 @@
@define-color rosewater #f5e0dc;
@define-color flamingo #f2cdcd;
@define-color pink #f5c2e7;
@define-color mauve #cba6f7;
@define-color red #f38ba8;
@define-color maroon #eba0ac;
@define-color peach #fab387;
@define-color yellow #f9e2af;
@define-color green #a6e3a1;
@define-color teal #94e2d5;
@define-color sky #89dceb;
@define-color sapphire #74c7ec;
@define-color blue #89b4fa;
@define-color lavender #b4befe;
@define-color text #cdd6f4;
@define-color subtext1 #bac2de;
@define-color subtext0 #a6adc8;
@define-color overlay2 #9399b2;
@define-color overlay1 #7f849c;
@define-color overlay0 #6c7086;
@define-color surface2 #585b70;
@define-color surface1 #45475a;
@define-color surface0 #313244;
@define-color base #1e1e2e;
@define-color mantle #181825;
@define-color crust #11111b;
/* forgive me, above is the contents of catppuccin mocha's waybar css file */
* {
font-family: Iosevka NF;
}
window#waybar {
background-color: rgba(49, 50, 68, 0.999);
/* padding: 0px 5px;
margin: 5px 10px 5px; */
border-radius: 10px;
}
#clock,
#audio,
#mpd,
#battery,
#cpu,
#disk,
#memory {
padding: 5px;
border-radius: 10px;
border: 0.2em solid #cba6f7;
background: @surface2;
min-height: 0;
margin: 0.2em;
}
#battery.warning {
border: 0.2em solid @yellow;
}
#battery.critical {
border: 0.2em solid @red;
}
#battery.dead {
background: @surface0;
color: @surface2;
border: 0.2em solid @overlay1;
}
#dtray {
margin: 0px 10px 0px;
padding: 0px 10px 0px;
}
#wireplumber.muted {
border: 0;
color: #888888;
}
#mpd.stopped {
background-color: @surface0;
border: 0
}
#mpd.playing {
background: @mauve;
}
.mpdcontrol {
background-color: @surface0;
/* border-radius: 10px; */
font-size: 1.2em;
}
#custom-playpause {
background-color: #e5a6f7;
padding-right: 10px;
padding-left: 5px;
}
#custom-prev {
background-color: #F7A6E8;
padding-right: 7px;
padding-left: 6px;
}
#custom-next {
background-color: #FAA5B7;
padding-right: 8px;
padding-left: 6px;
border-top-right-radius: 10px;
border-bottom-right-radius: 10px;
}
#mpdg:hover {
border-bottom-left-radius: 10px;
border-top-left-radius: 10px;
background: #e5a6f7;
}
#battery.charging {
background: @mauve;
}
#cava {
margin-left: 0.2em;
color: @mauve;
}
#cpu.highcpu {
background: @mauve;
}