committing random WM stuff

This commit is contained in:
2026-03-24 00:03:59 +01:00
parent a7c0018684
commit cb15e83811
70 changed files with 5428 additions and 1 deletions

14
waybar/colors.css Normal file
View File

@@ -0,0 +1,14 @@
/** ********** Colors ********** **/
@define-color background #3d3942;
@define-color background-alt1 #49454f;
@define-color background-alt2 #56515d;
@define-color foreground #e0dde2;
@define-color selected #C3B2CD;
@define-color black #3d3942;
@define-color red #9A9EAA;
@define-color green #A896B3;
@define-color yellow #CAAEB0;
@define-color blue #C3B2CD;
@define-color magenta #94CCC5;
@define-color cyan #A7D5CF;
@define-color white #e0dde2;

28
waybar/config Normal file
View File

@@ -0,0 +1,28 @@
// Copyright (C) 2020-2024 Aditya Shakya <adi1090x@gmail.com>
//
// Waybar config file
{
"include": "~/.config/hypr/waybar/modules",
"name": "main-bar", // Waybar name
"id": "main-bar", // Waybar id
"layer": "top", // Waybar at top layer
//"mode": "dock", // Display mode (dock|hide|invisible|overlay)
"exclusive": true, // Request an exclusive zone from the compositor
"passthrough": false, // Pass any pointer events to the window under the bar
"position": "top", // Waybar position (top|bottom|left|right)
"height": 34, // Waybar height (to be removed for auto height)
"width": "", // Waybar width (empty for auto width)
"spacing": 0, // Gaps between modules
"margin": 0, // Space around the bar
"margin-top": 0, // Space above the bar
"margin-bottom": 0, // Space below the bar
"margin-left": 0, // Space to the left of the bar
"margin-right": 0, // Space to the right of the bar
"fixed-center": true, // Center modules position
"ipc": true, // Control waybar with `swaymsg bar` commands
// Choose the order of the modules
"modules-left": ["custom/menu", "hyprland/workspaces", "mpd#2", "mpd#3", "mpd#4", "mpd" ],
//"modules-left": ["custom/menu", "hyprland/workspaces", "idle_inhibitor", "tray", "custom/spotify" ],
"modules-center": [ "cpu", "cpu#2", "memory", "memory#2", "disk", "disk#2" ],
"modules-right": ["custom/themes", "pulseaudio", "pulseaudio#2", "backlight", "backlight#2", "battery", "battery#2", "bluetooth", "bluetooth#2", "network", "network#2", "clock", "clock#2", "idle_inhibitor", "tray", "custom/power"],
}

326
waybar/modules Normal file
View File

@@ -0,0 +1,326 @@
// Copyright (C) 2020-2024 Aditya Shakya <adi1090x@gmail.com>
//
// Waybar modules configuration
{
// waybar-backlight
"backlight": {
"interval": 2,
//"device": "amdgpu_bl0",
"format": "{icon}",
"format-icons": ["", "", "", "", "", "", ""],
// Commands to execute on events
"on-scroll-up": "light -A 5%",
"on-scroll-down": "light -U 5%",
"smooth-scrolling-threshold": 1,
},
"backlight#2": {
"interval": 2,
//"device": "amdgpu_bl0",
"format": "{percent}%",
// Commands to execute on events
"on-scroll-up": "light -A 5%",
"on-scroll-down": "light -U 5%",
"smooth-scrolling-threshold": 1,
},
// waybar-battery
"battery": {
"interval": 60,
//"bat": "BAT1",
//"adapter": "ACAD",
"full-at": 100,
"design-capacity": false,
"states": {
"good": 95,
"warning": 30,
"critical": 15
},
"format": "{icon}",
"format-charging": "",
"format-plugged": "ﮣ",
"format-full": "",
"format-icons": ["", "", "", "", "", "", "", "", ""],
"format-time": "{H}h {M}min",
"tooltip": true,
},
"battery#2": {
"interval": 60,
//"bat": "BAT1",
//"adapter": "ACAD",
"full-at": 100,
"design-capacity": false,
"states": {
"good": 95,
"warning": 30,
"critical": 15
},
"format": "{capacity}%",
"format-charging": "{capacity}%",
"format-plugged": "{capacity}%",
"format-full": "Full",
"format-alt": "{time}",
"format-time": "{H}h {M}min",
"tooltip": true,
},
// waybar-bluetooth
"bluetooth": {
//"controller": "controller1",
//"format-device-preference": "",
"format": "",
"format-on": "",
"format-off": "",
"format-disabled": "",
"format-connected": "",
"format-connected-battery": "",
"tooltip": true,
"tooltip-format": "{controller_alias}\t{controller_address}",
"tooltip-format-connected": "{controller_alias}\t{controller_address}\n\n{device_enumerate}",
"tooltip-format-enumerate-connected": "{device_alias}\t{device_address}",
"on-click": "~/.config/hypr/scripts/rofi_bluetooth",
"on-click-right": "blueman-manager",
},
"bluetooth#2": {
//"controller": "controller1",
//"format-device-preference": "",
"format": "{status}",
"format-on": "{status}",
"format-off": "{status}",
"format-disabled": "{status}",
"format-connected": "{device_alias}",
"format-connected-battery": "{device_alias}, {device_battery_percentage}%",
"tooltip": true,
"tooltip-format": "{controller_alias}\t{controller_address}",
"tooltip-format-connected": "{controller_alias}\t{controller_address}\n\n{device_enumerate}",
"tooltip-format-enumerate-connected": "{device_alias}\t{device_address}",
"on-click": "~/.config/hypr/scripts/rofi_bluetooth",
"on-click-right": "blueman-manager",
},
// waybar-clock
"clock": {
"tooltip-format": "<big>{:%B %Y}</big>\n<tt><small>{calendar}</small></tt>",
"format": "",
},
"clock#2": {
"interval": 60,
"tooltip-format": "<big>{:%B %Y}</big>\n<tt><small>{calendar}</small></tt>",
"format": "{:%I:%M %p}",
"format-alt": "{:%a %b %d, %G}"
},
// waybar-cpu
"cpu": {
"interval": 5,
"format": "",
},
"cpu#2": {
"interval": 5,
"format": "{usage}%",
},
// waybar-custom
"custom/themes": {
"format": "",
"tooltip": false,
"on-click": "$HOME/.config/hypr/theme/theme.sh --pywal",
"on-click-right": "$HOME/.config/hypr/theme/theme.sh --default",
},
"custom/menu": {
"format": "",
"tooltip": false,
//"on-click": "$HOME/.config/hypr/scripts/wofi_menu",
"on-click": "$HOME/.config/hypr/scripts/rofi_launcher",
"on-click-right": "$HOME/.config/hypr/scripts/rofi_runner",
},
"custom/power": {
"format": "襤",
"tooltip": false,
//"on-click": "$HOME/.config/hypr/scripts/wlogout",
"on-click": "$HOME/.config/hypr/scripts/rofi_powermenu",
},
// waybar-disk
"disk": {
"interval": 30,
"format": "",
},
"disk#2": {
"interval": 30,
"format": "{free}",
},
// waybar-memory
"memory": {
"interval": 10,
"format": "",
},
"memory#2": {
"interval": 10,
"format": "{used:0.1f}G",
},
// waybar-spotify
"custom/spotify": {
"exec": "$HOME/.config/hypr/waybar/spotify",
"interval": 1,
"format": "{}",
"tooltip": true,
"max-length": 40,
"on-click": "playerctl play-pause",
"on-click-middle": "playerctl previous",
"on-click-right": "playerctl next",
"on-scroll-up": "playerctl position 05+",
"on-scroll-down": "playerctl position 05-",
"smooth-scrolling-threshold": 1,
},
// waybar-mpd
"mpd": {
"interval": 2,
"unknown-tag": "N/A",
"format": "{artist} - {title} | 祥 {elapsedTime:%M:%S}",
"format-disconnected": "Disconnected",
"format-paused": "{artist} - {title}",
"format-stopped": "Stopped",
"tooltip-format": "MPD (connected)",
"tooltip-format-disconnected": "MPD (disconnected)",
// Commands to execute on events
"on-click": "mpc toggle",
"on-scroll-up": "mpc seek +00:00:01",
"on-scroll-down": "mpc seek -00:00:01",
"smooth-scrolling-threshold": 1,
},
"mpd#2": {
"format": "玲",
"format-disconnected": "玲",
"format-paused": "玲",
"format-stopped": "玲",
// Commands to execute on events
"on-click": "mpc prev",
},
"mpd#3": {
"interval": 1,
"format": "{stateIcon}",
"format-disconnected": "",
"format-paused": "{stateIcon}",
"format-stopped": "",
"state-icons": {
"paused": "",
"playing": ""
},
// Commands to execute on events
"on-click": "mpc toggle",
},
"mpd#4": {
"format": "怜",
"format-disconnected": "怜",
"format-paused": "怜",
"format-stopped": "怜",
// Commands to execute on events
"on-click": "mpc next",
},
// waybar-network
"network": {
"interval": 5,
//"interface": "wlan*", // (Optional) To force the use of this interface, set it for netspeed to work
"format-wifi": "直",
"format-ethernet": "",
"format-linked": "",
"format-disconnected": "睊",
"format-disabled": "睊",
"tooltip-format": " {ifname} via {gwaddr}",
//"on-click": "[[ ! `pidof nm-connection-editor` ]] && nm-connection-editor || pkill nm-connection-e",
"on-click": "~/.config/hypr/scripts/rofi_network",
},
"network#2": {
"interval": 5,
//"interface": "wlan*", // (Optional) To force the use of this interface, set it for netspeed to work
"format-wifi": "{essid}",
"format-ethernet": "{ipaddr}/{cidr}",
"format-linked": "{ifname} (No IP)",
"format-disconnected": "Disconnected",
"format-disabled": "Disabled",
"format-alt": " {bandwidthUpBits} |  {bandwidthDownBits}",
"tooltip-format": " {ifname} via {gwaddr}",
},
// waybar-pulseaudio
"pulseaudio": {
//"format": "{volume}% {icon} {format_source}",
"format": "{icon}",
"format-muted": "",
"format-bluetooth": "",
"format-bluetooth-muted": "",
"format-source": "",
"format-source-muted": "",
"format-icons": {
"headphone": "",
"hands-free": "ﳌ",
"headset": "",
"phone": "",
"portable": "",
"car": "",
"default": ["", "", ""]
},
"scroll-step": 5.0,
// Commands to execute on events
"on-click": "pulsemixer --toggle-mute",
"on-click-right": "pulsemixer --toggle-mute",
"smooth-scrolling-threshold": 1,
},
"pulseaudio#2": {
//"format": "{volume}% {icon} {format_source}",
"format": "{volume}%",
"format-muted": "Mute",
"format-bluetooth": "{volume}%",
"format-bluetooth-muted": "Mute",
"format-source": "{volume}%",
"scroll-step": 5.0,
// Commands to execute on events
"on-click": "pulsemixer --toggle-mute",
"on-click-right": "pulsemixer --toggle-mute",
"smooth-scrolling-threshold": 1,
},
// waybar-idle-inhibitor
"idle_inhibitor": {
"format": "{icon}",
"format-icons": {
"activated": "💻",
"deactivated": "☕"
},
},
// waybar-wlr-workspaces
"hyprland/workspaces": {
"format": "{icon}",
"sort-by-number": true,
"active-only": false,
"format-icons": {
"1": "I",
"2": "II",
"3": "III",
"4": "IV",
"5": "V",
"6": "VI",
"7": "VII",
"8": "VIII",
"9": "IX",
"10": "X",
"urgent": "",
"focused": "",
"default": ""
},
"on-click": "activate",
},
// waybar-tray
"tray": {
"icon-size": 16,
"spacing": 10
}
}

15
waybar/spotify Executable file
View File

@@ -0,0 +1,15 @@
#!/usr/bin/env bash
## Copyright (C) 2020-2024 Aditya Shakya <adi1090x@gmail.com>
##
## Script for spotify for waybar
player_status=$(playerctl status 2> /dev/null)
if [ "$player_status" = "Playing" ]; then
echo -e " $(playerctl metadata artist) - $(playerctl metadata title)\nPlaying: $(playerctl metadata artist) - $(playerctl metadata title)\nplaying"
elif [ "$player_status" = "Paused" ]; then
echo -e " $(playerctl metadata artist) - $(playerctl metadata title)\nPaused: $(playerctl metadata artist) - $(playerctl metadata title)\npaused"
else
echo -e " Spotify Offline!\nSpotify Offline.\noffline"
fi

314
waybar/style.css Normal file
View File

@@ -0,0 +1,314 @@
/*
* Copyright (C) 2020-2024 Aditya Shakya <adi1090x@gmail.com>
*/
/** ********** Import Colors ********** **/
@import "./colors.css";
/** ********** Fonts ********** **/
* {
font-family: "JetBrains Mono", "Symbols Nerd Font", Iosevka, archcraft, sans-serif;
font-size: 14px;
}
/** ********** Waybar Window ********** **/
window#waybar {
background-color: @background;
color: @foreground;
border-bottom: 2px solid @background-alt1;
transition-property: background-color;
transition-duration: .5s;
}
window#waybar.hidden {
opacity: 0.5;
}
/** ********** Custom ********** **/
#custom-menu {
background-color: @background-alt1;
color: @magenta;
font-size: 18px;
border-radius: 0px 14px 0px 0px;
margin: 0px 0px 0px 0px;
padding: 2px 8px 2px 8px;
}
#custom-themes {
background-color: @selected;
}
#custom-power {
background-color: @red;
font-size: 16px;
}
#custom-power, #custom-themes {
color: @background;
border-radius: 10px;
margin: 6px 6px 6px 0px;
padding: 2px 8px 2px 8px;
}
/** ********** Idle Inhibitor ********** **/
#idle_inhibitor {
background-color: @green;
color: @background;
border-radius: 10px;
margin: 6px 0px 6px 6px ;
padding: 4px 6px;
}
#idle_inhibitor.deactivated {
background-color: @red;
}
/** ********** Tray ********** **/
#tray {
background-color: @background-alt1;
border-radius: 10px;
margin: 6px 0px 6px 6px ;
padding: 4px 6px;
}
#tray > .passive {
-gtk-icon-effect: dim;
}
#tray > .needs-attention {
-gtk-icon-effect: highlight;
}
#tray > .active {
}
/** ********** MPD ********** **/
@keyframes gradient {
0% {
background-position: 0% 50%;
}
50% {
background-position: 100% 50%;
}
100% {
background-position: 0% 50%;
}
}
#mpd {
color: @foreground;
font-size: 12px;
font-weight: bold;
}
#mpd.disconnected {
color: @red;
}
#mpd.stopped {
color: @red;
}
#mpd.playing {
color: @cyan;
}
#mpd.paused {
}
#mpd.2 {
border-radius: 10px 0px 0px 10px;
margin: 6px 0px 6px 6px ;
padding: 4px 6px 4px 10px;
}
#mpd.3 {
margin: 6px 0px 6px 0px ;
padding: 4px;
}
#mpd.4 {
border-radius: 0px 10px 10px 0px;
margin: 6px 6px 6px 0px ;
padding: 4px 10px 4px 6px;
}
#mpd.2,#mpd.3,#mpd.4 {
background-color: @background-alt1;
font-size: 14px;
}
/** ********** Spotify ********** **/
#custom-spotify {
background-color: @background-alt1;
color: @foreground;
border-radius: 10px;
margin: 6px 0px 6px 6px ;
padding: 4px 8px;
font-size: 12px;
font-weight: bold;
}
#custom-spotify.paused {
color: @foreground;
}
#custom-spotify.playing {
background: linear-gradient(90deg, @magenta 25%, @red 50%, @yellow 75%, @cyan 100%);
background-size: 300% 300%;
animation: gradient 10s ease infinite;
color: @background;
}
#custom-spotify.offline {
color: @red;
}
/** ********** CPU ********** **/
#cpu {
color: @red;
}
/** ********** Memory ********** **/
#memory {
color: @green;
}
/** ********** Disk ********** **/
#disk {
color: @yellow;
}
/** ********** Pulseaudio ********** **/
#pulseaudio {
color: @blue;
}
#pulseaudio.bluetooth {
color: @cyan;
}
#pulseaudio.muted {
color: @red;
}
#pulseaudio.2 {
}
#pulseaudio.2.bluetooth {
}
#pulseaudio.2.muted {
}
/** ********** Backlight ********** **/
#backlight {
color: @magenta;
}
/** ********** Battery ********** **/
#battery {
color: @cyan;
}
#battery.charging {
}
#battery.plugged {
}
@keyframes blink {
to {
color: @foreground;
}
}
#battery.critical:not(.charging) {
background-color: @background-alt2;
}
#battery.2.critical:not(.charging) {
background-color: @background-alt1;
color: @red;
animation-name: blink;
animation-duration: 0.5s;
animation-timing-function: linear;
animation-iteration-count: infinite;
animation-direction: alternate;
}
/** ********** Network ********** **/
#network {
color: @yellow;
}
#network.disconnected,#network.disabled {
color: @red;
}
#network.linked {
}
#network.ethernet {
}
#network.wifi {
}
/** ********** Bluetooth ********** **/
#bluetooth {
color: @green;
}
#bluetooth.disabled{
color: @red;
}
#bluetooth.off{
color: @red;
}
#bluetooth.on{
}
#bluetooth.connected{
}
#bluetooth.discoverable{
}
#bluetooth.discovering{
}
#bluetooth.pairable{
}
/** ********** Clock ********** **/
#clock {
color: @blue;
}
/** ********** WLR Desktop ********** **/
#workspaces {
background-color: @background;
border-radius: 10px;
margin-left: 6px ;
margin-bottom: 2px ;
padding: 0px;
}
#workspaces button{
color: @foreground;
}
#workspaces button.active{
color: @red;
}
#workspaces button.urgent{
color: @green;
}
#workspaces button.hidden{
color: @yellow;
}
/** ********** Common style ********** **/
#backlight,
#battery,
#clock,
#cpu,
#disk,
#memory,
#pulseaudio,
#network,
#bluetooth {
background-color: @background-alt2;
border-radius: 10px 0px 0px 10px;
margin: 6px 0px 6px 0px ;
padding: 4px 6px;
}
#backlight.2,
#battery.2,
#clock.2,
#cpu.2,
#disk.2,
#memory.2,
#pulseaudio.2,
#network.2,
#bluetooth.2 {
background-color: @background-alt1;
color: @foreground;
font-size: 12px;
font-weight: bold;
border-radius: 0px 10px 10px 0px;
margin: 6px 6px 6px 0px ;
padding: 5px 6px 4px 6px;
}