change folder names, remove cap letter
This commit is contained in:
115
configs/waybar_l/LenovoT460S/shvedes/Scale1.6x/config
Normal file
115
configs/waybar_l/LenovoT460S/shvedes/Scale1.6x/config
Normal file
@@ -0,0 +1,115 @@
|
||||
|
||||
{
|
||||
"layer": "bottom",
|
||||
"position": "top",
|
||||
"height": 28,
|
||||
"reload_style_on_change": true,
|
||||
"height": 4,
|
||||
"margin-top": 4,
|
||||
"margin-left": 10,
|
||||
"margin-right": 10,
|
||||
"modules-left": [ "custom/spotify", "custom/cpu", "memory", "disk" ],
|
||||
"modules-center": [ "hyprland/workspaces" ],
|
||||
"modules-right": [ "battery", "clock#time", "tray", "idle_inhibitor" ],
|
||||
|
||||
"custom/spotify": {
|
||||
"exec": "$HOME/.config/waybar/scripts/spotify.py --player spotify",
|
||||
"format": "<span size='10000' foreground='#98971a'> </span>{}",
|
||||
"return-type": "json",
|
||||
"on-click": "playerctl -p spotify play-pause",
|
||||
"on-scroll-up": "playerctl -p spotify next",
|
||||
"on-scroll-down": "playerctl -p spotify previous",
|
||||
"on-click-right-release": "hyprctl dispatch workspace 6",
|
||||
"tooltip": false
|
||||
},
|
||||
|
||||
"memory": {
|
||||
"interval": 1,
|
||||
"format": "<span foreground='#d79921'> </span>{used:0.1f}GiB"
|
||||
},
|
||||
|
||||
"disk": {
|
||||
"interval": 60,
|
||||
"format": "<span foreground='#d79921'> </span>{used}",
|
||||
"tooltip": false
|
||||
},
|
||||
|
||||
"hyprland/workspaces": {
|
||||
"format": "{icon}",
|
||||
"on-click-release": "activate",
|
||||
"sort-by-numbers": false,
|
||||
"on-scroll-up": "hyprctl dispatch workspace e+1",
|
||||
"on-scroll-down": "hyprctl dispatch workspace e-1",
|
||||
"format-icons": {
|
||||
"1": "I",
|
||||
"2": "II",
|
||||
"3": "III",
|
||||
"4": "IV",
|
||||
"5": "V",
|
||||
"6": "VI",
|
||||
"7": "VII",
|
||||
"8": "VIII",
|
||||
"9": "IX",
|
||||
"10": "X"
|
||||
}
|
||||
},
|
||||
|
||||
/* "network": {
|
||||
"interval": 1,
|
||||
"format-wifi": "<span foreground='#d79921'>{icon} </span>{essid}<span foreground='#d79921'> </span>{bandwidthUpBytes}<span foreground='#d79921'> </span>{bandwidthDownBytes} ",
|
||||
"format-disconnected": "",
|
||||
"format-ethernet": "<span foreground='#d79921'> </span>Connected",
|
||||
"on-click-right-release": "alacritty --class nmtui -T 'Network Settings' -e nmtui",
|
||||
"on-click-release": "$HOME/.config/waybar/scripts/network.sh",
|
||||
"format-icons": [
|
||||
" ",
|
||||
" ",
|
||||
" ",
|
||||
" ",
|
||||
" "
|
||||
]
|
||||
},
|
||||
*/
|
||||
"clock#time": {
|
||||
"interval": 1,
|
||||
"format": "<span foreground='#d79921' size='10000'> </span>{:%I:%M %p} ",
|
||||
"tooltip": false,
|
||||
"on-click-release": "bash $HOME/.config/waybar/scripts/date.sh"
|
||||
|
||||
},
|
||||
|
||||
"custom/cpu": {
|
||||
"exec": "$HOME/.config/waybar/scripts/monitoring/cpu-temp.c",
|
||||
"format": "<span foreground='#d79921'> </span>{}",
|
||||
"tooltip": false
|
||||
},
|
||||
|
||||
"idle_inhibitor": {
|
||||
"format": "{icon}",
|
||||
"format-icons": {
|
||||
"activated": " ",
|
||||
"deactivated":" "
|
||||
}
|
||||
},
|
||||
"battery": {
|
||||
"states": {
|
||||
"good": 95,
|
||||
"warning": 30,
|
||||
"critical": 20
|
||||
},
|
||||
"format": "{icon} {capacity}%",
|
||||
"format-charging": "\udb80\udc84 {capacity}%",
|
||||
"format-plugged": "\udb81\udea5 {capacity}%",
|
||||
"format-alt": "{time} {icon}",
|
||||
"format-icons": ["\udb80\udc7a", "\udb80\udc7b", "\udb80\udc7c", "\udb80\udc7d", "\udb80\udc7e", "\udb80\udc7f", "\udb80\udc80", "\udb80\udc81", "\udb80\udc82", "\udb80\udc79"]
|
||||
},
|
||||
|
||||
"tray": {
|
||||
"icon-size": 14,
|
||||
"spacing": 10,
|
||||
"show-passive-items": true
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
// vim:ft=jsonc
|
||||
7
configs/waybar_l/LenovoT460S/shvedes/Scale1.6x/scripts/date.sh
Executable file
7
configs/waybar_l/LenovoT460S/shvedes/Scale1.6x/scripts/date.sh
Executable file
@@ -0,0 +1,7 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
source $HOME/.local/bin/variables.sh
|
||||
|
||||
DATE=$(date +"%A, %dth %B")
|
||||
|
||||
notify-send -r 2 -i "${ICON}/calendar.svg" "Date" "$DATE"
|
||||
32
configs/waybar_l/LenovoT460S/shvedes/Scale1.6x/scripts/monitoring/cpu-temp.c
Executable file
32
configs/waybar_l/LenovoT460S/shvedes/Scale1.6x/scripts/monitoring/cpu-temp.c
Executable file
@@ -0,0 +1,32 @@
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#include <unistd.h>
|
||||
#include <fcntl.h>
|
||||
#include <string.h>
|
||||
|
||||
int millidegree_to_celsius(int millidegree) {
|
||||
return millidegree / 1000;
|
||||
}
|
||||
|
||||
int main() {
|
||||
while (1) {
|
||||
FILE *file = fopen("SYSFS_PATH", "r");
|
||||
if (file == NULL) {
|
||||
perror("No such file or directory");
|
||||
return 1;
|
||||
}
|
||||
|
||||
int temperature;
|
||||
fscanf(file, "%d", &temperature);
|
||||
fclose(file);
|
||||
|
||||
int celsius = millidegree_to_celsius(temperature);
|
||||
|
||||
printf("%d°C\n", celsius);
|
||||
fflush(stdout);
|
||||
usleep(500000);
|
||||
}
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
@@ -0,0 +1,33 @@
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#include <unistd.h>
|
||||
#include <fcntl.h>
|
||||
#include <string.h>
|
||||
|
||||
int millidegree_to_celsius(int millidegree) {
|
||||
return millidegree / 1000;
|
||||
}
|
||||
|
||||
int main() {
|
||||
while (1) {
|
||||
FILE *file = fopen("SYSFS_PATH", "r");
|
||||
if (file == NULL) {
|
||||
perror("No such file or directory");
|
||||
return 1;
|
||||
}
|
||||
|
||||
int temperature;
|
||||
fscanf(file, "%d", &temperature);
|
||||
fclose(file);
|
||||
|
||||
int celsius = millidegree_to_celsius(temperature);
|
||||
|
||||
printf("%d°C\n", celsius);
|
||||
fflush(stdout);
|
||||
usleep(500000);
|
||||
}
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
||||
11
configs/waybar_l/LenovoT460S/shvedes/Scale1.6x/scripts/network.sh
Executable file
11
configs/waybar_l/LenovoT460S/shvedes/Scale1.6x/scripts/network.sh
Executable file
@@ -0,0 +1,11 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
source $HOME/.local/bin/variables.sh
|
||||
|
||||
COMMAND="$(nmcli connection show | awk 'NR=1 {print $1}' | sed -n '2p')"
|
||||
|
||||
if [[ "$COMMAND" == "Wired" ]]; then
|
||||
notify-send -r 2 -i "${ICON}/ethernet.svg" "Connection" "Ethernet connected"
|
||||
else
|
||||
notify-send -r 2 -i "${ICON}/wifi.svg" "Connection" "Connected to $COMMAND"
|
||||
fi
|
||||
182
configs/waybar_l/LenovoT460S/shvedes/Scale1.6x/scripts/spotify.py
Executable file
182
configs/waybar_l/LenovoT460S/shvedes/Scale1.6x/scripts/spotify.py
Executable file
@@ -0,0 +1,182 @@
|
||||
#!/usr/bin/env python3
|
||||
import gi
|
||||
gi.require_version("Playerctl", "2.0")
|
||||
from gi.repository import Playerctl, GLib
|
||||
from gi.repository.Playerctl import Player
|
||||
import argparse
|
||||
import logging
|
||||
import sys
|
||||
import signal
|
||||
import gi
|
||||
import json
|
||||
import os
|
||||
from typing import List
|
||||
|
||||
logger = logging.getLogger(__name__)
|
||||
|
||||
def signal_handler(sig, frame):
|
||||
logger.info("Received signal to stop, exiting")
|
||||
sys.stdout.write("\n")
|
||||
sys.stdout.flush()
|
||||
# loop.quit()
|
||||
sys.exit(0)
|
||||
|
||||
|
||||
class PlayerManager:
|
||||
def __init__(self, selected_player=None):
|
||||
self.manager = Playerctl.PlayerManager()
|
||||
self.loop = GLib.MainLoop()
|
||||
self.manager.connect(
|
||||
"name-appeared", lambda *args: self.on_player_appeared(*args))
|
||||
self.manager.connect(
|
||||
"player-vanished", lambda *args: self.on_player_vanished(*args))
|
||||
|
||||
signal.signal(signal.SIGINT, signal_handler)
|
||||
signal.signal(signal.SIGTERM, signal_handler)
|
||||
signal.signal(signal.SIGPIPE, signal.SIG_DFL)
|
||||
self.selected_player = selected_player
|
||||
|
||||
self.init_players()
|
||||
|
||||
def init_players(self):
|
||||
for player in self.manager.props.player_names:
|
||||
if self.selected_player is not None and self.selected_player != player.name:
|
||||
logger.debug(f"{player.name} is not the filtered player, skipping it")
|
||||
continue
|
||||
self.init_player(player)
|
||||
|
||||
def run(self):
|
||||
logger.info("Starting main loop")
|
||||
self.loop.run()
|
||||
|
||||
def init_player(self, player):
|
||||
logger.info(f"Initialize new player: {player.name}")
|
||||
player = Playerctl.Player.new_from_name(player)
|
||||
player.connect("playback-status",
|
||||
self.on_playback_status_changed, None)
|
||||
player.connect("metadata", self.on_metadata_changed, None)
|
||||
self.manager.manage_player(player)
|
||||
self.on_metadata_changed(player, player.props.metadata)
|
||||
|
||||
def get_players(self) -> List[Player]:
|
||||
return self.manager.props.players
|
||||
|
||||
def write_output(self, text, player):
|
||||
logger.debug(f"Writing output: {text}")
|
||||
|
||||
output = {"text": text,
|
||||
"class": "custom-" + player.props.player_name,
|
||||
"alt": player.props.player_name}
|
||||
|
||||
sys.stdout.write(json.dumps(output) + "\n")
|
||||
sys.stdout.flush()
|
||||
|
||||
def clear_output(self):
|
||||
sys.stdout.write("\n")
|
||||
sys.stdout.flush()
|
||||
|
||||
def on_playback_status_changed(self, player, status, _=None):
|
||||
logger.debug(f"Playback status changed for player {player.props.player_name}: {status}")
|
||||
self.on_metadata_changed(player, player.props.metadata)
|
||||
|
||||
def get_first_playing_player(self):
|
||||
players = self.get_players()
|
||||
logger.debug(f"Getting first playing player from {len(players)} players")
|
||||
if len(players) > 0:
|
||||
# if any are playing, show the first one that is playing
|
||||
# reverse order, so that the most recently added ones are preferred
|
||||
for player in players[::-1]:
|
||||
if player.props.status == "Playing":
|
||||
return player
|
||||
# if none are playing, show the first one
|
||||
return players[0]
|
||||
else:
|
||||
logger.debug("No players found")
|
||||
return None
|
||||
|
||||
def show_most_important_player(self):
|
||||
logger.debug("Showing most important player")
|
||||
# show the currently playing player
|
||||
# or else show the first paused player
|
||||
# or else show nothing
|
||||
current_player = self.get_first_playing_player()
|
||||
if current_player is not None:
|
||||
self.on_metadata_changed(current_player, current_player.props.metadata)
|
||||
else:
|
||||
self.clear_output()
|
||||
|
||||
def on_metadata_changed(self, player, metadata, _=None):
|
||||
logger.debug(f"Metadata changed for player {player.props.player_name}")
|
||||
player_name = player.props.player_name
|
||||
artist = player.get_artist()
|
||||
title = player.get_title()
|
||||
|
||||
track_info = ""
|
||||
if player_name == "spotify" and "mpris:trackid" in metadata.keys() and ":ad:" in player.props.metadata["mpris:trackid"]:
|
||||
track_info = "Advertisement"
|
||||
elif artist is not None and title is not None:
|
||||
track_info = f"{artist} - {title}"
|
||||
else:
|
||||
track_info = title
|
||||
|
||||
if track_info:
|
||||
if player.props.status == "Playing":
|
||||
track_info = track_info
|
||||
else:
|
||||
track_info = track_info
|
||||
# only print output if no other player is playing
|
||||
current_playing = self.get_first_playing_player()
|
||||
if current_playing is None or current_playing.props.player_name == player.props.player_name:
|
||||
self.write_output(track_info, player)
|
||||
else:
|
||||
logger.debug(f"Other player {current_playing.props.player_name} is playing, skipping")
|
||||
|
||||
def on_player_appeared(self, _, player):
|
||||
logger.info(f"Player has appeared: {player.name}")
|
||||
if player is not None and (self.selected_player is None or player.name == self.selected_player):
|
||||
self.init_player(player)
|
||||
else:
|
||||
logger.debug(
|
||||
"New player appeared, but it's not the selected player, skipping")
|
||||
|
||||
def on_player_vanished(self, _, player):
|
||||
logger.info(f"Player {player.props.player_name} has vanished")
|
||||
self.show_most_important_player()
|
||||
|
||||
def parse_arguments():
|
||||
parser = argparse.ArgumentParser()
|
||||
|
||||
# Increase verbosity with every occurrence of -v
|
||||
parser.add_argument("-v", "--verbose", action="count", default=0)
|
||||
|
||||
# Define for which player we"re listening
|
||||
parser.add_argument("--player")
|
||||
|
||||
parser.add_argument("--enable-logging", action="store_true")
|
||||
|
||||
return parser.parse_args()
|
||||
|
||||
|
||||
def main():
|
||||
arguments = parse_arguments()
|
||||
|
||||
# Initialize logging
|
||||
if arguments.enable_logging:
|
||||
logfile = os.path.join(os.path.dirname(
|
||||
os.path.realpath(__file__)), "media-player.log")
|
||||
logging.basicConfig(filename=logfile, level=logging.DEBUG,
|
||||
format="%(asctime)s %(name)s %(levelname)s:%(lineno)d %(message)s")
|
||||
|
||||
# Logging is set by default to WARN and higher.
|
||||
# With every occurrence of -v it's lowered by one
|
||||
logger.setLevel(max((3 - arguments.verbose) * 10, 0))
|
||||
|
||||
logger.info("Creating player manager")
|
||||
if arguments.player:
|
||||
logger.info(f"Filtering for player: {arguments.player}")
|
||||
player = PlayerManager(arguments.player)
|
||||
player.run()
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
main()
|
||||
67
configs/waybar_l/LenovoT460S/shvedes/Scale1.6x/style.css
Normal file
67
configs/waybar_l/LenovoT460S/shvedes/Scale1.6x/style.css
Normal file
@@ -0,0 +1,67 @@
|
||||
* {
|
||||
border: none;
|
||||
font-family: JetBrainsMono Nerd Font;
|
||||
font-weight: bold;
|
||||
font-size: 12px;
|
||||
min-height: 0;
|
||||
border-radius: 20;
|
||||
padding-right: 4px;
|
||||
padding-left: 4px;
|
||||
}
|
||||
|
||||
tooltip {
|
||||
background: #282828;
|
||||
border: 0px solid;
|
||||
border-radius: 18px;
|
||||
}
|
||||
|
||||
window#waybar {
|
||||
background: #282828;
|
||||
color: #ebdbb2;
|
||||
}
|
||||
|
||||
#workspaces button {
|
||||
padding: 0 0.6em;
|
||||
color: #a89984;
|
||||
background: #504945;
|
||||
border-radius: 0px;
|
||||
margin-right: 4px;
|
||||
margin-left: 4px;
|
||||
margin-top: 2px;
|
||||
margin-bottom: 2px;
|
||||
}
|
||||
|
||||
#workspaces button.active {
|
||||
color: #ebdbb2;
|
||||
background: #665c54;
|
||||
}
|
||||
|
||||
#workspaces button.urgent {
|
||||
color: #1d2021;
|
||||
background: #fb4934;
|
||||
}
|
||||
|
||||
#workspaces button:hover {
|
||||
background: #665c54;
|
||||
}
|
||||
|
||||
#disk,
|
||||
#clock,
|
||||
#memory,
|
||||
/*#network,*/
|
||||
#workspaces,
|
||||
#battery,
|
||||
#idle_inhibitor,
|
||||
#custom-cpu,
|
||||
#custom-spotify,
|
||||
#tray {
|
||||
color: #d5c4a1;
|
||||
background: #433e3c;
|
||||
padding: 0 0.6em;
|
||||
margin-right: 4px;
|
||||
margin-left: 2px;
|
||||
margin-top: 4px;
|
||||
margin-bottom: 4px;
|
||||
border-radius: 18px;
|
||||
}
|
||||
|
||||
5
configs/waybar_l/M1Pro/accmeboot/Scale1.6x/README.md
Normal file
5
configs/waybar_l/M1Pro/accmeboot/Scale1.6x/README.md
Normal file
@@ -0,0 +1,5 @@
|
||||
## [accmeboot's github](https://github.com/accmeboot/dotfiles/tree/main/hyprland)
|
||||
|
||||
## 4/27/24 - I was able to fixed the icon issue, I needed to read abit more about CSS, it works fine now. It open `wofi` with icons enabled
|
||||
|
||||
This config also uses catppucino theme for waybar
|
||||
106
configs/waybar_l/M1Pro/accmeboot/Scale1.6x/config.jsonc
Normal file
106
configs/waybar_l/M1Pro/accmeboot/Scale1.6x/config.jsonc
Normal file
@@ -0,0 +1,106 @@
|
||||
{
|
||||
"layer": "top",
|
||||
"modules-left": ["custom/launcher", "wlr/taskbar", "hyprland/workspaces"],
|
||||
/*"modules-center": ["hyprland/window"],*/
|
||||
"modules-center": ["clock"],
|
||||
"modules-right": ["idle_inhibitor", "custom/cpu", "custom/gpu", "tray", "backlight", "pulseaudio", "battery"],
|
||||
"margin": "0",
|
||||
|
||||
/*"hyprland/window": {
|
||||
"format-empty": "nothing is running",
|
||||
"separate-outputs": true,
|
||||
"icon": true,
|
||||
"icon-size": 11
|
||||
},*/
|
||||
|
||||
"idle_inhibitor": {
|
||||
"format": "{icon}",
|
||||
"format-icons": {
|
||||
"activated": " ",
|
||||
"deactivated":" "
|
||||
}
|
||||
},
|
||||
"pulseaudio": {
|
||||
"tooltip": false,
|
||||
"scroll-step": 5,
|
||||
"format": "{icon} {volume}%",
|
||||
"format-muted": " {volume}%",
|
||||
"on-click":"pavucontrol",
|
||||
"format-icons": {
|
||||
"default": [" ", " ", " "]
|
||||
}
|
||||
},
|
||||
|
||||
"custom/cpu": {
|
||||
"format": "\udb83\udee0 {}℃",
|
||||
"interval": 5,
|
||||
"exec": "bash ~/.config/waybar/scripts/cpu-temp.sh",
|
||||
"on-click": "kitty -e bash -c 'htop; read'"
|
||||
},
|
||||
|
||||
"custom/gpu": {
|
||||
"format": "\udb82\udcae {}℃",
|
||||
"interval": 5,
|
||||
"exec": "bash ~/.config/waybar/scripts/gpu-temp.sh",
|
||||
"on-click": "kitty -e bash -c 'nvtop; read'"
|
||||
},
|
||||
|
||||
"backlight": {
|
||||
"tooltip": false,
|
||||
"format": " {}%",
|
||||
"interval":1,
|
||||
"on-scroll-up": "brightnessctl s +5",
|
||||
"on-scroll-down": "brightnessctl s 5-"
|
||||
},
|
||||
"battery": {
|
||||
"states": {
|
||||
"good": 95,
|
||||
"warning": 30,
|
||||
"critical": 20
|
||||
},
|
||||
"format": "{icon} {capacity}%",
|
||||
"format-charging": "\udb80\udc84 {capacity}%",
|
||||
"format-plugged": "\udb81\udea5 {capacity}%",
|
||||
"format-alt": "{time} {icon}",
|
||||
"format-icons": ["\udb80\udc7a", "\udb80\udc7b", "\udb80\udc7c", "\udb80\udc7d", "\udb80\udc7e", "\udb80\udc7f", "\udb80\udc80", "\udb80\udc81", "\udb80\udc82", "\udb80\udc79"]
|
||||
},
|
||||
|
||||
"clock": {
|
||||
"format": "{:%A %B %d %Y %R}",
|
||||
"on-click": "firefox --new-window https://www.google.com/calendar"
|
||||
},
|
||||
|
||||
"custom/launcher":{
|
||||
"format": " ",
|
||||
"on-click": "hyprctl dispatch exec '[floating] wofi --show drun -normal-window'"
|
||||
},
|
||||
|
||||
"hyprland/workspaces": {
|
||||
"on-click": "activate",
|
||||
"persistent-workspaces": {
|
||||
"eDP-1": [ 1, 2, 3, 4, 5 ],
|
||||
"DP-2": [ 6, 7, 8, 9, 10 ]
|
||||
}
|
||||
},
|
||||
|
||||
"wlr/taskbar": {
|
||||
"format": "{icon}",
|
||||
"icon-size": 11,
|
||||
"tooltip-format": "{title}",
|
||||
"on-click": "activate",
|
||||
"on-click-middle": "close",
|
||||
"app_ids-mapping": {
|
||||
"firefoxdeveloperedition": "firefox-developer-edition"
|
||||
},
|
||||
"ignore-list": ["rofi"],
|
||||
"rewrite": {
|
||||
"Firefox Web Browser": "Firefox",
|
||||
"Foot Server": "Terminal"
|
||||
}
|
||||
},
|
||||
|
||||
"tray": {
|
||||
"icon-size": 11,
|
||||
"spacing": 4
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,3 @@
|
||||
#!/bin/bash
|
||||
|
||||
sensors | awk -F '[+°]' '/^Package id 0:/ {printf "%d\n", $2}'
|
||||
@@ -0,0 +1,3 @@
|
||||
#!/bin/bash
|
||||
|
||||
nvidia-smi --query-gpu=temperature.gpu --format=csv,noheader
|
||||
123
configs/waybar_l/M1Pro/accmeboot/Scale1.6x/style.css
Normal file
123
configs/waybar_l/M1Pro/accmeboot/Scale1.6x/style.css
Normal file
@@ -0,0 +1,123 @@
|
||||
@import "./themes/catppuccin/mocha.css";
|
||||
|
||||
* {
|
||||
font-size: 16px;
|
||||
font-family: IosevkaTermSlab Nerd Font;
|
||||
}
|
||||
|
||||
window#waybar {
|
||||
background: @mantle;
|
||||
border-radius: 0px;
|
||||
}
|
||||
|
||||
window#waybar.empty #window {
|
||||
background-color: transparent;
|
||||
}
|
||||
|
||||
.modules-left {
|
||||
background: @surface0;
|
||||
border-top-right-radius: 14px;
|
||||
border-bottom-right-radius: 14px;
|
||||
padding: 0px 12px 0px 4px;
|
||||
}
|
||||
|
||||
.modules-right {
|
||||
background: @surface0;
|
||||
border-top-left-radius: 14px;
|
||||
border-bottom-left-radius: 14px;
|
||||
padding: 0px 4px 0px 12px;
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
.modules-center {
|
||||
background: transparent;
|
||||
}
|
||||
|
||||
#window {
|
||||
color: @text;
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
#custom-launcher {
|
||||
font-size: 16px;
|
||||
font-weight: bold;
|
||||
color: @blue;
|
||||
}
|
||||
|
||||
#custom-launcher:hover {
|
||||
color: @red;
|
||||
}
|
||||
|
||||
#workspaces button {
|
||||
padding: 0px;
|
||||
border-radius: 0px;
|
||||
margin: 0px;
|
||||
color: @text;
|
||||
font-weight: bold;
|
||||
border-top: 2px solid transparent;
|
||||
border-bottom: 2px solid transparent;
|
||||
}
|
||||
|
||||
#workspaces button.active {
|
||||
color: @mauve;
|
||||
border-bottom: 2px solid @mauve;
|
||||
}
|
||||
|
||||
#taskbar {
|
||||
background: @surface0;
|
||||
padding: 0px 4px 1px;
|
||||
}
|
||||
|
||||
#taskbar button {
|
||||
border-radius: 0px;
|
||||
transition: all 0.3s;
|
||||
padding: 1px 2px 0px 4px;
|
||||
margin: 0px;
|
||||
opacity: 0.3;
|
||||
background: transparent;
|
||||
}
|
||||
|
||||
#taskbar button.active {
|
||||
background: transparent;
|
||||
opacity: 1;
|
||||
}
|
||||
|
||||
#taskbar button:hover {
|
||||
background: @surface3;
|
||||
opacity: 0.8;
|
||||
}
|
||||
|
||||
#custom-pacman {
|
||||
color: @red;
|
||||
margin-right: 8px;
|
||||
}
|
||||
|
||||
#idle_inhibitor {
|
||||
margin: 0px 4px;
|
||||
color: @lavender;
|
||||
}
|
||||
|
||||
#clock,
|
||||
#tray,
|
||||
#backlight,
|
||||
#pulseaudio,
|
||||
#battery,
|
||||
#custom-cpu,
|
||||
#custom-gpu {
|
||||
margin: 0px 4px;
|
||||
}
|
||||
#custom-cpu {
|
||||
color: @lavender;
|
||||
}
|
||||
#custom-gpu {
|
||||
color: @blue;
|
||||
}
|
||||
#backlight,
|
||||
#pulseaudio,
|
||||
#battery {
|
||||
color: @text;
|
||||
}
|
||||
|
||||
#clock {
|
||||
color: @green;
|
||||
}
|
||||
@@ -0,0 +1,26 @@
|
||||
@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;
|
||||
@@ -0,0 +1,7 @@
|
||||
## [accmeboot's github](https://github.com/accmeboot/dotfiles/tree/main/hyprland)
|
||||
|
||||
## 4/27/24 - Custom Arch icon did not worked, it is invisible until the cursor is on top of it
|
||||
|
||||
## 4/27/24 - I was able to fixed the icon issue, I needed to read abit more about CSS, it works fine now. It open `wofi` with icons enabled
|
||||
|
||||
This config also uses catppucino theme for waybar
|
||||
@@ -0,0 +1,99 @@
|
||||
{
|
||||
"layer": "top",
|
||||
"modules-left": ["custom/launcher", "wlr/taskbar", "hyprland/workspaces"],
|
||||
/*"modules-center": ["hyprland/window"],*/
|
||||
"modules-center": ["clock"],
|
||||
"modules-right": ["custom/cpu", "custom/gpu", "tray", "backlight", "pulseaudio", "battery"],
|
||||
"margin": "0",
|
||||
|
||||
/*"hyprland/window": {
|
||||
"format-empty": "nothing is running",
|
||||
"separate-outputs": true,
|
||||
"icon": true,
|
||||
"icon-size": 11
|
||||
},*/
|
||||
|
||||
"pulseaudio": {
|
||||
"tooltip": false,
|
||||
"scroll-step": 5,
|
||||
"format": "{icon} {volume}%",
|
||||
"format-muted": " {volume}%",
|
||||
"on-click":"pavucontrol",
|
||||
"format-icons": {
|
||||
"default": [" ", " ", " "]
|
||||
}
|
||||
},
|
||||
|
||||
"custom/cpu": {
|
||||
"format": "\udb83\udee0 {}℃",
|
||||
"interval": 5,
|
||||
"exec": "bash ~/.config/waybar/scripts/cpu-temp.sh",
|
||||
"on-click": "kitty -e bash -c 'htop; read'"
|
||||
},
|
||||
|
||||
"custom/gpu": {
|
||||
"format": "\udb82\udcae {}℃",
|
||||
"interval": 5,
|
||||
"exec": "bash ~/.config/waybar/scripts/gpu-temp.sh",
|
||||
"on-click": "kitty -e bash -c 'nvtop; read'"
|
||||
},
|
||||
|
||||
"backlight": {
|
||||
"tooltip": false,
|
||||
"format": " {}%",
|
||||
"interval":1,
|
||||
"on-scroll-up": "brightnessctl s +5",
|
||||
"on-scroll-down": "brightnessctl s 5-"
|
||||
},
|
||||
"battery": {
|
||||
"states": {
|
||||
"good": 95,
|
||||
"warning": 30,
|
||||
"critical": 20
|
||||
},
|
||||
"format": "{icon} {capacity}%",
|
||||
"format-charging": "\udb80\udc84 {capacity}%",
|
||||
"format-plugged": "\udb81\udea5 {capacity}%",
|
||||
"format-alt": "{time} {icon}",
|
||||
"format-icons": ["\udb80\udc7a", "\udb80\udc7b", "\udb80\udc7c", "\udb80\udc7d", "\udb80\udc7e", "\udb80\udc7f", "\udb80\udc80", "\udb80\udc81", "\udb80\udc82", "\udb80\udc79"]
|
||||
},
|
||||
|
||||
"clock": {
|
||||
"format": "{:%A %B %d %Y %R}",
|
||||
"on-click": "firefox --new-window https://www.google.com/calendar"
|
||||
},
|
||||
|
||||
"custom/launcher":{
|
||||
"format": " ",
|
||||
"on-click": "hyprctl dispatch exec '[floating] wofi --show drun -normal-window'"
|
||||
},
|
||||
|
||||
"hyprland/workspaces": {
|
||||
"on-click": "activate",
|
||||
"persistent-workspaces": {
|
||||
"eDP-1": [ 1, 2, 3, 4, 5 ],
|
||||
"DP-2": [ 6, 7, 8, 9, 10 ]
|
||||
}
|
||||
},
|
||||
|
||||
"wlr/taskbar": {
|
||||
"format": "{icon}",
|
||||
"icon-size": 11,
|
||||
"tooltip-format": "{title}",
|
||||
"on-click": "activate",
|
||||
"on-click-middle": "close",
|
||||
"app_ids-mapping": {
|
||||
"firefoxdeveloperedition": "firefox-developer-edition"
|
||||
},
|
||||
"ignore-list": ["rofi"],
|
||||
"rewrite": {
|
||||
"Firefox Web Browser": "Firefox",
|
||||
"Foot Server": "Terminal"
|
||||
}
|
||||
},
|
||||
|
||||
"tray": {
|
||||
"icon-size": 11,
|
||||
"spacing": 4
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,3 @@
|
||||
#!/bin/bash
|
||||
|
||||
sensors | awk -F '[+°]' '/^Package id 0:/ {printf "%d\n", $2}'
|
||||
@@ -0,0 +1,3 @@
|
||||
#!/bin/bash
|
||||
|
||||
nvidia-smi --query-gpu=temperature.gpu --format=csv,noheader
|
||||
119
configs/waybar_l/M1Pro/accmeboot/accmeboot_original/style.css
Normal file
119
configs/waybar_l/M1Pro/accmeboot/accmeboot_original/style.css
Normal file
@@ -0,0 +1,119 @@
|
||||
@import "./themes/catppuccin/mocha.css";
|
||||
|
||||
* {
|
||||
font-size: 11px;
|
||||
font-family: IosevkaTermSlab Nerd Font;
|
||||
font-size: 12px;
|
||||
}
|
||||
|
||||
window#waybar {
|
||||
background: @mantle;
|
||||
border-radius: 0px;
|
||||
}
|
||||
|
||||
window#waybar.empty #window {
|
||||
background-color: transparent;
|
||||
}
|
||||
|
||||
.modules-left {
|
||||
background: @surface0;
|
||||
border-top-right-radius: 14px;
|
||||
border-bottom-right-radius: 14px;
|
||||
padding: 0px 12px 0px 4px;
|
||||
}
|
||||
|
||||
.modules-right {
|
||||
background: @surface0;
|
||||
border-top-left-radius: 14px;
|
||||
border-bottom-left-radius: 14px;
|
||||
padding: 0px 4px 0px 12px;
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
.modules-center {
|
||||
background: transparent;
|
||||
}
|
||||
|
||||
#window {
|
||||
color: @text;
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
#custom-launcher {
|
||||
font-size: 16px;
|
||||
font-weight: bold;
|
||||
color: @blue;
|
||||
}
|
||||
|
||||
#custom-launcher:hover {
|
||||
color: @red;
|
||||
}
|
||||
|
||||
#workspaces button {
|
||||
padding: 0px;
|
||||
border-radius: 0px;
|
||||
margin: 0px;
|
||||
color: @text;
|
||||
font-weight: bold;
|
||||
border-top: 2px solid transparent;
|
||||
border-bottom: 2px solid transparent;
|
||||
}
|
||||
|
||||
#workspaces button.active {
|
||||
color: @mauve;
|
||||
border-bottom: 2px solid @mauve;
|
||||
}
|
||||
|
||||
#taskbar {
|
||||
background: @surface0;
|
||||
padding: 0px 4px 1px;
|
||||
}
|
||||
|
||||
#taskbar button {
|
||||
border-radius: 0px;
|
||||
transition: all 0.3s;
|
||||
padding: 1px 2px 0px 4px;
|
||||
margin: 0px;
|
||||
opacity: 0.3;
|
||||
background: transparent;
|
||||
}
|
||||
|
||||
#taskbar button.active {
|
||||
background: transparent;
|
||||
opacity: 1;
|
||||
}
|
||||
|
||||
#taskbar button:hover {
|
||||
background: @surface3;
|
||||
opacity: 0.8;
|
||||
}
|
||||
|
||||
#custom-pacman {
|
||||
color: @red;
|
||||
margin-right: 8px;
|
||||
}
|
||||
|
||||
#clock,
|
||||
#tray,
|
||||
#backlight,
|
||||
#pulseaudio,
|
||||
#battery,
|
||||
#custom-cpu,
|
||||
#custom-gpu {
|
||||
margin: 0px 4px;
|
||||
}
|
||||
#custom-cpu {
|
||||
color: @lavender;
|
||||
}
|
||||
#custom-gpu {
|
||||
color: @blue;
|
||||
}
|
||||
#backlight,
|
||||
#pulseaudio,
|
||||
#battery {
|
||||
color: @text;
|
||||
}
|
||||
|
||||
#clock {
|
||||
color: @green;
|
||||
}
|
||||
@@ -0,0 +1,26 @@
|
||||
@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;
|
||||
36
configs/waybar_l/M1Pro/shub39/Scale1.6x/config
Normal file
36
configs/waybar_l/M1Pro/shub39/Scale1.6x/config
Normal file
@@ -0,0 +1,36 @@
|
||||
{
|
||||
"include": "~/.config/waybar/modules",
|
||||
"layer": "top",
|
||||
"exclusive": true,
|
||||
"passthrough": false,
|
||||
"position": "top",
|
||||
"spacing": 3,
|
||||
"fixed-center": true,
|
||||
"ipc": true,
|
||||
"margin-top": 0,
|
||||
"margin-left": 0,
|
||||
"margin-right": 0,
|
||||
"margin-bottom": 0,
|
||||
|
||||
"modules-left": [
|
||||
"hyprland/workspaces",
|
||||
"clock",
|
||||
"custom/cava",
|
||||
"mpris"
|
||||
],
|
||||
|
||||
"modules-center": [
|
||||
"hyprland/window"
|
||||
],
|
||||
|
||||
"modules-right": [
|
||||
"wlr/taskbar",
|
||||
"cpu",
|
||||
"temperature",
|
||||
"memory",
|
||||
"custom/swaync",
|
||||
"pulseaudio",
|
||||
"bluetooth",
|
||||
"idle_inhibitor"
|
||||
]
|
||||
}
|
||||
174
configs/waybar_l/M1Pro/shub39/Scale1.6x/modules
Normal file
174
configs/waybar_l/M1Pro/shub39/Scale1.6x/modules
Normal file
@@ -0,0 +1,174 @@
|
||||
{
|
||||
"hyprland/workspaces": {
|
||||
"active-only": true,
|
||||
"all-outputs": false,
|
||||
"show-special": false,
|
||||
"on-click": "activate",
|
||||
"on-scroll-up": "hyprctl dispatch workspace e+1",
|
||||
"on-scroll-down": "hyprctl dispatch workspace e-1",
|
||||
},
|
||||
|
||||
"bluetooth": {
|
||||
"format": " ",
|
||||
"format-disabled": " ",
|
||||
"format-connected": " {num_connections} ",
|
||||
"tooltip-format": " {device_alias}",
|
||||
"tooltip-format-connected": "{device_enumerate}",
|
||||
"tooltip-format-enumerate-connected": " {device_alias} {device_battery_percentage}%",
|
||||
"tooltip": true,
|
||||
"on-click": "blueman-manager"
|
||||
},
|
||||
|
||||
"idle_inhibitor": {
|
||||
"format": "{icon}",
|
||||
"format-icons": {
|
||||
"activated": " ",
|
||||
"deactivated":" "
|
||||
}
|
||||
},
|
||||
|
||||
"clock": {
|
||||
"interval": 1,
|
||||
"format": " {:%H:%M} ",
|
||||
"format-alt": " {:%H:%M %Y, %d %B, %A} ",
|
||||
"tooltip-format": "<tt><small>{calendar}</small></tt>",
|
||||
"calendar": {
|
||||
"mode" : "year",
|
||||
"mode-mon-col" : 3,
|
||||
"weeks-pos" : "right",
|
||||
"on-scroll" : 1,
|
||||
"format": {
|
||||
"days": "<span color='#ebdbb2'><b>{}</b></span>",
|
||||
"weeks": "<span color='#99ffdd'><b>W{}</b></span>",
|
||||
"weekdays": "<span color='#ebdbb2'><b>{}</b></span>",
|
||||
"today": "<span color='#ff6699'><b><u>{}</u></b></span>"
|
||||
}
|
||||
}
|
||||
},
|
||||
"actions": {
|
||||
"on-click-right": "mode",
|
||||
"on-click-forward": "tz_up",
|
||||
"on-click-backward": "tz_down",
|
||||
"on-scroll-up": "shift_up",
|
||||
"on-scroll-down": "shift_down"
|
||||
},
|
||||
|
||||
"cpu": {
|
||||
"format": " {usage}% ",
|
||||
"interval": 1,
|
||||
"on-click-right": "gnome-system-monitor"
|
||||
},
|
||||
|
||||
"hyprland/window": {
|
||||
"format": " {} ",
|
||||
"max-length": 60,
|
||||
"separate-outputs": true,
|
||||
"offscreen-css" : true,
|
||||
"offscreen-css-text": "(inactive)",
|
||||
"rewrite": {
|
||||
"(.*) — Mozilla Firefox": " $1",
|
||||
"(.*) - fish": "> [$1]",
|
||||
"(.*) - zsh": "> [$1]",
|
||||
"(.*) - kitty": "> [$1]"
|
||||
}
|
||||
},
|
||||
|
||||
"memory": {
|
||||
"interval": 10,
|
||||
"format": " {percentage}% ",
|
||||
"format-alt-click": "click",
|
||||
"tooltip": true,
|
||||
"tooltip-format": "{used:0.1f}GB/{total:0.1f}G",
|
||||
"on-click-right": "kitty -c ~/.config/dotfiles/kitty/kitty.conf --title btop sh -c 'btop'"
|
||||
},
|
||||
|
||||
"mpris": {
|
||||
"interval": 10,
|
||||
"format": " {title} ",
|
||||
"format-paused": " {title} {status_icon} ",
|
||||
"on-click": "playerctl play-pause",
|
||||
"on-click-right": "playerctl next",
|
||||
"scroll-step": 5.0,
|
||||
"smooth-scrolling-threshold": 1,
|
||||
"status-icons": {
|
||||
"paused": "",
|
||||
"playing": "",
|
||||
"stopped": ""
|
||||
},
|
||||
"max-length": 30
|
||||
},
|
||||
|
||||
|
||||
"pulseaudio": {
|
||||
"format": " {volume}% {icon} ",
|
||||
"format-bluetooth": " {volume}% {icon} ",
|
||||
"format-muted": "",
|
||||
"format-icons": {
|
||||
"headphone": "",
|
||||
"hands-free": "",
|
||||
"headset": "",
|
||||
"phone": "",
|
||||
"portable": "",
|
||||
"car": "",
|
||||
"default": ["", "", "", ""],
|
||||
"ignored-sinks": ["Easy Effects Sink"]
|
||||
},
|
||||
"scroll-step": 5.0,
|
||||
"on-click": "pavucontrol -t 3",
|
||||
"tooltip-format": "{icon} {desc} | {volume}%",
|
||||
"smooth-scrolling-threshold": 1
|
||||
},
|
||||
|
||||
"temperature": {
|
||||
"interval": 10,
|
||||
"tooltip": true,
|
||||
"hwmon-path": ["/sys/class/hwmon/hwmon1/temp1_input", "/sys/class/thermal/thermal_zone0/temp"],
|
||||
"critical-threshold": 82,
|
||||
"format-critical": "{temperatureC}°C {icon}",
|
||||
"format": " {temperatureC}°C {icon} ",
|
||||
"format-icons": [""],
|
||||
"on-click-right": "kitty -c ~/.config/dotfiles/kitty/kitty.conf --title nvtop sh -c 'nvtop'"
|
||||
},
|
||||
|
||||
"custom/swaync": {
|
||||
"tooltip":true,
|
||||
"format": " {} {icon} ",
|
||||
"format-icons": {
|
||||
"notification": "<span foreground='red'><sup></sup></span>",
|
||||
"none": "",
|
||||
"dnd-notification": "<span foreground='red'><sup></sup></span>",
|
||||
"dnd-none": "",
|
||||
"inhibited-notification": "<span foreground='red'><sup></sup></span>",
|
||||
"inhibited-none": "",
|
||||
"dnd-inhibited-notification": "<span foreground='red'><sup></sup></span>",
|
||||
"dnd-inhibited-none": ""
|
||||
},
|
||||
"return-type": "json",
|
||||
"exec-if": "which swaync-client",
|
||||
"exec": "swaync-client -swb",
|
||||
"on-click": "sleep 0.1 && swaync-client -t -sw",
|
||||
"on-click-right": "swaync-client -d -sw",
|
||||
"escape": true
|
||||
},
|
||||
|
||||
"wlr/taskbar": {
|
||||
"format": " {icon} ",
|
||||
"icon-size": 20,
|
||||
"all-outputs": false,
|
||||
"tooltip-format": "{title}",
|
||||
"on-click": "activate",
|
||||
"on-click-middle": "close",
|
||||
"ignore-list": [
|
||||
"wofi",
|
||||
"rofi",
|
||||
"org.mozilla.firefox",
|
||||
"kitty"
|
||||
]
|
||||
},
|
||||
|
||||
"custom/cava": {
|
||||
"exec": "~/.config/dotfiles/hyprland/scripts/waybarCava.sh",
|
||||
"format": "{}",
|
||||
"on-click": "kitty -c ~/.config/dotfiles/kitty/kitty.conf nvim -c cd ~/.config/dotfiles/"
|
||||
}
|
||||
}
|
||||
83
configs/waybar_l/M1Pro/shub39/Scale1.6x/style.css
Normal file
83
configs/waybar_l/M1Pro/shub39/Scale1.6x/style.css
Normal file
@@ -0,0 +1,83 @@
|
||||
* {
|
||||
font-family: "Iosevka Nerd Font";
|
||||
font-weight: bold;
|
||||
min-height: 0;
|
||||
font-size: 102%;
|
||||
font-feature-settings: '"zero", "ss01", "ss02", "ss03", "ss04", "ss05", "cv31"';
|
||||
padding: 1px;
|
||||
}
|
||||
|
||||
window#waybar {
|
||||
background-color: rgba(0, 0, 0, 0);
|
||||
transition-property: background-color;
|
||||
transition-duration: .5s;
|
||||
}
|
||||
|
||||
window#waybar.hidden {
|
||||
opacity: 0.5;
|
||||
}
|
||||
|
||||
window#waybar.empty {
|
||||
background-color: transparent;
|
||||
}
|
||||
|
||||
window#waybar.empty #window {
|
||||
padding: 0px;
|
||||
border: 0px;
|
||||
background-color: transparent;
|
||||
}
|
||||
|
||||
tooltip {
|
||||
opacity: 1;
|
||||
border-radius: 10px;
|
||||
}
|
||||
|
||||
tooltip label{
|
||||
padding: 10px;
|
||||
color: #ebdbb2;
|
||||
}
|
||||
|
||||
#custom-cava,
|
||||
#clock,
|
||||
#cpu,
|
||||
#memory,
|
||||
#mpris,
|
||||
#network,
|
||||
#pulseaudio,
|
||||
#bluetooth,
|
||||
#idle_inhibitor,
|
||||
#temperature,
|
||||
#workspaces,
|
||||
#custom-menu,
|
||||
#custom-swaync{
|
||||
border-radius: 10px;
|
||||
color: #ebdbb2;
|
||||
padding-top: 3px;
|
||||
padding-bottom: 3px;
|
||||
padding-left: 6px;
|
||||
padding-right: 6px;
|
||||
}
|
||||
|
||||
#window{
|
||||
color: #ebdbb2;
|
||||
padding-top: 3px;
|
||||
padding-bottom: 3px;
|
||||
padding-right: 6px;
|
||||
padding-left: 6px;
|
||||
border-radius: 12px;
|
||||
}
|
||||
|
||||
#workspaces button {
|
||||
margin: 1px;
|
||||
box-shadow: none;
|
||||
text-shadow: none;
|
||||
border-radius: 12px;
|
||||
padding-left: 6px;
|
||||
padding-right: 6px;
|
||||
background-color: #ebdbb2;
|
||||
color: #282828;
|
||||
}
|
||||
|
||||
#temperature.critical {
|
||||
background-color: red;
|
||||
}
|
||||
34
configs/waybar_l/M1Pro/shub39/shub39_original/config
Normal file
34
configs/waybar_l/M1Pro/shub39/shub39_original/config
Normal file
@@ -0,0 +1,34 @@
|
||||
{
|
||||
"include": "~/.config/dotfiles/waybar/modules",
|
||||
"layer": "top",
|
||||
"exclusive": true,
|
||||
"passthrough": false,
|
||||
"position": "top",
|
||||
"spacing": 3,
|
||||
"fixed-center": true,
|
||||
"ipc": true,
|
||||
"margin-top": 0,
|
||||
"margin-left": 0,
|
||||
"margin-right": 0,
|
||||
"margin-bottom": 0,
|
||||
|
||||
"modules-left": [
|
||||
"hyprland/workspaces",
|
||||
"clock",
|
||||
"custom/cava",
|
||||
"mpris"
|
||||
],
|
||||
|
||||
"modules-center": [
|
||||
"hyprland/window"
|
||||
],
|
||||
|
||||
"modules-right": [
|
||||
"wlr/taskbar",
|
||||
"cpu",
|
||||
"temperature",
|
||||
"memory",
|
||||
"custom/swaync",
|
||||
"pulseaudio"
|
||||
]
|
||||
}
|
||||
166
configs/waybar_l/M1Pro/shub39/shub39_original/modules
Normal file
166
configs/waybar_l/M1Pro/shub39/shub39_original/modules
Normal file
@@ -0,0 +1,166 @@
|
||||
{
|
||||
"hyprland/workspaces": {
|
||||
"active-only": true,
|
||||
"all-outputs": false,
|
||||
"show-special": false,
|
||||
"on-click": "activate",
|
||||
"on-scroll-up": "hyprctl dispatch workspace e+1",
|
||||
"on-scroll-down": "hyprctl dispatch workspace e-1",
|
||||
},
|
||||
|
||||
"bluetooth": {
|
||||
"format": " ",
|
||||
"format-disabled": " ",
|
||||
"format-connected": " {num_connections} ",
|
||||
"tooltip-format": " {device_alias}",
|
||||
"tooltip-format-connected": "{device_enumerate}",
|
||||
"tooltip-format-enumerate-connected": " {device_alias} {device_battery_percentage}%",
|
||||
"tooltip": true,
|
||||
"on-click": "blueman-manager"
|
||||
},
|
||||
|
||||
"clock": {
|
||||
"interval": 1,
|
||||
"format": " {:%H:%M} ",
|
||||
"format-alt": " {:%H:%M %Y, %d %B, %A} ",
|
||||
"tooltip-format": "<tt><small>{calendar}</small></tt>",
|
||||
"calendar": {
|
||||
"mode" : "year",
|
||||
"mode-mon-col" : 3,
|
||||
"weeks-pos" : "right",
|
||||
"on-scroll" : 1,
|
||||
"format": {
|
||||
"days": "<span color='#ebdbb2'><b>{}</b></span>",
|
||||
"weeks": "<span color='#99ffdd'><b>W{}</b></span>",
|
||||
"weekdays": "<span color='#ebdbb2'><b>{}</b></span>",
|
||||
"today": "<span color='#ff6699'><b><u>{}</u></b></span>"
|
||||
}
|
||||
}
|
||||
},
|
||||
"actions": {
|
||||
"on-click-right": "mode",
|
||||
"on-click-forward": "tz_up",
|
||||
"on-click-backward": "tz_down",
|
||||
"on-scroll-up": "shift_up",
|
||||
"on-scroll-down": "shift_down"
|
||||
},
|
||||
|
||||
"cpu": {
|
||||
"format": " {usage}% ",
|
||||
"interval": 1,
|
||||
"on-click-right": "gnome-system-monitor"
|
||||
},
|
||||
|
||||
"hyprland/window": {
|
||||
"format": " {} ",
|
||||
"max-length": 60,
|
||||
"separate-outputs": true,
|
||||
"offscreen-css" : true,
|
||||
"offscreen-css-text": "(inactive)",
|
||||
"rewrite": {
|
||||
"(.*) — Mozilla Firefox": " $1",
|
||||
"(.*) - fish": "> [$1]",
|
||||
"(.*) - zsh": "> [$1]",
|
||||
"(.*) - kitty": "> [$1]"
|
||||
}
|
||||
},
|
||||
|
||||
"memory": {
|
||||
"interval": 10,
|
||||
"format": " {percentage}% ",
|
||||
"format-alt-click": "click",
|
||||
"tooltip": true,
|
||||
"tooltip-format": "{used:0.1f}GB/{total:0.1f}G",
|
||||
"on-click-right": "kitty -c ~/.config/dotfiles/kitty/kitty.conf --title btop sh -c 'btop'"
|
||||
},
|
||||
|
||||
"mpris": {
|
||||
"interval": 10,
|
||||
"format": " {title} ",
|
||||
"format-paused": " {title} {status_icon} ",
|
||||
"on-click": "playerctl play-pause",
|
||||
"on-click-right": "playerctl next",
|
||||
"scroll-step": 5.0,
|
||||
"smooth-scrolling-threshold": 1,
|
||||
"status-icons": {
|
||||
"paused": "",
|
||||
"playing": "",
|
||||
"stopped": ""
|
||||
},
|
||||
"max-length": 30
|
||||
},
|
||||
|
||||
|
||||
"pulseaudio": {
|
||||
"format": " {volume}% {icon} ",
|
||||
"format-bluetooth": " {volume}% {icon} ",
|
||||
"format-muted": "",
|
||||
"format-icons": {
|
||||
"headphone": "",
|
||||
"hands-free": "",
|
||||
"headset": "",
|
||||
"phone": "",
|
||||
"portable": "",
|
||||
"car": "",
|
||||
"default": ["", "", "", ""],
|
||||
"ignored-sinks": ["Easy Effects Sink"]
|
||||
},
|
||||
"scroll-step": 5.0,
|
||||
"on-click": "pavucontrol -t 3",
|
||||
"tooltip-format": "{icon} {desc} | {volume}%",
|
||||
"smooth-scrolling-threshold": 1
|
||||
},
|
||||
|
||||
"temperature": {
|
||||
"interval": 10,
|
||||
"tooltip": true,
|
||||
"hwmon-path": ["/sys/class/hwmon/hwmon1/temp1_input", "/sys/class/thermal/thermal_zone0/temp"],
|
||||
"critical-threshold": 82,
|
||||
"format-critical": "{temperatureC}°C {icon}",
|
||||
"format": " {temperatureC}°C {icon} ",
|
||||
"format-icons": [""],
|
||||
"on-click-right": "kitty -c ~/.config/dotfiles/kitty/kitty.conf --title nvtop sh -c 'nvtop'"
|
||||
},
|
||||
|
||||
"custom/swaync": {
|
||||
"tooltip":true,
|
||||
"format": " {} {icon} ",
|
||||
"format-icons": {
|
||||
"notification": "<span foreground='red'><sup></sup></span>",
|
||||
"none": "",
|
||||
"dnd-notification": "<span foreground='red'><sup></sup></span>",
|
||||
"dnd-none": "",
|
||||
"inhibited-notification": "<span foreground='red'><sup></sup></span>",
|
||||
"inhibited-none": "",
|
||||
"dnd-inhibited-notification": "<span foreground='red'><sup></sup></span>",
|
||||
"dnd-inhibited-none": ""
|
||||
},
|
||||
"return-type": "json",
|
||||
"exec-if": "which swaync-client",
|
||||
"exec": "swaync-client -swb",
|
||||
"on-click": "sleep 0.1 && swaync-client -t -sw",
|
||||
"on-click-right": "swaync-client -d -sw",
|
||||
"escape": true
|
||||
},
|
||||
|
||||
"wlr/taskbar": {
|
||||
"format": " {icon} ",
|
||||
"icon-size": 20,
|
||||
"all-outputs": false,
|
||||
"tooltip-format": "{title}",
|
||||
"on-click": "activate",
|
||||
"on-click-middle": "close",
|
||||
"ignore-list": [
|
||||
"wofi",
|
||||
"rofi",
|
||||
"org.mozilla.firefox",
|
||||
"kitty"
|
||||
]
|
||||
},
|
||||
|
||||
"custom/cava": {
|
||||
"exec": "~/.config/dotfiles/hyprland/scripts/waybarCava.sh",
|
||||
"format": "{}",
|
||||
"on-click": "kitty -c ~/.config/dotfiles/kitty/kitty.conf nvim -c cd ~/.config/dotfiles/"
|
||||
}
|
||||
}
|
||||
81
configs/waybar_l/M1Pro/shub39/shub39_original/style.css
Normal file
81
configs/waybar_l/M1Pro/shub39/shub39_original/style.css
Normal file
@@ -0,0 +1,81 @@
|
||||
* {
|
||||
font-family: "JetBrains Mono";
|
||||
font-weight: bold;
|
||||
min-height: 0;
|
||||
font-size: 102%;
|
||||
font-feature-settings: '"zero", "ss01", "ss02", "ss03", "ss04", "ss05", "cv31"';
|
||||
padding: 1px;
|
||||
}
|
||||
|
||||
window#waybar {
|
||||
background-color: rgba(0, 0, 0, 0);
|
||||
transition-property: background-color;
|
||||
transition-duration: .5s;
|
||||
}
|
||||
|
||||
window#waybar.hidden {
|
||||
opacity: 0.5;
|
||||
}
|
||||
|
||||
window#waybar.empty {
|
||||
background-color: transparent;
|
||||
}
|
||||
|
||||
window#waybar.empty #window {
|
||||
padding: 0px;
|
||||
border: 0px;
|
||||
background-color: transparent;
|
||||
}
|
||||
|
||||
tooltip {
|
||||
opacity: 1;
|
||||
border-radius: 10px;
|
||||
}
|
||||
|
||||
tooltip label{
|
||||
padding: 10px;
|
||||
color: #ebdbb2;
|
||||
}
|
||||
|
||||
#custom-cava,
|
||||
#clock,
|
||||
#cpu,
|
||||
#memory,
|
||||
#mpris,
|
||||
#network,
|
||||
#pulseaudio,
|
||||
#temperature,
|
||||
#workspaces,
|
||||
#custom-menu,
|
||||
#custom-swaync{
|
||||
border-radius: 10px;
|
||||
color: #ebdbb2;
|
||||
padding-top: 3px;
|
||||
padding-bottom: 3px;
|
||||
padding-left: 6px;
|
||||
padding-right: 6px;
|
||||
}
|
||||
|
||||
#window{
|
||||
color: #ebdbb2;
|
||||
padding-top: 3px;
|
||||
padding-bottom: 3px;
|
||||
padding-right: 6px;
|
||||
padding-left: 6px;
|
||||
border-radius: 12px;
|
||||
}
|
||||
|
||||
#workspaces button {
|
||||
margin: 1px;
|
||||
box-shadow: none;
|
||||
text-shadow: none;
|
||||
border-radius: 12px;
|
||||
padding-left: 6px;
|
||||
padding-right: 6px;
|
||||
background-color: #ebdbb2;
|
||||
color: #282828;
|
||||
}
|
||||
|
||||
#temperature.critical {
|
||||
background-color: red;
|
||||
}
|
||||
3
configs/waybar_l/M1Pro/shvedes/Scale1.6x/README.md
Normal file
3
configs/waybar_l/M1Pro/shvedes/Scale1.6x/README.md
Normal file
@@ -0,0 +1,3 @@
|
||||
## [shvedes's github](https://github.com/shvedes/dotfiles)
|
||||
|
||||
### 5/12/24 - Unable to make the `spotify.py` script to work, everything else works, except for `cpu-temp` as well
|
||||
115
configs/waybar_l/M1Pro/shvedes/Scale1.6x/config
Normal file
115
configs/waybar_l/M1Pro/shvedes/Scale1.6x/config
Normal file
@@ -0,0 +1,115 @@
|
||||
|
||||
{
|
||||
"layer": "bottom",
|
||||
"position": "top",
|
||||
"height": 28,
|
||||
"reload_style_on_change": true,
|
||||
"height": 4,
|
||||
"margin-top": 4,
|
||||
"margin-left": 10,
|
||||
"margin-right": 10,
|
||||
"modules-left": [ "custom/spotify", "custom/cpu", "memory", "disk" ],
|
||||
"modules-center": [ "hyprland/workspaces" ],
|
||||
"modules-right": [ "battery", "clock#time", "tray", "idle_inhibitor" ],
|
||||
|
||||
"custom/spotify": {
|
||||
"exec": "$HOME/.config/waybar/scripts/spotify.py --player spotify",
|
||||
"format": "<span size='10000' foreground='#98971a'> </span>{}",
|
||||
"return-type": "json",
|
||||
"on-click": "playerctl -p spotify play-pause",
|
||||
"on-scroll-up": "playerctl -p spotify next",
|
||||
"on-scroll-down": "playerctl -p spotify previous",
|
||||
"on-click-right-release": "hyprctl dispatch workspace 6",
|
||||
"tooltip": false
|
||||
},
|
||||
|
||||
"memory": {
|
||||
"interval": 1,
|
||||
"format": "<span foreground='#d79921'> </span>{used:0.1f}GiB"
|
||||
},
|
||||
|
||||
"disk": {
|
||||
"interval": 60,
|
||||
"format": "<span foreground='#d79921'> </span>{used}",
|
||||
"tooltip": false
|
||||
},
|
||||
|
||||
"hyprland/workspaces": {
|
||||
"format": "{icon}",
|
||||
"on-click-release": "activate",
|
||||
"sort-by-numbers": false,
|
||||
"on-scroll-up": "hyprctl dispatch workspace e+1",
|
||||
"on-scroll-down": "hyprctl dispatch workspace e-1",
|
||||
"format-icons": {
|
||||
"1": "I",
|
||||
"2": "II",
|
||||
"3": "III",
|
||||
"4": "IV",
|
||||
"5": "V",
|
||||
"6": "VI",
|
||||
"7": "VII",
|
||||
"8": "VIII",
|
||||
"9": "IX",
|
||||
"10": "X"
|
||||
}
|
||||
},
|
||||
|
||||
/* "network": {
|
||||
"interval": 1,
|
||||
"format-wifi": "<span foreground='#d79921'>{icon} </span>{essid}<span foreground='#d79921'> </span>{bandwidthUpBytes}<span foreground='#d79921'> </span>{bandwidthDownBytes} ",
|
||||
"format-disconnected": "",
|
||||
"format-ethernet": "<span foreground='#d79921'> </span>Connected",
|
||||
"on-click-right-release": "alacritty --class nmtui -T 'Network Settings' -e nmtui",
|
||||
"on-click-release": "$HOME/.config/waybar/scripts/network.sh",
|
||||
"format-icons": [
|
||||
" ",
|
||||
" ",
|
||||
" ",
|
||||
" ",
|
||||
" "
|
||||
]
|
||||
},
|
||||
*/
|
||||
"clock#time": {
|
||||
"interval": 1,
|
||||
"format": "<span foreground='#d79921' size='10000'> </span>{:%I:%M %p} ",
|
||||
"tooltip": false,
|
||||
"on-click-release": "bash $HOME/.config/waybar/scripts/date.sh"
|
||||
|
||||
},
|
||||
|
||||
"custom/cpu": {
|
||||
"exec": "$HOME/.config/waybar/scripts/monitoring/cpu-temp.c",
|
||||
"format": "<span foreground='#d79921'> </span>{}",
|
||||
"tooltip": false
|
||||
},
|
||||
|
||||
"idle_inhibitor": {
|
||||
"format": "{icon}",
|
||||
"format-icons": {
|
||||
"activated": " ",
|
||||
"deactivated":" "
|
||||
}
|
||||
},
|
||||
"battery": {
|
||||
"states": {
|
||||
"good": 95,
|
||||
"warning": 30,
|
||||
"critical": 20
|
||||
},
|
||||
"format": "{icon} {capacity}%",
|
||||
"format-charging": "\udb80\udc84 {capacity}%",
|
||||
"format-plugged": "\udb81\udea5 {capacity}%",
|
||||
"format-alt": "{time} {icon}",
|
||||
"format-icons": ["\udb80\udc7a", "\udb80\udc7b", "\udb80\udc7c", "\udb80\udc7d", "\udb80\udc7e", "\udb80\udc7f", "\udb80\udc80", "\udb80\udc81", "\udb80\udc82", "\udb80\udc79"]
|
||||
},
|
||||
|
||||
"tray": {
|
||||
"icon-size": 14,
|
||||
"spacing": 10,
|
||||
"show-passive-items": true
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
// vim:ft=jsonc
|
||||
7
configs/waybar_l/M1Pro/shvedes/Scale1.6x/scripts/date.sh
Executable file
7
configs/waybar_l/M1Pro/shvedes/Scale1.6x/scripts/date.sh
Executable file
@@ -0,0 +1,7 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
source $HOME/.local/bin/variables.sh
|
||||
|
||||
DATE=$(date +"%A, %dth %B")
|
||||
|
||||
notify-send -r 2 -i "${ICON}/calendar.svg" "Date" "$DATE"
|
||||
32
configs/waybar_l/M1Pro/shvedes/Scale1.6x/scripts/monitoring/cpu-temp.c
Executable file
32
configs/waybar_l/M1Pro/shvedes/Scale1.6x/scripts/monitoring/cpu-temp.c
Executable file
@@ -0,0 +1,32 @@
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#include <unistd.h>
|
||||
#include <fcntl.h>
|
||||
#include <string.h>
|
||||
|
||||
int millidegree_to_celsius(int millidegree) {
|
||||
return millidegree / 1000;
|
||||
}
|
||||
|
||||
int main() {
|
||||
while (1) {
|
||||
FILE *file = fopen("SYSFS_PATH", "r");
|
||||
if (file == NULL) {
|
||||
perror("No such file or directory");
|
||||
return 1;
|
||||
}
|
||||
|
||||
int temperature;
|
||||
fscanf(file, "%d", &temperature);
|
||||
fclose(file);
|
||||
|
||||
int celsius = millidegree_to_celsius(temperature);
|
||||
|
||||
printf("%d°C\n", celsius);
|
||||
fflush(stdout);
|
||||
usleep(500000);
|
||||
}
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
@@ -0,0 +1,33 @@
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#include <unistd.h>
|
||||
#include <fcntl.h>
|
||||
#include <string.h>
|
||||
|
||||
int millidegree_to_celsius(int millidegree) {
|
||||
return millidegree / 1000;
|
||||
}
|
||||
|
||||
int main() {
|
||||
while (1) {
|
||||
FILE *file = fopen("SYSFS_PATH", "r");
|
||||
if (file == NULL) {
|
||||
perror("No such file or directory");
|
||||
return 1;
|
||||
}
|
||||
|
||||
int temperature;
|
||||
fscanf(file, "%d", &temperature);
|
||||
fclose(file);
|
||||
|
||||
int celsius = millidegree_to_celsius(temperature);
|
||||
|
||||
printf("%d°C\n", celsius);
|
||||
fflush(stdout);
|
||||
usleep(500000);
|
||||
}
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
||||
11
configs/waybar_l/M1Pro/shvedes/Scale1.6x/scripts/network.sh
Executable file
11
configs/waybar_l/M1Pro/shvedes/Scale1.6x/scripts/network.sh
Executable file
@@ -0,0 +1,11 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
source $HOME/.local/bin/variables.sh
|
||||
|
||||
COMMAND="$(nmcli connection show | awk 'NR=1 {print $1}' | sed -n '2p')"
|
||||
|
||||
if [[ "$COMMAND" == "Wired" ]]; then
|
||||
notify-send -r 2 -i "${ICON}/ethernet.svg" "Connection" "Ethernet connected"
|
||||
else
|
||||
notify-send -r 2 -i "${ICON}/wifi.svg" "Connection" "Connected to $COMMAND"
|
||||
fi
|
||||
182
configs/waybar_l/M1Pro/shvedes/Scale1.6x/scripts/spotify.py
Executable file
182
configs/waybar_l/M1Pro/shvedes/Scale1.6x/scripts/spotify.py
Executable file
@@ -0,0 +1,182 @@
|
||||
#!/usr/bin/env python3
|
||||
import gi
|
||||
gi.require_version("Playerctl", "2.0")
|
||||
from gi.repository import Playerctl, GLib
|
||||
from gi.repository.Playerctl import Player
|
||||
import argparse
|
||||
import logging
|
||||
import sys
|
||||
import signal
|
||||
import gi
|
||||
import json
|
||||
import os
|
||||
from typing import List
|
||||
|
||||
logger = logging.getLogger(__name__)
|
||||
|
||||
def signal_handler(sig, frame):
|
||||
logger.info("Received signal to stop, exiting")
|
||||
sys.stdout.write("\n")
|
||||
sys.stdout.flush()
|
||||
# loop.quit()
|
||||
sys.exit(0)
|
||||
|
||||
|
||||
class PlayerManager:
|
||||
def __init__(self, selected_player=None):
|
||||
self.manager = Playerctl.PlayerManager()
|
||||
self.loop = GLib.MainLoop()
|
||||
self.manager.connect(
|
||||
"name-appeared", lambda *args: self.on_player_appeared(*args))
|
||||
self.manager.connect(
|
||||
"player-vanished", lambda *args: self.on_player_vanished(*args))
|
||||
|
||||
signal.signal(signal.SIGINT, signal_handler)
|
||||
signal.signal(signal.SIGTERM, signal_handler)
|
||||
signal.signal(signal.SIGPIPE, signal.SIG_DFL)
|
||||
self.selected_player = selected_player
|
||||
|
||||
self.init_players()
|
||||
|
||||
def init_players(self):
|
||||
for player in self.manager.props.player_names:
|
||||
if self.selected_player is not None and self.selected_player != player.name:
|
||||
logger.debug(f"{player.name} is not the filtered player, skipping it")
|
||||
continue
|
||||
self.init_player(player)
|
||||
|
||||
def run(self):
|
||||
logger.info("Starting main loop")
|
||||
self.loop.run()
|
||||
|
||||
def init_player(self, player):
|
||||
logger.info(f"Initialize new player: {player.name}")
|
||||
player = Playerctl.Player.new_from_name(player)
|
||||
player.connect("playback-status",
|
||||
self.on_playback_status_changed, None)
|
||||
player.connect("metadata", self.on_metadata_changed, None)
|
||||
self.manager.manage_player(player)
|
||||
self.on_metadata_changed(player, player.props.metadata)
|
||||
|
||||
def get_players(self) -> List[Player]:
|
||||
return self.manager.props.players
|
||||
|
||||
def write_output(self, text, player):
|
||||
logger.debug(f"Writing output: {text}")
|
||||
|
||||
output = {"text": text,
|
||||
"class": "custom-" + player.props.player_name,
|
||||
"alt": player.props.player_name}
|
||||
|
||||
sys.stdout.write(json.dumps(output) + "\n")
|
||||
sys.stdout.flush()
|
||||
|
||||
def clear_output(self):
|
||||
sys.stdout.write("\n")
|
||||
sys.stdout.flush()
|
||||
|
||||
def on_playback_status_changed(self, player, status, _=None):
|
||||
logger.debug(f"Playback status changed for player {player.props.player_name}: {status}")
|
||||
self.on_metadata_changed(player, player.props.metadata)
|
||||
|
||||
def get_first_playing_player(self):
|
||||
players = self.get_players()
|
||||
logger.debug(f"Getting first playing player from {len(players)} players")
|
||||
if len(players) > 0:
|
||||
# if any are playing, show the first one that is playing
|
||||
# reverse order, so that the most recently added ones are preferred
|
||||
for player in players[::-1]:
|
||||
if player.props.status == "Playing":
|
||||
return player
|
||||
# if none are playing, show the first one
|
||||
return players[0]
|
||||
else:
|
||||
logger.debug("No players found")
|
||||
return None
|
||||
|
||||
def show_most_important_player(self):
|
||||
logger.debug("Showing most important player")
|
||||
# show the currently playing player
|
||||
# or else show the first paused player
|
||||
# or else show nothing
|
||||
current_player = self.get_first_playing_player()
|
||||
if current_player is not None:
|
||||
self.on_metadata_changed(current_player, current_player.props.metadata)
|
||||
else:
|
||||
self.clear_output()
|
||||
|
||||
def on_metadata_changed(self, player, metadata, _=None):
|
||||
logger.debug(f"Metadata changed for player {player.props.player_name}")
|
||||
player_name = player.props.player_name
|
||||
artist = player.get_artist()
|
||||
title = player.get_title()
|
||||
|
||||
track_info = ""
|
||||
if player_name == "spotify" and "mpris:trackid" in metadata.keys() and ":ad:" in player.props.metadata["mpris:trackid"]:
|
||||
track_info = "Advertisement"
|
||||
elif artist is not None and title is not None:
|
||||
track_info = f"{artist} - {title}"
|
||||
else:
|
||||
track_info = title
|
||||
|
||||
if track_info:
|
||||
if player.props.status == "Playing":
|
||||
track_info = track_info
|
||||
else:
|
||||
track_info = track_info
|
||||
# only print output if no other player is playing
|
||||
current_playing = self.get_first_playing_player()
|
||||
if current_playing is None or current_playing.props.player_name == player.props.player_name:
|
||||
self.write_output(track_info, player)
|
||||
else:
|
||||
logger.debug(f"Other player {current_playing.props.player_name} is playing, skipping")
|
||||
|
||||
def on_player_appeared(self, _, player):
|
||||
logger.info(f"Player has appeared: {player.name}")
|
||||
if player is not None and (self.selected_player is None or player.name == self.selected_player):
|
||||
self.init_player(player)
|
||||
else:
|
||||
logger.debug(
|
||||
"New player appeared, but it's not the selected player, skipping")
|
||||
|
||||
def on_player_vanished(self, _, player):
|
||||
logger.info(f"Player {player.props.player_name} has vanished")
|
||||
self.show_most_important_player()
|
||||
|
||||
def parse_arguments():
|
||||
parser = argparse.ArgumentParser()
|
||||
|
||||
# Increase verbosity with every occurrence of -v
|
||||
parser.add_argument("-v", "--verbose", action="count", default=0)
|
||||
|
||||
# Define for which player we"re listening
|
||||
parser.add_argument("--player")
|
||||
|
||||
parser.add_argument("--enable-logging", action="store_true")
|
||||
|
||||
return parser.parse_args()
|
||||
|
||||
|
||||
def main():
|
||||
arguments = parse_arguments()
|
||||
|
||||
# Initialize logging
|
||||
if arguments.enable_logging:
|
||||
logfile = os.path.join(os.path.dirname(
|
||||
os.path.realpath(__file__)), "media-player.log")
|
||||
logging.basicConfig(filename=logfile, level=logging.DEBUG,
|
||||
format="%(asctime)s %(name)s %(levelname)s:%(lineno)d %(message)s")
|
||||
|
||||
# Logging is set by default to WARN and higher.
|
||||
# With every occurrence of -v it's lowered by one
|
||||
logger.setLevel(max((3 - arguments.verbose) * 10, 0))
|
||||
|
||||
logger.info("Creating player manager")
|
||||
if arguments.player:
|
||||
logger.info(f"Filtering for player: {arguments.player}")
|
||||
player = PlayerManager(arguments.player)
|
||||
player.run()
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
main()
|
||||
67
configs/waybar_l/M1Pro/shvedes/Scale1.6x/style.css
Normal file
67
configs/waybar_l/M1Pro/shvedes/Scale1.6x/style.css
Normal file
@@ -0,0 +1,67 @@
|
||||
* {
|
||||
border: none;
|
||||
font-family: JetBrainsMono Nerd Font;
|
||||
font-weight: bold;
|
||||
font-size: 12px;
|
||||
min-height: 0;
|
||||
border-radius: 20;
|
||||
padding-right: 4px;
|
||||
padding-left: 4px;
|
||||
}
|
||||
|
||||
tooltip {
|
||||
background: #282828;
|
||||
border: 0px solid;
|
||||
border-radius: 18px;
|
||||
}
|
||||
|
||||
window#waybar {
|
||||
background: #282828;
|
||||
color: #ebdbb2;
|
||||
}
|
||||
|
||||
#workspaces button {
|
||||
padding: 0 0.6em;
|
||||
color: #a89984;
|
||||
background: #504945;
|
||||
border-radius: 0px;
|
||||
margin-right: 4px;
|
||||
margin-left: 4px;
|
||||
margin-top: 2px;
|
||||
margin-bottom: 2px;
|
||||
}
|
||||
|
||||
#workspaces button.active {
|
||||
color: #ebdbb2;
|
||||
background: #665c54;
|
||||
}
|
||||
|
||||
#workspaces button.urgent {
|
||||
color: #1d2021;
|
||||
background: #fb4934;
|
||||
}
|
||||
|
||||
#workspaces button:hover {
|
||||
background: #665c54;
|
||||
}
|
||||
|
||||
#disk,
|
||||
#clock,
|
||||
#memory,
|
||||
/*#network,*/
|
||||
#workspaces,
|
||||
#battery,
|
||||
#idle_inhibitor,
|
||||
#custom-cpu,
|
||||
#custom-spotify,
|
||||
#tray {
|
||||
color: #d5c4a1;
|
||||
background: #433e3c;
|
||||
padding: 0 0.6em;
|
||||
margin-right: 4px;
|
||||
margin-left: 2px;
|
||||
margin-top: 4px;
|
||||
margin-bottom: 4px;
|
||||
border-radius: 18px;
|
||||
}
|
||||
|
||||
115
configs/waybar_l/M1Pro/shvedes/config
Normal file
115
configs/waybar_l/M1Pro/shvedes/config
Normal file
@@ -0,0 +1,115 @@
|
||||
|
||||
{
|
||||
"layer": "bottom",
|
||||
"position": "top",
|
||||
"height": 28,
|
||||
"reload_style_on_change": true,
|
||||
"height": 4,
|
||||
"margin-top": 4,
|
||||
"margin-left": 10,
|
||||
"margin-right": 10,
|
||||
"modules-left": [ "custom/spotify", "custom/cpu", "memory", "disk" ],
|
||||
"modules-center": [ "hyprland/workspaces" ],
|
||||
"modules-right": [ "battery", "clock#time", "tray", "idle_inhibitor" ],
|
||||
|
||||
"custom/spotify": {
|
||||
"exec": "$HOME/.config/waybar/scripts/spotify.py --player spotify",
|
||||
"format": "<span size='10000' foreground='#98971a'> </span>{}",
|
||||
"return-type": "json",
|
||||
"on-click": "playerctl -p spotify play-pause",
|
||||
"on-scroll-up": "playerctl -p spotify next",
|
||||
"on-scroll-down": "playerctl -p spotify previous",
|
||||
"on-click-right-release": "hyprctl dispatch workspace 6",
|
||||
"tooltip": false
|
||||
},
|
||||
|
||||
"memory": {
|
||||
"interval": 1,
|
||||
"format": "<span foreground='#d79921'> </span>{used:0.1f}GiB"
|
||||
},
|
||||
|
||||
"disk": {
|
||||
"interval": 60,
|
||||
"format": "<span foreground='#d79921'> </span>{used}",
|
||||
"tooltip": false
|
||||
},
|
||||
|
||||
"hyprland/workspaces": {
|
||||
"format": "{icon}",
|
||||
"on-click-release": "activate",
|
||||
"sort-by-numbers": false,
|
||||
"on-scroll-up": "hyprctl dispatch workspace e+1",
|
||||
"on-scroll-down": "hyprctl dispatch workspace e-1",
|
||||
"format-icons": {
|
||||
"1": "I",
|
||||
"2": "II",
|
||||
"3": "III",
|
||||
"4": "IV",
|
||||
"5": "V",
|
||||
"6": "VI",
|
||||
"7": "VII",
|
||||
"8": "VIII",
|
||||
"9": "IX",
|
||||
"10": "X"
|
||||
}
|
||||
},
|
||||
|
||||
/* "network": {
|
||||
"interval": 1,
|
||||
"format-wifi": "<span foreground='#d79921'>{icon} </span>{essid}<span foreground='#d79921'> </span>{bandwidthUpBytes}<span foreground='#d79921'> </span>{bandwidthDownBytes} ",
|
||||
"format-disconnected": "",
|
||||
"format-ethernet": "<span foreground='#d79921'> </span>Connected",
|
||||
"on-click-right-release": "alacritty --class nmtui -T 'Network Settings' -e nmtui",
|
||||
"on-click-release": "$HOME/.config/waybar/scripts/network.sh",
|
||||
"format-icons": [
|
||||
" ",
|
||||
" ",
|
||||
" ",
|
||||
" ",
|
||||
" "
|
||||
]
|
||||
},
|
||||
*/
|
||||
"clock#time": {
|
||||
"interval": 1,
|
||||
"format": "<span foreground='#d79921' size='10000'> </span>{:%I:%M %p} ",
|
||||
"tooltip": false,
|
||||
"on-click-release": "bash $HOME/.config/waybar/scripts/date.sh"
|
||||
|
||||
},
|
||||
|
||||
"custom/cpu": {
|
||||
"exec": "$HOME/.config/waybar/scripts/monitoring/cpu-temp.c",
|
||||
"format": "<span foreground='#d79921'> </span>{}",
|
||||
"tooltip": false
|
||||
},
|
||||
|
||||
"idle_inhibitor": {
|
||||
"format": "{icon}",
|
||||
"format-icons": {
|
||||
"activated": " ",
|
||||
"deactivated":" "
|
||||
}
|
||||
},
|
||||
"battery": {
|
||||
"states": {
|
||||
"good": 95,
|
||||
"warning": 30,
|
||||
"critical": 20
|
||||
},
|
||||
"format": "{icon} {capacity}%",
|
||||
"format-charging": "\udb80\udc84 {capacity}%",
|
||||
"format-plugged": "\udb81\udea5 {capacity}%",
|
||||
"format-alt": "{time} {icon}",
|
||||
"format-icons": ["\udb80\udc7a", "\udb80\udc7b", "\udb80\udc7c", "\udb80\udc7d", "\udb80\udc7e", "\udb80\udc7f", "\udb80\udc80", "\udb80\udc81", "\udb80\udc82", "\udb80\udc79"]
|
||||
},
|
||||
|
||||
"tray": {
|
||||
"icon-size": 14,
|
||||
"spacing": 10,
|
||||
"show-passive-items": true
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
// vim:ft=jsonc
|
||||
67
configs/waybar_l/M1Pro/shvedes/style.css
Normal file
67
configs/waybar_l/M1Pro/shvedes/style.css
Normal file
@@ -0,0 +1,67 @@
|
||||
* {
|
||||
border: none;
|
||||
font-family: JetBrainsMono Nerd Font;
|
||||
font-weight: bold;
|
||||
font-size: 12px;
|
||||
min-height: 0;
|
||||
border-radius: 20;
|
||||
padding-right: 4px;
|
||||
padding-left: 4px;
|
||||
}
|
||||
|
||||
tooltip {
|
||||
background: #282828;
|
||||
border: 0px solid;
|
||||
border-radius: 18px;
|
||||
}
|
||||
|
||||
window#waybar {
|
||||
background: #282828;
|
||||
color: #ebdbb2;
|
||||
}
|
||||
|
||||
#workspaces button {
|
||||
padding: 0 0.6em;
|
||||
color: #a89984;
|
||||
background: #504945;
|
||||
border-radius: 0px;
|
||||
margin-right: 4px;
|
||||
margin-left: 4px;
|
||||
margin-top: 2px;
|
||||
margin-bottom: 2px;
|
||||
}
|
||||
|
||||
#workspaces button.active {
|
||||
color: #ebdbb2;
|
||||
background: #665c54;
|
||||
}
|
||||
|
||||
#workspaces button.urgent {
|
||||
color: #1d2021;
|
||||
background: #fb4934;
|
||||
}
|
||||
|
||||
#workspaces button:hover {
|
||||
background: #665c54;
|
||||
}
|
||||
|
||||
#disk,
|
||||
#clock,
|
||||
#memory,
|
||||
/*#network,*/
|
||||
#workspaces,
|
||||
#battery,
|
||||
#idle_inhibitor,
|
||||
#custom-cpu,
|
||||
#custom-spotify,
|
||||
#tray {
|
||||
color: #d5c4a1;
|
||||
background: #433e3c;
|
||||
padding: 0 0.6em;
|
||||
margin-right: 4px;
|
||||
margin-left: 2px;
|
||||
margin-top: 4px;
|
||||
margin-bottom: 4px;
|
||||
border-radius: 18px;
|
||||
}
|
||||
|
||||
2
configs/waybar_l/MacAir7,2/MubinMuhammad/README.md
Normal file
2
configs/waybar_l/MacAir7,2/MubinMuhammad/README.md
Normal file
@@ -0,0 +1,2 @@
|
||||
## ...In progress
|
||||
This config works very well on the MacBook Ait 7,2
|
||||
72
configs/waybar_l/MacAir7,2/MubinMuhammad/config.jsonc
Normal file
72
configs/waybar_l/MacAir7,2/MubinMuhammad/config.jsonc
Normal file
@@ -0,0 +1,72 @@
|
||||
{
|
||||
"layer": "top",
|
||||
"spacing": 0,
|
||||
"height": 0,
|
||||
"margin-top": 8,
|
||||
"margin-right": 8,
|
||||
"margin-bottom": 0,
|
||||
"margin-left": 8,
|
||||
|
||||
"modules-left": [
|
||||
"sway/workspaces"
|
||||
],
|
||||
|
||||
"modules-center": [
|
||||
"clock"
|
||||
],
|
||||
|
||||
"modules-right": [
|
||||
"tray",
|
||||
"network",
|
||||
"battery",
|
||||
"pulseaudio"
|
||||
],
|
||||
|
||||
"sway/workspaces": {
|
||||
"disable-scroll": true,
|
||||
"all-outputs": true,
|
||||
"tooltip": false
|
||||
},
|
||||
|
||||
"tray": {
|
||||
"spacing": 10,
|
||||
"tooltip": false
|
||||
},
|
||||
|
||||
"clock": {
|
||||
"format": "{:%I:%M %p - %a, %d %b %Y}",
|
||||
"tooltip": false
|
||||
},
|
||||
|
||||
"network": {
|
||||
"format-wifi" : " {bandwidthDownBits}",
|
||||
"format-ethernet": " {bandwidthDownBits}",
|
||||
"format-disconnected" : " No Network",
|
||||
"interval": 5,
|
||||
"tooltip": false
|
||||
},
|
||||
|
||||
"pulseaudio": {
|
||||
"scroll-step": 5,
|
||||
"max-volume": 150,
|
||||
"format": "{icon} {volume}%",
|
||||
"format-bluetooth": "{icon} {volume}%",
|
||||
"format-icons": ["", "", " "],
|
||||
"nospacing": 1,
|
||||
"format-muted": " ",
|
||||
"on-click": "pavucontrol",
|
||||
"tooltip": false
|
||||
},
|
||||
|
||||
"battery": {
|
||||
"format": "{icon} {capacity}%",
|
||||
"interval": 5,
|
||||
"states": {
|
||||
"warning": 20,
|
||||
"critical": 10
|
||||
},
|
||||
|
||||
"format-icons": [" ", " ", " ", " ", " "],
|
||||
"tooltip": false
|
||||
}
|
||||
}
|
||||
85
configs/waybar_l/MacAir7,2/MubinMuhammad/style.css
Normal file
85
configs/waybar_l/MacAir7,2/MubinMuhammad/style.css
Normal file
@@ -0,0 +1,85 @@
|
||||
* {
|
||||
border: none;
|
||||
border-radius: 0;
|
||||
min-height: 0;
|
||||
font-family: CaskaydiaCove Nerd Font;
|
||||
font-weight: bold;
|
||||
font-size: 14px;
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
window#waybar {
|
||||
background: rgba(29, 32, 33, 1.000000);
|
||||
border: 2px solid rgba(48, 53, 54, 1.000000);
|
||||
}
|
||||
|
||||
#battery,
|
||||
#network,
|
||||
#clock,
|
||||
#tray,
|
||||
#pulseaudio {
|
||||
margin: 4px;
|
||||
padding: 4px 8px;
|
||||
border-radius: 8;
|
||||
}
|
||||
|
||||
#workspaces {
|
||||
background-color: #303536;
|
||||
margin: 4px;
|
||||
border: 2px solid #434a4c;
|
||||
border-radius: 8;
|
||||
}
|
||||
|
||||
#workspaces button {
|
||||
all: initial;
|
||||
min-width: 0;
|
||||
box-shadow: inset 0 -3px transparent;
|
||||
padding: 4px 8px;
|
||||
color: #c7ab7a;
|
||||
}
|
||||
|
||||
#workspaces button.focused {
|
||||
color: #d4be98;
|
||||
}
|
||||
|
||||
#workspaces button.urgent {
|
||||
background-color: #e78a4e;
|
||||
}
|
||||
|
||||
#battery {
|
||||
background-color: #a9b665;
|
||||
border: 2px solid #b7c37f;
|
||||
color: #1d2021;
|
||||
}
|
||||
|
||||
#network {
|
||||
background-color: #d3869b;
|
||||
border: 2px solid #dfa5b4;
|
||||
color: #1d2021;
|
||||
}
|
||||
|
||||
#clock {
|
||||
background-color: #303536;
|
||||
border: 2px solid #434a4c;
|
||||
color: #d4be98;
|
||||
}
|
||||
|
||||
#tray {
|
||||
background-color: #e78a4e;
|
||||
border: 2px solid #eca474;
|
||||
color: #1d2021;
|
||||
}
|
||||
|
||||
#pulseaudio {
|
||||
background-color: #d8a657;
|
||||
border: 2px solid #dfb777;
|
||||
color: #1d2021;
|
||||
}
|
||||
|
||||
#battery.warning,
|
||||
#battery.critical,
|
||||
#battery.urgent {
|
||||
color: #1d2021;
|
||||
background-color: #ea6962;
|
||||
border: 2px solid #303536;
|
||||
}
|
||||
3
configs/waybar_l/MacAir7,2/shvedes/README.md
Normal file
3
configs/waybar_l/MacAir7,2/shvedes/README.md
Normal file
@@ -0,0 +1,3 @@
|
||||
## [shvedes's github](https://github.com/shvedes/dotfiles)
|
||||
|
||||
### 6/10/24 - Unable to make the `spotify.py` script to work, everything else works, except for `cpu-temp` as well
|
||||
77
configs/waybar_l/MacAir7,2/shvedes/Scale1x/config.jsonc
Normal file
77
configs/waybar_l/MacAir7,2/shvedes/Scale1x/config.jsonc
Normal file
@@ -0,0 +1,77 @@
|
||||
{
|
||||
"layer": "bottom",
|
||||
"position": "top",
|
||||
"height": 28,
|
||||
"reload_style_on_change": true,
|
||||
"height": 4,
|
||||
"margin-top": 4,
|
||||
"margin-left": 10,
|
||||
"margin-right": 10,
|
||||
"modules-left": [
|
||||
"hyprland/workspaces",
|
||||
"memory",
|
||||
"disk"],
|
||||
"modules-center": [
|
||||
"clock"],
|
||||
"modules-right": [
|
||||
"battery",
|
||||
"idle_inhibitor",
|
||||
"tray" ],
|
||||
|
||||
"battery": {
|
||||
"states": {
|
||||
"good": 95,
|
||||
"warning": 30,
|
||||
"critical": 20
|
||||
},
|
||||
"format": "{icon} {capacity}%",
|
||||
"format-charging": "\udb80\udc84 {capacity}%",
|
||||
"format-plugged": "\udb81\udea5 {capacity}%",
|
||||
"format-alt": "{time} {icon}",
|
||||
"format-icons": ["\udb80\udc7a", "\udb80\udc7b", "\udb80\udc7c", "\udb80\udc7d", "\udb80\udc7e", "\udb80\udc7f", "\udb80\udc80", "\udb80\udc81", "\udb80\udc82", "\udb80\udc79"]
|
||||
},
|
||||
|
||||
"idle_inhibitor": {
|
||||
"format": "{icon}",
|
||||
"format-icons": {
|
||||
"activated": " ",
|
||||
"deactivated": " "
|
||||
}
|
||||
},
|
||||
"memory": {
|
||||
"interval": 1,
|
||||
"format": "<span foreground='#d79921'> </span>{used:0.1f}GiB"
|
||||
},
|
||||
|
||||
"disk": {
|
||||
"interval": 60,
|
||||
"format": "<span foreground='#d79921'> </span>{used}",
|
||||
"tooltip": false
|
||||
},
|
||||
|
||||
"hyprland/workspaces": {
|
||||
"format": "{icon}",
|
||||
"on-click-release": "activate",
|
||||
"sort-by-numbers": false,
|
||||
"on-scroll-up": "hyprctl dispatch workspace e+1",
|
||||
"on-scroll-down": "hyprctl dispatch workspace e-1",
|
||||
"format-icons": {
|
||||
"1": "I",
|
||||
"2": "II",
|
||||
"3": "III",
|
||||
"4": "IV",
|
||||
"5": "V",
|
||||
"6": "VI",
|
||||
"7": "VII",
|
||||
"8": "VIII",
|
||||
"9": "IX",
|
||||
"10": "X"
|
||||
}
|
||||
},
|
||||
"tray": {
|
||||
"icon-size": 14,
|
||||
"spacing": 10,
|
||||
"show-passive-items": true
|
||||
}
|
||||
}
|
||||
|
||||
64
configs/waybar_l/MacAir7,2/shvedes/Scale1x/style.css
Normal file
64
configs/waybar_l/MacAir7,2/shvedes/Scale1x/style.css
Normal file
@@ -0,0 +1,64 @@
|
||||
* {
|
||||
border: none;
|
||||
font-family: JetBrainsMono Nerd Font;
|
||||
font-weight: bold;
|
||||
font-size: 12px;
|
||||
min-height: 0;
|
||||
border-radius: 20;
|
||||
padding-right: 4px;
|
||||
padding-left: 4px;
|
||||
}
|
||||
|
||||
tooltip {
|
||||
background: #282828;
|
||||
border: 0px solid;
|
||||
border-radius: 18px;
|
||||
}
|
||||
|
||||
window#waybar {
|
||||
background: #282828;
|
||||
color: #ebdbb2;
|
||||
}
|
||||
|
||||
#workspaces button {
|
||||
padding: 0 0.6em;
|
||||
color: #a89984;
|
||||
background: #504945;
|
||||
border-radius: 0px;
|
||||
margin-right: 4px;
|
||||
margin-left: 4px;
|
||||
margin-top: 2px;
|
||||
margin-bottom: 2px;
|
||||
}
|
||||
|
||||
#workspaces button.active {
|
||||
color: #ebdbb2;
|
||||
background: #665c54;
|
||||
}
|
||||
|
||||
#workspaces button.urgent {
|
||||
color: #1d2021;
|
||||
background: #fb4934;
|
||||
}
|
||||
|
||||
#workspaces button:hover {
|
||||
background: #665c54;
|
||||
}
|
||||
|
||||
#disk,
|
||||
#clock,
|
||||
#memory,
|
||||
#workspaces,
|
||||
#battery,
|
||||
#idle_inhibitor,
|
||||
#custom-cpu
|
||||
#tray {
|
||||
color: #d5c4a1;
|
||||
background: #433e3c;
|
||||
padding: 0 0.6em;
|
||||
margin-right: 4px;
|
||||
margin-left: 2px;
|
||||
margin-top: 4px;
|
||||
margin-bottom: 4px;
|
||||
border-radius: 18px;
|
||||
}
|
||||
3
configs/waybar_l/MacAirT2/Scale1x/README.md
Normal file
3
configs/waybar_l/MacAirT2/Scale1x/README.md
Normal file
@@ -0,0 +1,3 @@
|
||||
## Scale Screen to 1x
|
||||
|
||||
I had to upscale multiple settings in the `style` and `config` file to make the bar a bit bigger, the spacing of all modules also needed to be upcaled
|
||||
138
configs/waybar_l/MacAirT2/Scale1x/config.jsonc
Normal file
138
configs/waybar_l/MacAirT2/Scale1x/config.jsonc
Normal file
@@ -0,0 +1,138 @@
|
||||
{
|
||||
"layer": "top",
|
||||
"modules-left": ["custom/launcher", "wlr/taskbar", "hyprland/workspaces"],
|
||||
/*"modules-center": ["hyprland/window"],*/
|
||||
"modules-center": ["clock"],
|
||||
"modules-right": [ "idle_inhibitor", "custom/cpu", "custom/gpu", "tray", "backlight", "pulseaudio", "battery"],
|
||||
"margin": 8,
|
||||
"spacing": 22,
|
||||
"margin-bottom": 6,
|
||||
"margin-top": 8,
|
||||
"margin-left": 12,
|
||||
"margin-right": 12,
|
||||
|
||||
|
||||
/*"hyprland/window": {
|
||||
"format-empty": "nothing is running",
|
||||
"separate-outputs": true,
|
||||
"icon": true,
|
||||
"icon-size": 11
|
||||
},*/
|
||||
"idle_inhibitor": {
|
||||
"format": "{icon}",
|
||||
"format-icons": {
|
||||
"activated": " ",
|
||||
"deactivated":" "
|
||||
}
|
||||
},
|
||||
"pulseaudio": {
|
||||
"tooltip": false,
|
||||
"scroll-step": 1,
|
||||
"format": "{icon} {volume}%",
|
||||
"format-muted": " {volume}%",
|
||||
"on-click":"pavucontrol",
|
||||
"format-icons": {
|
||||
"default": [" ", " ", " "]
|
||||
}
|
||||
},
|
||||
|
||||
"custom/cpu": {
|
||||
"format": "\udb83\udee0 {}℃",
|
||||
"interval": 5,
|
||||
"exec": "bash ~/.config/waybar/scripts/cpu-temp.sh",
|
||||
"on-click": "kitty -e bash -c 'htop; read'"
|
||||
},
|
||||
|
||||
"custom/gpu": {
|
||||
"format": "\udb82\udcae {}℃",
|
||||
"interval": 5,
|
||||
"exec": "bash ~/.config/waybar/scripts/gpu-temp.sh",
|
||||
"on-click": "kitty -e bash -c 'nvtop; read'"
|
||||
},
|
||||
|
||||
"backlight": {
|
||||
"tooltip": false,
|
||||
"format": " {}%",
|
||||
"interval":1,
|
||||
"on-scroll-up": "brightnessctl s +5",
|
||||
"on-scroll-down": "brightnessctl s 5-"
|
||||
},
|
||||
"battery": {
|
||||
"states": {
|
||||
"good": 95,
|
||||
"warning": 30,
|
||||
"critical": 20
|
||||
},
|
||||
"format": "{icon} {capacity}%",
|
||||
"format-charging": "\udb80\udc84 {capacity}%",
|
||||
"format-plugged": "\udb81\udea5 {capacity}%",
|
||||
"format-alt": "{time} {icon}",
|
||||
"format-icons": ["\udb80\udc7a", "\udb80\udc7b", "\udb80\udc7c", "\udb80\udc7d", "\udb80\udc7e", "\udb80\udc7f", "\udb80\udc80", "\udb80\udc81", "\udb80\udc82", "\udb80\udc79"]
|
||||
},
|
||||
|
||||
"clock": {
|
||||
"format": "{:%A %B %d %Y %R}",
|
||||
"on-click": "firefox --new-window https://www.google.com/calendar"
|
||||
},
|
||||
|
||||
"custom/launcher":{
|
||||
"format": " ",
|
||||
"on-click": "hyprctl dispatch exec '[floating] wofi --show drun -normal-window'"
|
||||
},
|
||||
|
||||
"hyprland/workspaces": {
|
||||
"on-click": "activate",
|
||||
"persistent-workspaces": {
|
||||
/* "eDP-1": [1], / Sets workspaces as invisible unless something is running on them /
|
||||
"eDP-1": [2],
|
||||
"eDP-1": [3],
|
||||
"eDP-1": [4],
|
||||
"eDP-1": [5],
|
||||
"eDP-1": [6],
|
||||
"DP-2": [7],
|
||||
"DP-2": [8],
|
||||
"DP-2": [9],
|
||||
"DP-2": [10], */
|
||||
|
||||
/* "hyprland/workspaces": {
|
||||
"format": "{icon}",
|
||||
"on-click": "activate",
|
||||
"format-icons": {
|
||||
"1": "",
|
||||
"2": "",
|
||||
"3": "",
|
||||
"4": "",
|
||||
"5": "",
|
||||
"urgent": "",
|
||||
"active": "",
|
||||
"default": ""
|
||||
},
|
||||
"sort-by-number": true */ /* testing, these new set up*/
|
||||
|
||||
},
|
||||
"eDP-1": [ 1, 2, 3, 4, 5, 6 ], /* All workspaces shows visible */
|
||||
"DP-2": [ 7, 8, 9, 10 ]
|
||||
}
|
||||
},
|
||||
|
||||
"wlr/taskbar": {
|
||||
"format": "{icon}",
|
||||
"icon-size": 26,
|
||||
"tooltip-format": "{title}",
|
||||
"on-click": "activate",
|
||||
"on-click-middle": "close",
|
||||
"app_ids-mapping": {
|
||||
"firefoxdeveloperedition": "firefox-developer-edition"
|
||||
},
|
||||
"ignore-list": ["rofi"],
|
||||
"rewrite": {
|
||||
"Firefox Web Browser": "Firefox",
|
||||
"Foot Server": "Terminal"
|
||||
}
|
||||
},
|
||||
|
||||
"tray": {
|
||||
"icon-size": 21,
|
||||
"spacing": 16
|
||||
}
|
||||
}
|
||||
3
configs/waybar_l/MacAirT2/Scale1x/scripts/cpu-temp.sh
Normal file
3
configs/waybar_l/MacAirT2/Scale1x/scripts/cpu-temp.sh
Normal file
@@ -0,0 +1,3 @@
|
||||
#!/bin/bash
|
||||
|
||||
sensors | awk -F '[+°]' '/^Package id 0:/ {printf "%d\n", $2}'
|
||||
3
configs/waybar_l/MacAirT2/Scale1x/scripts/gpu-temp.sh
Normal file
3
configs/waybar_l/MacAirT2/Scale1x/scripts/gpu-temp.sh
Normal file
@@ -0,0 +1,3 @@
|
||||
#!/bin/bash
|
||||
|
||||
nvidia-smi --query-gpu=temperature.gpu --format=csv,noheader
|
||||
123
configs/waybar_l/MacAirT2/Scale1x/style.css
Normal file
123
configs/waybar_l/MacAirT2/Scale1x/style.css
Normal file
@@ -0,0 +1,123 @@
|
||||
@import "./themes/catppuccin/mocha.css";
|
||||
|
||||
* {
|
||||
font-size: 26px;
|
||||
font-family: Iosevka Nerd Font;
|
||||
}
|
||||
|
||||
window#waybar {
|
||||
background: @mantle;
|
||||
border-radius: 18px;
|
||||
}
|
||||
|
||||
window#waybar.empty #window {
|
||||
background-color: transparent;
|
||||
}
|
||||
|
||||
.modules-left {
|
||||
background: @surface0;
|
||||
border-top-right-radius: 24px;
|
||||
border-bottom-right-radius: 24px;
|
||||
padding: 0px 18px 0px 8px;
|
||||
}
|
||||
|
||||
.modules-right {
|
||||
background: @surface0;
|
||||
border-top-left-radius: 24px;
|
||||
border-bottom-left-radius: 24px;
|
||||
padding: 0px 18px 0px 8px;
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
.modules-center {
|
||||
background: transparent;
|
||||
}
|
||||
|
||||
#window {
|
||||
color: @text;
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
#custom-launcher {
|
||||
font-size: 26px;
|
||||
font-weight: bold;
|
||||
color: @blue;
|
||||
}
|
||||
|
||||
#custom-launcher:hover {
|
||||
color: @red;
|
||||
}
|
||||
|
||||
#workspaces button {
|
||||
padding: 0px;
|
||||
border-radius: 0px;
|
||||
margin: 0px;
|
||||
color: @text;
|
||||
font-weight: bold;
|
||||
border-top: 2px solid transparent;
|
||||
border-bottom: 2px solid transparent;
|
||||
}
|
||||
|
||||
#workspaces button.active {
|
||||
color: @mauve;
|
||||
border-bottom: 2px solid @mauve;
|
||||
margin: 6px;
|
||||
}
|
||||
|
||||
#taskbar {
|
||||
background: @surface0;
|
||||
padding: 0px 4px 1px;
|
||||
}
|
||||
|
||||
#taskbar button {
|
||||
border-radius: 0px;
|
||||
transition: all 0.3s;
|
||||
padding: 1px 2px 0px 4px;
|
||||
margin: 0px;
|
||||
opacity: 0.3;
|
||||
background: transparent;
|
||||
}
|
||||
|
||||
#taskbar button.active {
|
||||
background: transparent;
|
||||
opacity: 1;
|
||||
}
|
||||
|
||||
#taskbar button:hover {
|
||||
background: @surface3;
|
||||
opacity: 0.8;
|
||||
}
|
||||
|
||||
#custom-pacman {
|
||||
color: @red;
|
||||
margin-right: 8px;
|
||||
}
|
||||
|
||||
#idle_inhibitor {
|
||||
margin: 0px 4px;
|
||||
color: @lavender;
|
||||
}
|
||||
#clock,
|
||||
#tray,
|
||||
#backlight,
|
||||
#pulseaudio,
|
||||
#battery,
|
||||
#custom-cpu,
|
||||
#custom-gpu {
|
||||
margin: 0px 4px;
|
||||
}
|
||||
#custom-cpu {
|
||||
color: @lavender;
|
||||
}
|
||||
#custom-gpu {
|
||||
color: @blue;
|
||||
}
|
||||
#backlight,
|
||||
#pulseaudio,
|
||||
#battery {
|
||||
color: @text;
|
||||
}
|
||||
|
||||
#clock {
|
||||
color: @green;
|
||||
}
|
||||
@@ -0,0 +1,26 @@
|
||||
@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;
|
||||
3
configs/waybar_l/MacAirT2/Scale2x/README.md
Normal file
3
configs/waybar_l/MacAirT2/Scale2x/README.md
Normal file
@@ -0,0 +1,3 @@
|
||||
## Scale Screen to 2x
|
||||
|
||||
I had to upscale multiple settings in the `style` and `config` file to make the bar a bit bigger, the spacing of all modules also needed to be upcaled
|
||||
106
configs/waybar_l/MacAirT2/Scale2x/config.jsonc
Normal file
106
configs/waybar_l/MacAirT2/Scale2x/config.jsonc
Normal file
@@ -0,0 +1,106 @@
|
||||
{
|
||||
"layer": "top",
|
||||
"modules-left": ["custom/launcher", "wlr/taskbar", "hyprland/workspaces"],
|
||||
/*"modules-center": ["hyprland/window"],*/
|
||||
"modules-center": ["clock"],
|
||||
"modules-right": ["idle_inhibitor", "custom/cpu", "custom/gpu", "tray", "backlight", "pulseaudio", "battery"],
|
||||
"margin": "0",
|
||||
|
||||
/*"hyprland/window": {
|
||||
"format-empty": "nothing is running",
|
||||
"separate-outputs": true,
|
||||
"icon": true,
|
||||
"icon-size": 11
|
||||
},*/
|
||||
|
||||
"idle_inhibitor": {
|
||||
"format": "{icon}",
|
||||
"format-icons": {
|
||||
"activated": " ",
|
||||
"deactivated":" "
|
||||
}
|
||||
},
|
||||
"pulseaudio": {
|
||||
"tooltip": false,
|
||||
"scroll-step": 5,
|
||||
"format": "{icon} {volume}%",
|
||||
"format-muted": " {volume}%",
|
||||
"on-click":"pavucontrol",
|
||||
"format-icons": {
|
||||
"default": [" ", " ", " "]
|
||||
}
|
||||
},
|
||||
|
||||
"custom/cpu": {
|
||||
"format": "\udb83\udee0 {}℃",
|
||||
"interval": 5,
|
||||
"exec": "bash ~/.config/waybar/scripts/cpu-temp.sh",
|
||||
"on-click": "kitty -e bash -c 'htop; read'"
|
||||
},
|
||||
|
||||
"custom/gpu": {
|
||||
"format": "\udb82\udcae {}℃",
|
||||
"interval": 5,
|
||||
"exec": "bash ~/.config/waybar/scripts/gpu-temp.sh",
|
||||
"on-click": "kitty -e bash -c 'nvtop; read'"
|
||||
},
|
||||
|
||||
"backlight": {
|
||||
"tooltip": false,
|
||||
"format": " {}%",
|
||||
"interval":1,
|
||||
"on-scroll-up": "brightnessctl s +5",
|
||||
"on-scroll-down": "brightnessctl s 5-"
|
||||
},
|
||||
"battery": {
|
||||
"states": {
|
||||
"good": 95,
|
||||
"warning": 30,
|
||||
"critical": 20
|
||||
},
|
||||
"format": "{icon} {capacity}%",
|
||||
"format-charging": "\udb80\udc84 {capacity}%",
|
||||
"format-plugged": "\udb81\udea5 {capacity}%",
|
||||
"format-alt": "{time} {icon}",
|
||||
"format-icons": ["\udb80\udc7a", "\udb80\udc7b", "\udb80\udc7c", "\udb80\udc7d", "\udb80\udc7e", "\udb80\udc7f", "\udb80\udc80", "\udb80\udc81", "\udb80\udc82", "\udb80\udc79"]
|
||||
},
|
||||
|
||||
"clock": {
|
||||
"format": "{:%A %B %d %Y %R}",
|
||||
"on-click": "firefox --new-window https://www.google.com/calendar"
|
||||
},
|
||||
|
||||
"custom/launcher":{
|
||||
"format": " ",
|
||||
"on-click": "hyprctl dispatch exec '[floating] wofi --show drun -normal-window'"
|
||||
},
|
||||
|
||||
"hyprland/workspaces": {
|
||||
"on-click": "activate",
|
||||
"persistent-workspaces": {
|
||||
"eDP-1": [ 1, 2, 3, 4, 5 ],
|
||||
"DP-2": [ 6, 7, 8, 9, 10 ]
|
||||
}
|
||||
},
|
||||
|
||||
"wlr/taskbar": {
|
||||
"format": "{icon}",
|
||||
"icon-size": 11,
|
||||
"tooltip-format": "{title}",
|
||||
"on-click": "activate",
|
||||
"on-click-middle": "close",
|
||||
"app_ids-mapping": {
|
||||
"firefoxdeveloperedition": "firefox-developer-edition"
|
||||
},
|
||||
"ignore-list": ["rofi"],
|
||||
"rewrite": {
|
||||
"Firefox Web Browser": "Firefox",
|
||||
"Foot Server": "Terminal"
|
||||
}
|
||||
},
|
||||
|
||||
"tray": {
|
||||
"icon-size": 11,
|
||||
"spacing": 4
|
||||
}
|
||||
}
|
||||
3
configs/waybar_l/MacAirT2/Scale2x/scripts/cpu-temp.sh
Normal file
3
configs/waybar_l/MacAirT2/Scale2x/scripts/cpu-temp.sh
Normal file
@@ -0,0 +1,3 @@
|
||||
#!/bin/bash
|
||||
|
||||
sensors | awk -F '[+°]' '/^Package id 0:/ {printf "%d\n", $2}'
|
||||
3
configs/waybar_l/MacAirT2/Scale2x/scripts/gpu-temp.sh
Normal file
3
configs/waybar_l/MacAirT2/Scale2x/scripts/gpu-temp.sh
Normal file
@@ -0,0 +1,3 @@
|
||||
#!/bin/bash
|
||||
|
||||
nvidia-smi --query-gpu=temperature.gpu --format=csv,noheader
|
||||
122
configs/waybar_l/MacAirT2/Scale2x/style.css
Normal file
122
configs/waybar_l/MacAirT2/Scale2x/style.css
Normal file
@@ -0,0 +1,122 @@
|
||||
@import "./themes/catppuccin/mocha.css";
|
||||
|
||||
* {
|
||||
font-size: 16px;
|
||||
font-family: IosevkaTermSlab Nerd Font;
|
||||
}
|
||||
|
||||
window#waybar {
|
||||
background: @mantle;
|
||||
border-radius: 0px;
|
||||
}
|
||||
|
||||
window#waybar.empty #window {
|
||||
background-color: transparent;
|
||||
}
|
||||
|
||||
.modules-left {
|
||||
background: @surface0;
|
||||
border-top-right-radius: 14px;
|
||||
border-bottom-right-radius: 14px;
|
||||
padding: 0px 12px 0px 4px;
|
||||
}
|
||||
|
||||
.modules-right {
|
||||
background: @surface0;
|
||||
border-top-left-radius: 14px;
|
||||
border-bottom-left-radius: 14px;
|
||||
padding: 0px 4px 0px 12px;
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
.modules-center {
|
||||
background: transparent;
|
||||
}
|
||||
|
||||
#window {
|
||||
color: @text;
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
#custom-launcher {
|
||||
font-size: 16px;
|
||||
font-weight: bold;
|
||||
color: @blue;
|
||||
}
|
||||
|
||||
#custom-launcher:hover {
|
||||
color: @red;
|
||||
}
|
||||
|
||||
#workspaces button {
|
||||
padding: 0px;
|
||||
border-radius: 0px;
|
||||
margin: 0px;
|
||||
color: @text;
|
||||
font-weight: bold;
|
||||
border-top: 2px solid transparent;
|
||||
border-bottom: 2px solid transparent;
|
||||
}
|
||||
|
||||
#workspaces button.active {
|
||||
color: @mauve;
|
||||
border-bottom: 2px solid @mauve;
|
||||
}
|
||||
|
||||
#taskbar {
|
||||
background: @surface0;
|
||||
padding: 0px 4px 1px;
|
||||
}
|
||||
|
||||
#taskbar button {
|
||||
border-radius: 0px;
|
||||
transition: all 0.3s;
|
||||
padding: 1px 2px 0px 4px;
|
||||
margin: 0px;
|
||||
opacity: 0.3;
|
||||
background: transparent;
|
||||
}
|
||||
|
||||
#taskbar button.active {
|
||||
background: transparent;
|
||||
opacity: 1;
|
||||
}
|
||||
|
||||
#taskbar button:hover {
|
||||
background: @surface3;
|
||||
opacity: 0.8;
|
||||
}
|
||||
|
||||
#custom-pacman {
|
||||
color: @red;
|
||||
margin-right: 8px;
|
||||
}
|
||||
|
||||
#idle_inhibitor {
|
||||
margin: 0px 4px;
|
||||
color: @lavender;
|
||||
}
|
||||
#clock,
|
||||
#tray,
|
||||
#backlight,
|
||||
#pulseaudio,
|
||||
#battery,
|
||||
#custom-cpu,
|
||||
#custom-gpu {
|
||||
margin: 0px 4px;
|
||||
}
|
||||
#custom-cpu {
|
||||
color: @lavender;
|
||||
}
|
||||
#custom-gpu {
|
||||
color: @blue;
|
||||
}
|
||||
#backlight,
|
||||
#pulseaudio,
|
||||
#battery {
|
||||
color: @text;
|
||||
}
|
||||
|
||||
#clock {
|
||||
color: @green;
|
||||
}
|
||||
@@ -0,0 +1,26 @@
|
||||
@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;
|
||||
130
configs/waybar_l/Meself/Catppuccin+Meself/config
Normal file
130
configs/waybar_l/Meself/Catppuccin+Meself/config
Normal file
@@ -0,0 +1,130 @@
|
||||
{
|
||||
// "layer": "top",
|
||||
"mode": "dock",
|
||||
"ipc": "true",
|
||||
"bar_id": "bar_0",
|
||||
"position": "top",
|
||||
"spacing": 16,
|
||||
"margin-bottom": -2,
|
||||
"margin-top": 4,
|
||||
"margin-left": 8,
|
||||
"margin-right": 8,
|
||||
|
||||
"modules-left": [
|
||||
"sway/workspaces"
|
||||
],
|
||||
|
||||
"modules-center": [
|
||||
"clock"
|
||||
],
|
||||
|
||||
"modules-right": [
|
||||
"tray",
|
||||
"network",
|
||||
"battery",
|
||||
"pulseaudio",
|
||||
"custom/swww"
|
||||
],
|
||||
|
||||
"sway/taskbar": {
|
||||
"format": "{icon}",
|
||||
"on-click": "activate",
|
||||
"on-click-right": "fullscreen",
|
||||
"icon-size": 25,
|
||||
"tooltip-format": "{title}"
|
||||
},
|
||||
|
||||
"sway/workspaces": {
|
||||
"disable-scroll": true,
|
||||
"all-outputs": true,
|
||||
"format": "{icon}",
|
||||
"format-icons": {
|
||||
"1": "", // "",
|
||||
"2": " ", // "",
|
||||
"3": "", // "",
|
||||
"4": "", // "",
|
||||
"5": "", // "",
|
||||
"6": "l", // " "
|
||||
},
|
||||
"persistent-workspaces": {
|
||||
"1": [],
|
||||
"2": [],
|
||||
"3": [],
|
||||
"4": [],
|
||||
"5": [],
|
||||
"6": [],
|
||||
}
|
||||
},
|
||||
|
||||
"tray": {
|
||||
"spacing": 10
|
||||
},
|
||||
|
||||
"clock": {
|
||||
"format": "{:%I:%M %p - %a, %d %b %Y}"
|
||||
},
|
||||
|
||||
"network": {
|
||||
"format-wifi" : "{icon}",
|
||||
"format-icons": [" "," "," "," "," "],
|
||||
"format-ethernet": " ",
|
||||
"format-disconnected" : " ",
|
||||
"interval": 5,
|
||||
},
|
||||
|
||||
"pulseaudio": {
|
||||
"scroll-step": 5,
|
||||
"max-volume": 150,
|
||||
"format": "{icon} {volume}%",
|
||||
"format-bluetooth": "",
|
||||
"nospacing": 1,
|
||||
"format-muted": " ",
|
||||
"format-icons": {
|
||||
"headphone": " ",
|
||||
"default": [" "," " ," "]
|
||||
},
|
||||
"on-click": "pamixer -t",
|
||||
},
|
||||
|
||||
"custom/swww": {
|
||||
"format": " ",
|
||||
"on-click": "bash ~/.config/wallpapers/wallpaperSet.sh"
|
||||
},
|
||||
|
||||
"battery": {
|
||||
"format": "{icon} {capacity}%",
|
||||
"format-icons": {
|
||||
"charging": [
|
||||
" ",
|
||||
" ",
|
||||
" ",
|
||||
" ",
|
||||
" ",
|
||||
" ",
|
||||
" ",
|
||||
" ",
|
||||
" ",
|
||||
""
|
||||
],
|
||||
"default": [
|
||||
"",
|
||||
"",
|
||||
"",
|
||||
"",
|
||||
"",
|
||||
"",
|
||||
"",
|
||||
"",
|
||||
"",
|
||||
""
|
||||
]
|
||||
},
|
||||
"format-full": "Charged ",
|
||||
"interval": 5,
|
||||
"states": {
|
||||
"warning": 20,
|
||||
"critical": 10
|
||||
},
|
||||
"tooltip": false
|
||||
},
|
||||
}
|
||||
26
configs/waybar_l/Meself/Catppuccin+Meself/mocha.css
Normal file
26
configs/waybar_l/Meself/Catppuccin+Meself/mocha.css
Normal file
@@ -0,0 +1,26 @@
|
||||
@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;
|
||||
31
configs/waybar_l/Meself/Catppuccin+Meself/style.css
Normal file
31
configs/waybar_l/Meself/Catppuccin+Meself/style.css
Normal file
@@ -0,0 +1,31 @@
|
||||
@import "mocha.css";
|
||||
|
||||
* {
|
||||
/* reference the color by using @color-name */
|
||||
color: @text;
|
||||
font-size: 14px;
|
||||
border: none;
|
||||
border-radius: 5;
|
||||
font-family: IosevkaTermSlab Nerd Font;
|
||||
}
|
||||
|
||||
window#waybar {
|
||||
/* you can also GTK3 CSS functions! */
|
||||
background-color: shade(@base, 0.9);
|
||||
border: 2px solid alpha(@crust, 0.3);
|
||||
|
||||
}
|
||||
|
||||
#pulseaudio {
|
||||
/*margin-top: 8px;
|
||||
margin-left: 8px;
|
||||
padding-left: 16px;
|
||||
padding-right: 16px;
|
||||
margin-bottom: 0;
|
||||
border-radius: 26px;
|
||||
transition: none;
|
||||
color: @text;
|
||||
background: #9aedfe;*/
|
||||
}
|
||||
|
||||
|
||||
6
configs/waybar_l/MubinMuhammad/README.md
Normal file
6
configs/waybar_l/MubinMuhammad/README.md
Normal file
@@ -0,0 +1,6 @@
|
||||
4.19.24
|
||||
I was unable to fix the battery background filling issue, posted a PR on the author repo, not update as of now
|
||||
|
||||
[Mubin's Dots]{https://github.com/MubinMuhammad/MinimalSwayFX}
|
||||
|
||||
|
||||
129
configs/waybar_l/MubinMuhammad/config
Normal file
129
configs/waybar_l/MubinMuhammad/config
Normal file
@@ -0,0 +1,129 @@
|
||||
{
|
||||
// "layer": "top",
|
||||
"mode": "dock",
|
||||
"ipc": "true",
|
||||
"bar_id": "bar_0",
|
||||
"position": "bottom",
|
||||
"spacing": 0,
|
||||
"margin-bottom": 6,
|
||||
"margin-left": 200,
|
||||
"margin-right": 200,
|
||||
|
||||
"modules-left": [
|
||||
"sway/workspaces"
|
||||
],
|
||||
|
||||
"modules-center": [
|
||||
"clock"
|
||||
],
|
||||
|
||||
"modules-right": [
|
||||
"tray",
|
||||
"network",
|
||||
"battery",
|
||||
"pulseaudio",
|
||||
"custom/swww"
|
||||
],
|
||||
|
||||
"sway/taskbar": {
|
||||
"format": "{icon}",
|
||||
"on-click": "activate",
|
||||
"on-click-right": "fullscreen",
|
||||
"icon-size": 25,
|
||||
"tooltip-format": "{title}"
|
||||
},
|
||||
|
||||
"sway/workspaces": {
|
||||
"disable-scroll": true,
|
||||
"all-outputs": true,
|
||||
"format": "{icon}",
|
||||
"format-icons": {
|
||||
"1": "", // "",
|
||||
"2": " ", // "",
|
||||
"3": "", // "",
|
||||
"4": "", // "",
|
||||
"5": "", // "",
|
||||
"6": "l", // " "
|
||||
},
|
||||
"persistent-workspaces": {
|
||||
"1": [],
|
||||
"2": [],
|
||||
"3": [],
|
||||
"4": [],
|
||||
"5": [],
|
||||
"6": [],
|
||||
}
|
||||
},
|
||||
|
||||
"tray": {
|
||||
"spacing": 10
|
||||
},
|
||||
|
||||
"clock": {
|
||||
"format": "{:%I:%M %p - %a, %d %b %Y}"
|
||||
},
|
||||
|
||||
"network": {
|
||||
"format-wifi" : "{icon}",
|
||||
"format-icons": ["","","","",""],
|
||||
"format-ethernet": "",
|
||||
"format-disconnected" : "",
|
||||
"interval": 5,
|
||||
},
|
||||
|
||||
"pulseaudio": {
|
||||
"scroll-step": 5,
|
||||
"max-volume": 150,
|
||||
"format": "{icon} {volume}%",
|
||||
"format-bluetooth": "",
|
||||
"nospacing": 1,
|
||||
"format-muted": "",
|
||||
"format-icons": {
|
||||
"headphone": " ",
|
||||
"default": ["","" ," "]
|
||||
},
|
||||
"on-click": "pamixer -t",
|
||||
},
|
||||
|
||||
"custom/swww": {
|
||||
"format": " ",
|
||||
"on-click": "bash ~/.config/wallpapers/wallpaperSet.sh"
|
||||
},
|
||||
|
||||
"battery": {
|
||||
"format": "{icon} {capacity}%",
|
||||
"format-icons": {
|
||||
"charging": [
|
||||
" ",
|
||||
" ",
|
||||
" ",
|
||||
" ",
|
||||
" ",
|
||||
" ",
|
||||
" ",
|
||||
" ",
|
||||
" ",
|
||||
""
|
||||
],
|
||||
"default": [
|
||||
"",
|
||||
"",
|
||||
"",
|
||||
"",
|
||||
"",
|
||||
"",
|
||||
"",
|
||||
"",
|
||||
"",
|
||||
""
|
||||
]
|
||||
},
|
||||
"format-full": "Charged ",
|
||||
"interval": 5,
|
||||
"states": {
|
||||
"warning": 20,
|
||||
"critical": 10
|
||||
},
|
||||
"tooltip": false
|
||||
},
|
||||
}
|
||||
85
configs/waybar_l/MubinMuhammad/style.css
Normal file
85
configs/waybar_l/MubinMuhammad/style.css
Normal file
@@ -0,0 +1,85 @@
|
||||
* {
|
||||
border: none;
|
||||
border-radius: 0;
|
||||
min-height: 0;
|
||||
font-family: IosevkaTermSlab Nerd Font;
|
||||
font-weight: bold;
|
||||
font-size: 14px;
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
window#waybar {
|
||||
background: rgba(29, 32, 33, 0.5);
|
||||
border-radius: 6px;
|
||||
border: 2px solid rgba(29, 32, 33, 0.5);
|
||||
}
|
||||
|
||||
#workspaces {
|
||||
background-color: transparent;
|
||||
}
|
||||
|
||||
#workspaces button {
|
||||
all: initial; /* Remove GTK theme values (waybar #1351) */
|
||||
min-width: 0; /* Fix weird spacing in materia (waybar #450) */
|
||||
box-shadow: inset 0 -3px transparent; /* Use box-shadow instead of border so the text isn't offset */
|
||||
padding: 6px 12px;
|
||||
color: #7c6f64;
|
||||
}
|
||||
|
||||
#workspaces button.focused {
|
||||
color: #d4be98;
|
||||
}
|
||||
|
||||
#workspaces button.urgent {
|
||||
background-color: #e78a4e;
|
||||
}
|
||||
|
||||
#battery,
|
||||
#backlight,
|
||||
#network,
|
||||
#clock,
|
||||
#tray,
|
||||
#pulseaudio {
|
||||
margin: 8px;
|
||||
padding-right: 8px;
|
||||
background-color: transparent;
|
||||
color: #d4be98;
|
||||
}
|
||||
|
||||
#custom-swww {
|
||||
padding-right: 8px;
|
||||
background-color: transparent;
|
||||
color: #d4be98;
|
||||
}
|
||||
|
||||
#battery {
|
||||
background-color: transparent;
|
||||
}
|
||||
#battery.warning,
|
||||
#battery.critical,
|
||||
#battery.urgent {
|
||||
color: #d4be98;
|
||||
animation-name: blink;
|
||||
animation-duration: 0.5s;
|
||||
animation-timing-function: linear;
|
||||
animation-iteration-count: infinite;
|
||||
animation-direction: alternate;
|
||||
}
|
||||
#battery.charging {
|
||||
background-color: #a9b665;
|
||||
}
|
||||
|
||||
@keyframes blink {
|
||||
to {
|
||||
background-color: #e78a4e;
|
||||
color: #ede0d4;
|
||||
}
|
||||
}
|
||||
|
||||
tooltip {
|
||||
padding: 15px;
|
||||
background-color: #1d2021;
|
||||
border-radius: 6px;
|
||||
color: #d4be98;
|
||||
border: 2px solid #282828;
|
||||
}
|
||||
7
configs/waybar_l/accmeboot/README.md
Normal file
7
configs/waybar_l/accmeboot/README.md
Normal file
@@ -0,0 +1,7 @@
|
||||
## [accmeboot's github](https://github.com/accmeboot/dotfiles/tree/main/hyprland)
|
||||
|
||||
## 4/27/24 - Custom Arch icon did not worked, it is invisible until the cursor is on top of it
|
||||
|
||||
## 4/27/24 - I was able to fixed the icon issue, I needed to read abit more about CSS, it works fine now. It open `wofi` with icons enabled
|
||||
|
||||
This config also uses catppucino theme for waybar
|
||||
99
configs/waybar_l/accmeboot/config.jsonc
Normal file
99
configs/waybar_l/accmeboot/config.jsonc
Normal file
@@ -0,0 +1,99 @@
|
||||
{
|
||||
"layer": "top",
|
||||
"modules-left": ["custom/launcher", "wlr/taskbar", "hyprland/workspaces"],
|
||||
/*"modules-center": ["hyprland/window"],*/
|
||||
"modules-center": ["clock"],
|
||||
"modules-right": ["custom/cpu", "custom/gpu", "tray", "backlight", "pulseaudio", "battery"],
|
||||
"margin": "0",
|
||||
|
||||
/*"hyprland/window": {
|
||||
"format-empty": "nothing is running",
|
||||
"separate-outputs": true,
|
||||
"icon": true,
|
||||
"icon-size": 11
|
||||
},*/
|
||||
|
||||
"pulseaudio": {
|
||||
"tooltip": false,
|
||||
"scroll-step": 5,
|
||||
"format": "{icon} {volume}%",
|
||||
"format-muted": " {volume}%",
|
||||
"on-click":"pavucontrol",
|
||||
"format-icons": {
|
||||
"default": [" ", " ", " "]
|
||||
}
|
||||
},
|
||||
|
||||
"custom/cpu": {
|
||||
"format": "\udb83\udee0 {}℃",
|
||||
"interval": 5,
|
||||
"exec": "bash ~/.config/waybar/scripts/cpu-temp.sh",
|
||||
"on-click": "kitty -e bash -c 'htop; read'"
|
||||
},
|
||||
|
||||
"custom/gpu": {
|
||||
"format": "\udb82\udcae {}℃",
|
||||
"interval": 5,
|
||||
"exec": "bash ~/.config/waybar/scripts/gpu-temp.sh",
|
||||
"on-click": "kitty -e bash -c 'nvtop; read'"
|
||||
},
|
||||
|
||||
"backlight": {
|
||||
"tooltip": false,
|
||||
"format": " {}%",
|
||||
"interval":1,
|
||||
"on-scroll-up": "brightnessctl s +5",
|
||||
"on-scroll-down": "brightnessctl s 5-"
|
||||
},
|
||||
"battery": {
|
||||
"states": {
|
||||
"good": 95,
|
||||
"warning": 30,
|
||||
"critical": 20
|
||||
},
|
||||
"format": "{icon} {capacity}%",
|
||||
"format-charging": "\udb80\udc84 {capacity}%",
|
||||
"format-plugged": "\udb81\udea5 {capacity}%",
|
||||
"format-alt": "{time} {icon}",
|
||||
"format-icons": ["\udb80\udc7a", "\udb80\udc7b", "\udb80\udc7c", "\udb80\udc7d", "\udb80\udc7e", "\udb80\udc7f", "\udb80\udc80", "\udb80\udc81", "\udb80\udc82", "\udb80\udc79"]
|
||||
},
|
||||
|
||||
"clock": {
|
||||
"format": "{:%A %B %d %Y %R}",
|
||||
"on-click": "firefox --new-window https://www.google.com/calendar"
|
||||
},
|
||||
|
||||
"custom/launcher":{
|
||||
"format": " ",
|
||||
"on-click": "hyprctl dispatch exec '[floating] wofi --show drun -normal-window'"
|
||||
},
|
||||
|
||||
"hyprland/workspaces": {
|
||||
"on-click": "activate",
|
||||
"persistent-workspaces": {
|
||||
"eDP-1": [ 1, 2, 3, 4, 5 ],
|
||||
"DP-2": [ 6, 7, 8, 9, 10 ]
|
||||
}
|
||||
},
|
||||
|
||||
"wlr/taskbar": {
|
||||
"format": "{icon}",
|
||||
"icon-size": 11,
|
||||
"tooltip-format": "{title}",
|
||||
"on-click": "activate",
|
||||
"on-click-middle": "close",
|
||||
"app_ids-mapping": {
|
||||
"firefoxdeveloperedition": "firefox-developer-edition"
|
||||
},
|
||||
"ignore-list": ["rofi"],
|
||||
"rewrite": {
|
||||
"Firefox Web Browser": "Firefox",
|
||||
"Foot Server": "Terminal"
|
||||
}
|
||||
},
|
||||
|
||||
"tray": {
|
||||
"icon-size": 11,
|
||||
"spacing": 4
|
||||
}
|
||||
}
|
||||
3
configs/waybar_l/accmeboot/scripts/cpu-temp.sh
Normal file
3
configs/waybar_l/accmeboot/scripts/cpu-temp.sh
Normal file
@@ -0,0 +1,3 @@
|
||||
#!/bin/bash
|
||||
|
||||
sensors | awk -F '[+°]' '/^Package id 0:/ {printf "%d\n", $2}'
|
||||
3
configs/waybar_l/accmeboot/scripts/gpu-temp.sh
Normal file
3
configs/waybar_l/accmeboot/scripts/gpu-temp.sh
Normal file
@@ -0,0 +1,3 @@
|
||||
#!/bin/bash
|
||||
|
||||
nvidia-smi --query-gpu=temperature.gpu --format=csv,noheader
|
||||
119
configs/waybar_l/accmeboot/style.css
Normal file
119
configs/waybar_l/accmeboot/style.css
Normal file
@@ -0,0 +1,119 @@
|
||||
@import "./themes/catppuccin/mocha.css";
|
||||
|
||||
* {
|
||||
font-size: 11px;
|
||||
font-family: IosevkaTermSlab Nerd Font;
|
||||
font-size: 12px;
|
||||
}
|
||||
|
||||
window#waybar {
|
||||
background: @mantle;
|
||||
border-radius: 0px;
|
||||
}
|
||||
|
||||
window#waybar.empty #window {
|
||||
background-color: transparent;
|
||||
}
|
||||
|
||||
.modules-left {
|
||||
background: @surface0;
|
||||
border-top-right-radius: 14px;
|
||||
border-bottom-right-radius: 14px;
|
||||
padding: 0px 12px 0px 4px;
|
||||
}
|
||||
|
||||
.modules-right {
|
||||
background: @surface0;
|
||||
border-top-left-radius: 14px;
|
||||
border-bottom-left-radius: 14px;
|
||||
padding: 0px 4px 0px 12px;
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
.modules-center {
|
||||
background: transparent;
|
||||
}
|
||||
|
||||
#window {
|
||||
color: @text;
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
#custom-launcher {
|
||||
font-size: 16px;
|
||||
font-weight: bold;
|
||||
color: @blue;
|
||||
}
|
||||
|
||||
#custom-launcher:hover {
|
||||
color: @red;
|
||||
}
|
||||
|
||||
#workspaces button {
|
||||
padding: 0px;
|
||||
border-radius: 0px;
|
||||
margin: 0px;
|
||||
color: @text;
|
||||
font-weight: bold;
|
||||
border-top: 2px solid transparent;
|
||||
border-bottom: 2px solid transparent;
|
||||
}
|
||||
|
||||
#workspaces button.active {
|
||||
color: @mauve;
|
||||
border-bottom: 2px solid @mauve;
|
||||
}
|
||||
|
||||
#taskbar {
|
||||
background: @surface0;
|
||||
padding: 0px 4px 1px;
|
||||
}
|
||||
|
||||
#taskbar button {
|
||||
border-radius: 0px;
|
||||
transition: all 0.3s;
|
||||
padding: 1px 2px 0px 4px;
|
||||
margin: 0px;
|
||||
opacity: 0.3;
|
||||
background: transparent;
|
||||
}
|
||||
|
||||
#taskbar button.active {
|
||||
background: transparent;
|
||||
opacity: 1;
|
||||
}
|
||||
|
||||
#taskbar button:hover {
|
||||
background: @surface3;
|
||||
opacity: 0.8;
|
||||
}
|
||||
|
||||
#custom-pacman {
|
||||
color: @red;
|
||||
margin-right: 8px;
|
||||
}
|
||||
|
||||
#clock,
|
||||
#tray,
|
||||
#backlight,
|
||||
#pulseaudio,
|
||||
#battery,
|
||||
#custom-cpu,
|
||||
#custom-gpu {
|
||||
margin: 0px 4px;
|
||||
}
|
||||
#custom-cpu {
|
||||
color: @lavender;
|
||||
}
|
||||
#custom-gpu {
|
||||
color: @blue;
|
||||
}
|
||||
#backlight,
|
||||
#pulseaudio,
|
||||
#battery {
|
||||
color: @text;
|
||||
}
|
||||
|
||||
#clock {
|
||||
color: @green;
|
||||
}
|
||||
26
configs/waybar_l/accmeboot/themes/catppuccin/mocha.css
Normal file
26
configs/waybar_l/accmeboot/themes/catppuccin/mocha.css
Normal file
@@ -0,0 +1,26 @@
|
||||
@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;
|
||||
72
configs/waybar_l/iMac16,2/MubinMuhammad/config.jsonc
Normal file
72
configs/waybar_l/iMac16,2/MubinMuhammad/config.jsonc
Normal file
@@ -0,0 +1,72 @@
|
||||
{
|
||||
"layer": "top",
|
||||
"spacing": 0,
|
||||
"height": 0,
|
||||
"margin-top": 8,
|
||||
"margin-right": 8,
|
||||
"margin-bottom": 0,
|
||||
"margin-left": 8,
|
||||
|
||||
"modules-left": [
|
||||
"sway/workspaces"
|
||||
],
|
||||
|
||||
"modules-center": [
|
||||
"clock"
|
||||
],
|
||||
|
||||
"modules-right": [
|
||||
"tray",
|
||||
"network",
|
||||
"battery",
|
||||
"pulseaudio"
|
||||
],
|
||||
|
||||
"sway/workspaces": {
|
||||
"disable-scroll": true,
|
||||
"all-outputs": true,
|
||||
"tooltip": false
|
||||
},
|
||||
|
||||
"tray": {
|
||||
"spacing": 10,
|
||||
"tooltip": false
|
||||
},
|
||||
|
||||
"clock": {
|
||||
"format": "{:%I:%M %p - %a, %d %b %Y}",
|
||||
"tooltip": false
|
||||
},
|
||||
|
||||
"network": {
|
||||
"format-wifi" : " {bandwidthDownBits}",
|
||||
"format-ethernet": " {bandwidthDownBits}",
|
||||
"format-disconnected" : " No Network",
|
||||
"interval": 5,
|
||||
"tooltip": false
|
||||
},
|
||||
|
||||
"pulseaudio": {
|
||||
"scroll-step": 5,
|
||||
"max-volume": 150,
|
||||
"format": "{icon} {volume}%",
|
||||
"format-bluetooth": "{icon} {volume}%",
|
||||
"format-icons": ["", "", " "],
|
||||
"nospacing": 1,
|
||||
"format-muted": " ",
|
||||
"on-click": "pavucontrol",
|
||||
"tooltip": false
|
||||
},
|
||||
|
||||
"battery": {
|
||||
"format": "{icon} {capacity}%",
|
||||
"interval": 5,
|
||||
"states": {
|
||||
"warning": 20,
|
||||
"critical": 10
|
||||
},
|
||||
|
||||
"format-icons": ["", "", "", "", ""],
|
||||
"tooltip": false
|
||||
}
|
||||
}
|
||||
85
configs/waybar_l/iMac16,2/MubinMuhammad/style.css
Normal file
85
configs/waybar_l/iMac16,2/MubinMuhammad/style.css
Normal file
@@ -0,0 +1,85 @@
|
||||
* {
|
||||
border: none;
|
||||
border-radius: 0;
|
||||
min-height: 0;
|
||||
font-family: CaskaydiaCove Nerd Font;
|
||||
font-weight: bold;
|
||||
font-size: 14px;
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
window#waybar {
|
||||
background: rgba(29, 32, 33, 1.000000);
|
||||
border: 2px solid rgba(48, 53, 54, 1.000000);
|
||||
}
|
||||
|
||||
#battery,
|
||||
#network,
|
||||
#clock,
|
||||
#tray,
|
||||
#pulseaudio {
|
||||
margin: 4px;
|
||||
padding: 4px 8px;
|
||||
border-radius: 8;
|
||||
}
|
||||
|
||||
#workspaces {
|
||||
background-color: #303536;
|
||||
margin: 4px;
|
||||
border: 2px solid #434a4c;
|
||||
border-radius: 8;
|
||||
}
|
||||
|
||||
#workspaces button {
|
||||
all: initial;
|
||||
min-width: 0;
|
||||
box-shadow: inset 0 -3px transparent;
|
||||
padding: 4px 8px;
|
||||
color: #c7ab7a;
|
||||
}
|
||||
|
||||
#workspaces button.focused {
|
||||
color: #d4be98;
|
||||
}
|
||||
|
||||
#workspaces button.urgent {
|
||||
background-color: #e78a4e;
|
||||
}
|
||||
|
||||
#battery {
|
||||
background-color: #a9b665;
|
||||
border: 2px solid #b7c37f;
|
||||
color: #1d2021;
|
||||
}
|
||||
|
||||
#network {
|
||||
background-color: #d3869b;
|
||||
border: 2px solid #dfa5b4;
|
||||
color: #1d2021;
|
||||
}
|
||||
|
||||
#clock {
|
||||
background-color: #303536;
|
||||
border: 2px solid #434a4c;
|
||||
color: #d4be98;
|
||||
}
|
||||
|
||||
#tray {
|
||||
background-color: #e78a4e;
|
||||
border: 2px solid #eca474;
|
||||
color: #1d2021;
|
||||
}
|
||||
|
||||
#pulseaudio {
|
||||
background-color: #d8a657;
|
||||
border: 2px solid #dfb777;
|
||||
color: #1d2021;
|
||||
}
|
||||
|
||||
#battery.warning,
|
||||
#battery.critical,
|
||||
#battery.urgent {
|
||||
color: #1d2021;
|
||||
background-color: #ea6962;
|
||||
border: 2px solid #303536;
|
||||
}
|
||||
34
configs/waybar_l/shub39/config
Normal file
34
configs/waybar_l/shub39/config
Normal file
@@ -0,0 +1,34 @@
|
||||
{
|
||||
"include": "~/.config/dotfiles/waybar/modules",
|
||||
"layer": "top",
|
||||
"exclusive": true,
|
||||
"passthrough": false,
|
||||
"position": "top",
|
||||
"spacing": 3,
|
||||
"fixed-center": true,
|
||||
"ipc": true,
|
||||
"margin-top": 0,
|
||||
"margin-left": 0,
|
||||
"margin-right": 0,
|
||||
"margin-bottom": 0,
|
||||
|
||||
"modules-left": [
|
||||
"hyprland/workspaces",
|
||||
"clock",
|
||||
"custom/cava",
|
||||
"mpris"
|
||||
],
|
||||
|
||||
"modules-center": [
|
||||
"hyprland/window"
|
||||
],
|
||||
|
||||
"modules-right": [
|
||||
"wlr/taskbar",
|
||||
"cpu",
|
||||
"temperature",
|
||||
"memory",
|
||||
"custom/swaync",
|
||||
"pulseaudio"
|
||||
]
|
||||
}
|
||||
166
configs/waybar_l/shub39/modules
Normal file
166
configs/waybar_l/shub39/modules
Normal file
@@ -0,0 +1,166 @@
|
||||
{
|
||||
"hyprland/workspaces": {
|
||||
"active-only": true,
|
||||
"all-outputs": false,
|
||||
"show-special": false,
|
||||
"on-click": "activate",
|
||||
"on-scroll-up": "hyprctl dispatch workspace e+1",
|
||||
"on-scroll-down": "hyprctl dispatch workspace e-1",
|
||||
},
|
||||
|
||||
"bluetooth": {
|
||||
"format": " ",
|
||||
"format-disabled": " ",
|
||||
"format-connected": " {num_connections} ",
|
||||
"tooltip-format": " {device_alias}",
|
||||
"tooltip-format-connected": "{device_enumerate}",
|
||||
"tooltip-format-enumerate-connected": " {device_alias} {device_battery_percentage}%",
|
||||
"tooltip": true,
|
||||
"on-click": "blueman-manager"
|
||||
},
|
||||
|
||||
"clock": {
|
||||
"interval": 1,
|
||||
"format": " {:%H:%M} ",
|
||||
"format-alt": " {:%H:%M %Y, %d %B, %A} ",
|
||||
"tooltip-format": "<tt><small>{calendar}</small></tt>",
|
||||
"calendar": {
|
||||
"mode" : "year",
|
||||
"mode-mon-col" : 3,
|
||||
"weeks-pos" : "right",
|
||||
"on-scroll" : 1,
|
||||
"format": {
|
||||
"days": "<span color='#ebdbb2'><b>{}</b></span>",
|
||||
"weeks": "<span color='#99ffdd'><b>W{}</b></span>",
|
||||
"weekdays": "<span color='#ebdbb2'><b>{}</b></span>",
|
||||
"today": "<span color='#ff6699'><b><u>{}</u></b></span>"
|
||||
}
|
||||
}
|
||||
},
|
||||
"actions": {
|
||||
"on-click-right": "mode",
|
||||
"on-click-forward": "tz_up",
|
||||
"on-click-backward": "tz_down",
|
||||
"on-scroll-up": "shift_up",
|
||||
"on-scroll-down": "shift_down"
|
||||
},
|
||||
|
||||
"cpu": {
|
||||
"format": " {usage}% ",
|
||||
"interval": 1,
|
||||
"on-click-right": "gnome-system-monitor"
|
||||
},
|
||||
|
||||
"hyprland/window": {
|
||||
"format": " {} ",
|
||||
"max-length": 60,
|
||||
"separate-outputs": true,
|
||||
"offscreen-css" : true,
|
||||
"offscreen-css-text": "(inactive)",
|
||||
"rewrite": {
|
||||
"(.*) — Mozilla Firefox": " $1",
|
||||
"(.*) - fish": "> [$1]",
|
||||
"(.*) - zsh": "> [$1]",
|
||||
"(.*) - kitty": "> [$1]"
|
||||
}
|
||||
},
|
||||
|
||||
"memory": {
|
||||
"interval": 10,
|
||||
"format": " {percentage}% ",
|
||||
"format-alt-click": "click",
|
||||
"tooltip": true,
|
||||
"tooltip-format": "{used:0.1f}GB/{total:0.1f}G",
|
||||
"on-click-right": "kitty -c ~/.config/dotfiles/kitty/kitty.conf --title btop sh -c 'btop'"
|
||||
},
|
||||
|
||||
"mpris": {
|
||||
"interval": 10,
|
||||
"format": " {title} ",
|
||||
"format-paused": " {title} {status_icon} ",
|
||||
"on-click": "playerctl play-pause",
|
||||
"on-click-right": "playerctl next",
|
||||
"scroll-step": 5.0,
|
||||
"smooth-scrolling-threshold": 1,
|
||||
"status-icons": {
|
||||
"paused": "",
|
||||
"playing": "",
|
||||
"stopped": ""
|
||||
},
|
||||
"max-length": 30
|
||||
},
|
||||
|
||||
|
||||
"pulseaudio": {
|
||||
"format": " {volume}% {icon} ",
|
||||
"format-bluetooth": " {volume}% {icon} ",
|
||||
"format-muted": "",
|
||||
"format-icons": {
|
||||
"headphone": "",
|
||||
"hands-free": "",
|
||||
"headset": "",
|
||||
"phone": "",
|
||||
"portable": "",
|
||||
"car": "",
|
||||
"default": ["", "", "", ""],
|
||||
"ignored-sinks": ["Easy Effects Sink"]
|
||||
},
|
||||
"scroll-step": 5.0,
|
||||
"on-click": "pavucontrol -t 3",
|
||||
"tooltip-format": "{icon} {desc} | {volume}%",
|
||||
"smooth-scrolling-threshold": 1
|
||||
},
|
||||
|
||||
"temperature": {
|
||||
"interval": 10,
|
||||
"tooltip": true,
|
||||
"hwmon-path": ["/sys/class/hwmon/hwmon1/temp1_input", "/sys/class/thermal/thermal_zone0/temp"],
|
||||
"critical-threshold": 82,
|
||||
"format-critical": "{temperatureC}°C {icon}",
|
||||
"format": " {temperatureC}°C {icon} ",
|
||||
"format-icons": [""],
|
||||
"on-click-right": "kitty -c ~/.config/dotfiles/kitty/kitty.conf --title nvtop sh -c 'nvtop'"
|
||||
},
|
||||
|
||||
"custom/swaync": {
|
||||
"tooltip":true,
|
||||
"format": " {} {icon} ",
|
||||
"format-icons": {
|
||||
"notification": "<span foreground='red'><sup></sup></span>",
|
||||
"none": "",
|
||||
"dnd-notification": "<span foreground='red'><sup></sup></span>",
|
||||
"dnd-none": "",
|
||||
"inhibited-notification": "<span foreground='red'><sup></sup></span>",
|
||||
"inhibited-none": "",
|
||||
"dnd-inhibited-notification": "<span foreground='red'><sup></sup></span>",
|
||||
"dnd-inhibited-none": ""
|
||||
},
|
||||
"return-type": "json",
|
||||
"exec-if": "which swaync-client",
|
||||
"exec": "swaync-client -swb",
|
||||
"on-click": "sleep 0.1 && swaync-client -t -sw",
|
||||
"on-click-right": "swaync-client -d -sw",
|
||||
"escape": true
|
||||
},
|
||||
|
||||
"wlr/taskbar": {
|
||||
"format": " {icon} ",
|
||||
"icon-size": 20,
|
||||
"all-outputs": false,
|
||||
"tooltip-format": "{title}",
|
||||
"on-click": "activate",
|
||||
"on-click-middle": "close",
|
||||
"ignore-list": [
|
||||
"wofi",
|
||||
"rofi",
|
||||
"org.mozilla.firefox",
|
||||
"kitty"
|
||||
]
|
||||
},
|
||||
|
||||
"custom/cava": {
|
||||
"exec": "~/.config/dotfiles/hyprland/scripts/waybarCava.sh",
|
||||
"format": "{}",
|
||||
"on-click": "kitty -c ~/.config/dotfiles/kitty/kitty.conf nvim -c cd ~/.config/dotfiles/"
|
||||
}
|
||||
}
|
||||
81
configs/waybar_l/shub39/style.css
Normal file
81
configs/waybar_l/shub39/style.css
Normal file
@@ -0,0 +1,81 @@
|
||||
* {
|
||||
font-family: "JetBrains Mono";
|
||||
font-weight: bold;
|
||||
min-height: 0;
|
||||
font-size: 102%;
|
||||
font-feature-settings: '"zero", "ss01", "ss02", "ss03", "ss04", "ss05", "cv31"';
|
||||
padding: 1px;
|
||||
}
|
||||
|
||||
window#waybar {
|
||||
background-color: rgba(0, 0, 0, 0);
|
||||
transition-property: background-color;
|
||||
transition-duration: .5s;
|
||||
}
|
||||
|
||||
window#waybar.hidden {
|
||||
opacity: 0.5;
|
||||
}
|
||||
|
||||
window#waybar.empty {
|
||||
background-color: transparent;
|
||||
}
|
||||
|
||||
window#waybar.empty #window {
|
||||
padding: 0px;
|
||||
border: 0px;
|
||||
background-color: transparent;
|
||||
}
|
||||
|
||||
tooltip {
|
||||
opacity: 1;
|
||||
border-radius: 10px;
|
||||
}
|
||||
|
||||
tooltip label{
|
||||
padding: 10px;
|
||||
color: #ebdbb2;
|
||||
}
|
||||
|
||||
#custom-cava,
|
||||
#clock,
|
||||
#cpu,
|
||||
#memory,
|
||||
#mpris,
|
||||
#network,
|
||||
#pulseaudio,
|
||||
#temperature,
|
||||
#workspaces,
|
||||
#custom-menu,
|
||||
#custom-swaync{
|
||||
border-radius: 10px;
|
||||
color: #ebdbb2;
|
||||
padding-top: 3px;
|
||||
padding-bottom: 3px;
|
||||
padding-left: 6px;
|
||||
padding-right: 6px;
|
||||
}
|
||||
|
||||
#window{
|
||||
color: #ebdbb2;
|
||||
padding-top: 3px;
|
||||
padding-bottom: 3px;
|
||||
padding-right: 6px;
|
||||
padding-left: 6px;
|
||||
border-radius: 12px;
|
||||
}
|
||||
|
||||
#workspaces button {
|
||||
margin: 1px;
|
||||
box-shadow: none;
|
||||
text-shadow: none;
|
||||
border-radius: 12px;
|
||||
padding-left: 6px;
|
||||
padding-right: 6px;
|
||||
background-color: #ebdbb2;
|
||||
color: #282828;
|
||||
}
|
||||
|
||||
#temperature.critical {
|
||||
background-color: red;
|
||||
}
|
||||
Reference in New Issue
Block a user