refactore directory structure

This commit is contained in:
Chris Cochrun 2023-06-09 06:06:37 -05:00
parent 3830eef1f4
commit e87bfb7c39
485 changed files with 66 additions and 1696 deletions

171
.config/waybar/config Normal file
View file

@ -0,0 +1,171 @@
{
// "layer": "top", // Waybar at top layer
"position": "bottom", // Waybar position (top|bottom|left|right)
"height": 30, // Waybar height (to be removed for auto height)
// "width": 1280, // Waybar width
// Choose the order of the modules "custom/wintitle",
"modules-left": ["workspaces", "hyprland/window"],
"modules-center": ["clock"],
"modules-right": ["pulseaudio", "backlight", "network", "memory", "cpu", "battery", "battery#bat2", "tray"],
"margin-top": -5,
"margin-bottom": 8,
"margin-left": 6,
"margin-right": 6,
// Modules configuration
"sway/workspaces": {
"disable-scroll": true,
"all-outputs": true,
"format": "{icon}",
"format-icons": {
"1": " ",
"2": " ",
"3": " ",
"4": " ",
"5": " ",
"urgent": " ",
"focused": " ",
"default": " "
}
},
"river/tags": {
"num-tags": 8
},
"hyprland/window": {
"format": " {}"
},
"workspaces": {
"format": " {name} "
},
"sway/mode": {
"format": "<span style=\"italic\"> {}</span>"
},
"idle_inhibitor": {
"format": "{icon}",
"format-icons": {
"activated": "",
"deactivated": ""
}
},
"tray": {
"icon-size": 21,
"spacing": 10
},
"clock": {
// "timezone": "America/New_York",
"tooltip-format": "<big>{:%Y %B}</big>\n<tt><small>{calendar}</small></tt>",
"format-alt": "{:%Y-%m-%d}",
"format": "{:%a %b%e, %I:%M %p}"
},
"cpu": {
"format": " {usage}%",
},
"memory": {
"format": " {}%"
},
"temperature": {
// "thermal-zone": 2,
// "hwmon-path": "/sys/class/hwmon/hwmon2/temp1_input",
"critical-threshold": 80,
// "format-critical": "{temperatureC}°C {icon}",
"format": "{temperatureC}°C {icon}",
"format-icons": ["", "", ""]
},
"backlight": {
// "device": "acpi_video1",
"format": "{icon} {percent}%",
"format-icons": ["", ""]
},
"battery": {
"states": {
"good": 95,
"warning": 30,
"critical": 15
},
"format": "{icon} {capacity}%",
"format-charging": " {capacity}%",
"format-plugged": " {capacity}%",
"format-alt": "{time} {icon}",
"format-good": "", // An empty format will hide the module
"format-full": "",
"format-icons": [" ", " ", " ", " ", " "],
"format-charging-icons": [" ", " ", " ", " ", " "]
},
"battery#bat2": {
"bat": "BAT2",
"states": {
// "good": 95,
"warning": 30,
"critical": 15
},
"format": "{icon} {capacity}%",
"format-charging": "{charging-icons} {capacity}%",
"format-plugged": " {capacity}%",
"format-alt": "{time} {icon}",
// "format-good": "", // An empty format will hide the module
// "format-full": "",
"format-icons": [" ", " ", " ", " ", " "],
"format-charging-icons": [" ", " ", " ", " ", " "]
},
"network": {
// "interface": "wlp2*", // (Optional) To force the use of this interface
"format-wifi": " {essid} ({signalStrength}%)",
"format-ethernet": " {ipaddr}",
"format-linked": "{ifname} (No IP) ",
"format-disconnected": "Disconnected ⚠",
"format-alt": "{ifname}: {ipaddr}/{cidr}"
},
"pulseaudio": {
// "scroll-step": 1, // %, can be a float
"format": "{icon} {volume}% {format_source}",
"format-bluetooth": "{icon} {volume}% {format_source}",
"format-bluetooth-muted": " {icon} {format_source}",
"format-muted": "ﱝ muted",
"format-source": " {volume}%",
"format-source-muted": "",
"format-icons": {
"headphone": "",
"hands-free": "",
"headset": "",
"phone": "",
"portable": "",
"car": "",
"default": ["", "", ""]
},
"on-click": "alacritty --class pulsemixer -e pulsemixer"
},
"custom/media": {
"format": "{icon} {}",
"return-type": "json",
"max-length": 40,
"format-icons": {
"spotify": "",
"default": "🎜"
},
"escape": true,
"exec": "$HOME/.config/waybar/mediaplayer.py 2> /dev/null" // Script in resources folder
// "exec": "$HOME/.config/waybar/mediaplayer.py --player spotify 2> /dev/null" // Filter player based on name
},
"custom/wintitle": {
"format": " {icon} {}",
"max-length": 80,
//"format-icons": {
// "spotify": "",
// "default": "🎜"
//},
"interval": 1,
"exec": "/home/chris/bin/wintitle"
},
"wlr/taskbar": {
"format": "{icon}",
"icon-size": 20,
"icon-theme": "Papirus-Dark",
"tooltip-format": "{title}",
"max-length": 10,
"on-click": "activate",
"on-click-middle": "close"
},
"sway/window": {
"format": "{} ",
"max-length": 60,
}
}

207
.config/waybar/style.css Normal file
View file

@ -0,0 +1,207 @@
@define-color base00 #282a36;
@define-color base01 #34353e;
@define-color base02 #43454f;
@define-color base03 #78787e;
@define-color base04 #a5a5a9;
@define-color base05 #e2e4e5;
@define-color base06 #eff0eb;
@define-color base07 #f1f1f0;
@define-color base08 #ff5c57;
@define-color base09 #ff9f43;
@define-color base0A #f3f99d;
@define-color base0B #5af78e;
@define-color base0C #9aedfe;
@define-color base0D #57c7ff;
@define-color base0E #ff6ac1;
@define-color base0F #b2643c;
@define-color basetransparent rgba(40, 42, 54, 0.0);
@define-color backtransparent rgba(40, 42, 54, 0.7);
* {
border: 1px;
border-radius: 20;
font-family: VictorMono Nerd Font;
font-size: 15px;
font-weight: normal;
box-shadow: none;
text-shadow: none;
transition-duration: 0s;
padding-top: 0px;
padding-bottom: 0px;
}
window {
background: transparent;
/* border-radius: 20px; */
}
window#waybar > box {
padding-top: 3px;
padding-bottom: 3px;
color: @base05;
box-shadow: 2px 2px 5px 5px #101010;
margin: 12px 14px 14px 14px;
background: @base00;
}
#workspaces {
border-radius: 20px;
margin-left: 10px;
padding-right: 10px;
background: @backtransparent;
transition: none;
}
#tags {
border-radius: 20px;
margin-left: 6px;
padding-right: 10px;
background: @backtransparent;
transition: none;
}
#workspaces button {
transition: none;
color: rgba(217, 216, 216, 0.4);
background: transparent;
}
#tags button {
transition: none;
color: rgba(217, 216, 216, 0.4);
background: transparent;
}
#workspaces button.visible {
color: rgba(217, 216, 216, 1);
}
#tags button.occupied {
color: rgba(217, 216, 216, 1);
}
#workspaces button.focused {
color: @base0C;
}
#tags button.focused {
color: @base0C;
}
#workspaces button:hover {
transition: none;
box-shadow: inherit;
text-shadow: inherit;
color: @base0E;
}
#workspaces button.urgent {
color: @base08;
}
#mode, #battery, #cpu, #memory, #network, #pulseaudio, #idle_inhibitor, #backlight, #custom-storage, #custom-spotify, #custom-weather, #custom-mail {
margin: 0px 3px 0px 3px;
/* min-width: 25px; */
}
#clock {
margin-left: 2px;
margin-right: 2px;
padding-left: 10px;
padding-right: 10px;
border-radius: 20px;
transition: none;
color: @base0B;
background: @backtransparent;
}
#backlight {
margin-left: 2px;
margin-right: 2px;
padding-left: 5px;
padding-right: 5px;
border-radius: 20px;
transition: none;
color: @base08;
background: @backtransparent;
}
#battery.warning {
color: @base09;
}
#battery.critical {
color: @base08;
}
#battery.charging {
color: @base0B;
}
#pulseaudio {
padding-left: 5px;
padding-right: 5px;
border-radius: 20px;
transition: none;
color: @base09;
background: @backtransparent;
}
#network {
padding-left: 5px;
padding-right: 5px;
border-radius: 20px;
transition: none;
color: @base0B;
background: @backtransparent;
}
#cpu {
padding-left: 5px;
padding-right: 5px;
border-radius: 20px;
transition: none;
color: @base09;
background: @backtransparent;
}
#battery {
padding-left: 5px;
padding-right: 5px;
border-radius: 20px;
transition: none;
color: @base0D;
background: @backtransparent;
}
#battery.bat2 {
margin-right: 10px;
}
#memory {
padding-left: 5px;
padding-right: 5px;
border-radius: 20px;
transition: none;
color: @base0C;
background: @backtransparent;
}
#temperature {
padding-left: 5px;
padding-right: 5px;
border-radius: 20px;
transition: none;
color: @base0E;
background: @backtransparent;
}
#tray {
padding-left: 5px;
padding-right: 5px;
border-radius: 20px;
transition: none;
color: @base0E;
background: @backtransparent;
}