initial commit

This commit is contained in:
wt committed 2024-04-27 19:49:08 +07:00
commit 9b154e1ba6
43 files changed
+4809

No files matched your search

BIN
View File
Binary file not shown.
Binary file not shown.
+110
View File
@@ -0,0 +1,110 @@
{
"layer": "top",
"height": 30,
"spacing": 4,
"modules-left": ["custom/launcher", "cpu", "memory", "temperature", "disk", "hyprland/window"],
"modules-center": ["hyprland/workspaces"],
"modules-right": ["custom/spotify", "pulseaudio", "network", "backlight", "keyboard-state", "hyprland/language", "battery", "battery#bat2", "clock", "tray", "custom/power"],
"hyprland/workspaces": {
"format": "{icon}",
"all-outputs": true,
"on-scroll-up": "hyprctl dispatch workspace e+1",
"on-scroll-down": "hyprctl dispatch workspace e-1"
},
"keyboard-state": {
"numlock": true,
"capslock": true,
"format": "{name} {icon}",
"format-icons": {
"locked": "",
"unlocked": ""
}
},
"tray": {
"spacing": 10
},
"clock": {
"timezone": "Asia/Tomsk",
"tooltip-format": "<big>{:%Y %B}</big>\n<tt><small>{calendar}</small></tt>",
"format-alt": "{:%Y-%m-%d}"
},
"cpu": {
"format": "{usage}% ",
"tooltip": false
},
"memory": {
"format": "{}% "
},
"temperature": {
"critical-threshold": 80,
"format": "{temperatureC}°C {icon}",
"format-icons": ["", "", ""]
},
"backlight": {
"format": "{percent}% {icon}",
"format-icons": ["", "", "", "", "", "", "", "", ""]
},
"battery": {
"states": {
"warning": 30,
"critical": 15
},
"format": "{capacity}% {icon}",
"format-charging": "{capacity}% ",
"format-plugged": "{capacity}% ",
"format-alt": "{time} {icon}",
"format-icons": ["", "", "", "", ""]
},
"battery#bat2": {
"bat": "BAT2"
},
"network": {
"format-wifi": "{essid} ({signalStrength}%) ",
"format-ethernet": "{ipaddr}/{cidr} ",
"tooltip-format": "{ifname} via {gwaddr} ",
"format-linked": "{ifname} (No IP) ",
"format-disconnected": "Disconnected ⚠",
"format-alt": "{ifname}: {ipaddr}/{cidr}"
},
"pulseaudio": {
"format": "{volume}% {icon} {format_source}",
"format-bluetooth": "{volume}% {icon} {format_source}",
"format-bluetooth-muted": " {icon} {format_source}",
"format-muted": " {format_source}",
"format-source": "{volume}% ",
"format-source-muted": "",
"format-icons": {
"headphone": "",
"hands-free": "",
"headset": "",
"phone": "",
"portable": "",
"car": "",
"default": ["", "", ""]
},
"on-click": "pavucontrol"
},
"custom/power": {
"format": "⏻",
"on-click": "~/dotfiles/rofi/powermenu/powermenu.sh"
},
"custom/launcher": {
"format": "",
"on-click": "~/dotfiles/rofi/launcher/launcher.sh"
},
"disk": {
"interval": 30,
"format": "/ {free}",
"unit": "GB"
},
"custom/spotify": {
"format": "{} ",
"exec": "~/.config/waybar/scripts/spotify.sh",
"return-type": "json",
"on-click": "playerctl -p spotify play-pause",
"on-scroll-up": "playerctl -p spotify next",
"on-scroll-down": "playerctl -p spotify previous",
"exec-if": "pgrep spotfiy"
}
}
+17
View File
@@ -0,0 +1,17 @@
#!/bin/bash
while true
do
player_status=$(playerctl -p spotify status 2> /dev/null)
if [ "$player_status" = "Playing" ]; then
artist=$(playerctl -p spotify metadata artist)
title=$(playerctl -p spotify metadata title)
echo '{"text": "'"$artist - $title"'", "class": "custom-spotify", "alt": "Spotify"}'
elif [ "$player_status" = "Paused" ]; then
artist=$(playerctl -p spotify metadata artist)
title=$(playerctl -p spotify metadata title)
echo '{"text": "'"Paused"'", "class": "custom-spotify", "alt": "Spotify (Paused)"}'
fi
sleep 1
done
+330
View File
@@ -0,0 +1,330 @@
* {
/* `otf-font-awesome` is required to be installed for icons */
font-family: FontAwesome, Roboto, Helvetica, Arial, sans-serif;
font-size: 13px;
border-radius: 5px;
}
window#waybar {
background-color: #000000;
opacity: 0.6;
color: #ffffff;
transition-property: background-color;
transition-duration: .5s;
padding: 2px;
}
window#waybar.hidden {
opacity: 0.2;
}
window#waybar.termite {
background-color: #3F3F3F;
}
window#waybar.chromium {
background-color: #000000;
border: none;
}
button {
/* Use box-shadow instead of border so the text isn't offset */
box-shadow: inset 0 -3px transparent;
/* Avoid rounded borders under each button name */
border: none;
border-radius: 5px;
}
#workspaces {
background-color: gray;
border-radius: 25px;
transition: 0.3s;
}
#workspaces button {
padding: 0 15px;
/* background-color: transparent;*/
color: #ffffff;
margin: 2px 2px;
border-radius: 25px;
transition: 0.3s;
}
#workspaces button:hover {
color: white;
}
#workspaces button.focused {
background-color: #64727D;
box-shadow: inset 0 -3px #ffffff;
}
#workspaces button.urgent {
background-color: #eb4d4b;
}
#workspaces button.active {
background-color: white;
color: black;
padding: 0 15px;
}
#workspaces button.active:hover {
color: white;
}
#mode {
background-color: #64727D;
border-bottom: 3px solid #ffffff;
}
#clock,
#battery,
#cpu,
#memory,
#disk,
#temperature,
#backlight,
#network,
#pulseaudio,
#wireplumber,
#custom-media,
#tray,
#mode,
#idle_inhibitor,
#scratchpad,
#custom-power,
#custom-launcher,
#mpd {
padding: 0 10px;
color: #ffffff;
}
#window,
#workspaces {
margin: 0 4px;
}
/* If workspaces is the leftmost module, omit left margin */
.modules-left > widget:first-child > #workspaces {
margin-left: 4px;
}
/* If workspaces is the rightmost module, omit right margin */
.modules-right > widget:last-child > #workspaces {
margin-right: 4px;
}
#clock {
/* background-color: #64727D;*/
}
#battery {
/* background-color: #ffffff;*/
color: #ffffff;
}
#battery.charging, #battery.plugged {
color: #ffffff;
/* background-color: #26A65B;*/
}
@keyframes blink {
to {
/* background-color: #ffffff;*/
color: #ffffff;
}
}
#battery.critical:not(.charging) {
/* background-color: #f53c3c;*/
color: #ffffff;
animation-name: blink;
animation-duration: 0.5s;
animation-timing-function: linear;
animation-iteration-count: infinite;
animation-direction: alternate;
}
label:focus {
/* background-color: #000000;*/
}
#cpu {
/* background-color: #2ecc71;*/
color: #ffffff;
}
#memory {
/* background-color: #9b59b6;*/
}
#disk {
/* background-color: #964B00;*/
}
#backlight {
/* background-color: #90b1b1;*/
}
#network {
/* background-color: #2980b9;*/
}
#network.disconnected {
/* background-color: #f53c3c;*/
}
#pulseaudio {
/* background-color: #f1c40f;*/
color: #ffffff;
}
#pulseaudio.muted {
/* background-color: #90b1b1;*/
color: #2a5c45;
}
#wireplumber {
/* background-color: #fff0f5;*/
color: #000000;
}
#wireplumber.muted {
/* background-color: #f53c3c;*/
}
#custom-media {
/* background-color: #66cc99;*/
color: #2a5c45;
min-width: 100px;
}
#custom-media.custom-spotify {
/* background-color: #66cc99;*/
}
#custom-media.custom-vlc {
/* background-color: #ffa000;*/
}
#temperature {
/* background-color: #f0932b;*/
}
#temperature.critical {
/* background-color: #eb4d4b;*/
}
#tray {
/* background-color: #2980b9;*/
}
#tray > .passive {
-gtk-icon-effect: dim;
}
#tray > .needs-attention {
-gtk-icon-effect: highlight;
/* background-color: #eb4d4b;*/
}
#idle_inhibitor {
/* background-color: #2d3436;*/
}
#idle_inhibitor.activated {
background-color: #ecf0f1;
color: #2d3436;
}
#mpd {
/* background-color: #66cc99;*/
color: #2a5c45;
}
#mpd.disconnected {
/* background-color: #f53c3c;*/
}
#mpd.stopped {
/* background-color: #90b1b1;*/
}
#mpd.paused {
/* background-color: #51a37a;*/
}
#language {
/* background: #00b093;*/
color: #ffffff;
padding: 0 5px;
margin: 0 5px;
min-width: 16px;
}
#keyboard-state {
/* background: #97e1ad;*/
color: #ffffff;
padding: 0 0px;
margin: 0 5px;
min-width: 16px;
}
#keyboard-state > label {
padding: 0 5px;
}
#keyboard-state > label.locked {
/* background: rgba(0, 0, 0, 0.2);*/
}
#scratchpad {
/* background: rgba(0, 0, 0, 0.2);*/
}
#scratchpad.empty {
background-color: transparent;
}
#privacy {
padding: 0;
}
#privacy-item {
padding: 0 5px;
color: white;
}
#privacy-item.screenshare {
background-color: #cf5700;
}
#privacy-item.audio-in {
background-color: #1ca000;
}
#privacy-item.audio-out {
/* background-color: #0069d4;*/
}
#custom-power {
/* background-color: #f0932b;*/
margin: 0 2px;
}
/*#custom-power:hover {
background: blue;
}*/
#custom-launcher {
/* background-color: #f0932b;*/
padding: 0 15px 0 10px;
margin: 0 2px;
}
.custom-spotify {
padding: 2px 12px;
margin: 0 1px;
background-color: black;
}