This commit is contained in:
joygnu 2024-07-03 11:59:04 +02:00
parent b075447810
commit abf6f524f6
6 changed files with 1 additions and 358 deletions

View file

@ -84,7 +84,7 @@
"CTRL+SHIFT, left, resizeactive, -60 0"
"CTRL+SHIFT, right, resizeactive, 60 0"
"CTRL+SHIFT, up, resizeactive, 0 -60"
"$mod CTRL, down, resizeactive, 0 60"
"CTRL+SHIFT, down, resizeactive, 0 60"
# Moving windows
"$mod SHIFT, left, swapwindow, l"

Binary file not shown.

Before

Width:  |  Height:  |  Size: 343 KiB

After

Width:  |  Height:  |  Size: 1.5 MiB

View file

@ -1,21 +0,0 @@
#!/bin/bash
# Fetch the status of cmus
status=$(cmus-remote -Q)
if [[ $? -ne 0 ]]; then
echo "No song playing"
exit 1
fi
# Extract artist, album, and title information
artist=$(echo "$status" | grep 'tag artist' | cut -d ' ' -f 3-)
title=$(echo "$status" | grep 'tag title' | cut -d ' ' -f 3-)
# Display the song information
if [ -n "$artist" ] && [ -n "$title" ]; then
echo "$artist - $title"
else
echo "No song playing"
fi

View file

@ -1,297 +0,0 @@
{
pkgs,
config,
...
}: let
workspaces = {
};
mainWaybarConfig = {
mod = "dock";
layer = "top";
gtk-layer-shell = true;
height = 14;
position = "top";
modules-left = ["hyprland/workspaces"];
modules-center = ["clock"];
modules-right = [
"pulseaudio"
"tray"
];
"wlr/workspaces" = workspaces;
"hyprland/workspaces" = workspaces;
clock = {
actions = {
on-click-forward = "tz_up";
on-click-right = "mode";
on-scroll-down = "shift_down";
on-scroll-up = "shift_up";
};
};
pulseaudio = {
format = "{icon} {volume}%";
on-click = "pavucontrol";
format-icons = {
default = ["" "" ""];
};
};
tray = {
icon-size = 15;
spacing = 5;
};
};
css = ''
/* -----------------------------------------------------
* General
* ----------------------------------------------------- */
* {
font-size: 16px;
font-family: Ubuntu Nerd Font, Font Awesome, sans-serif;
font-weight: bold;
}
window#waybar {
background-color: rgba(26,27,38,0.4);
border-bottom: 1px solid rgba(26,27,38,0);
border-radius: 0px;
color: #f8f8f2;
}
/* -----------------------------------------------------
* Workspaces
* ----------------------------------------------------- */
#workspaces {
background: #458588;
margin: 5px 3px 5px 12px;
padding: 0px 1px;
border-radius: 15px;
border: 0px;
font-style: normal;
color: #15161e;
}
#workspaces button {
padding: 0px 5px;
margin: 4px 3px;
border-radius: 15px;
border: 0px;
color: #15161e;
background-color: #458588;
opacity: 0.5;
transition: all 0.3s ease-in-out;
}
#workspaces button.active {
color: #15161e;
* {
border: none;
border-radius: 0px;
font-family: "Inconsolata";
font-size: 16px;
min-height: 0;
color: #ebdbb2;
}
window#waybar {
border-bottom-style: inset;
border-bottom: 4px solid #689d6a;
background: #1d2021;
}
#workspaces, #clock, #custom-music, #window {
font-weight: 800;
}
/* Workspace Buttons */
#workspaces button label{
color: #689d6a;
}
#workspaces button.focused label {
color: #1d2021;
}
#workspaces button.focused {
background: #689d6a;
}
#mode {
background-color: #cc241d;
color: white;
}
#clock, #battery, #cpu, #memory, #network, #pulseaudio, #tray, #mode, #idle_inhibitor {
padding: 0 5px;
margin: 0 10px;
}
#idle_inhibitor {
padding: 0 10px;
}
#idle_inhibitor.activated {
background-color: #689d6a;
color: #1d2021;
}
#custom-music {
color: #b8bb26;
margin: 0 15px;
padding: 0 20px;
border-bottom: 4px solid #b8bb26;
}
#clock {
margin: 0;
color: #fabd2f;
border-bottom: 4px solid #fabd2f;
}
#network.disconnected {
color: #cc241d;
border-bottom: 4px solid #cc241d;
}
#pulseaudio.muted {
padding: 0 20px;
color: #cc241d;
border-bottom: 4px solid #cc241d;
}
background: #458588;
border-radius: 15px;
min-width: 40px;
transition: all 0.3s ease-in-out;
opacity: 1.0;
}
#workspaces button:hover {
color: #15161e;
background: #458588;
border-radius: 15px;
opacity: 1.0;
}
/* -----------------------------------------------------
* Tooltips
* ----------------------------------------------------- */
tooltip {
background: #282828;
border: 1px solid #282828;
border-radius: 10px;
}
tooltip label {
color: #15161e;
}
/* -----------------------------------------------------
* Window
* ----------------------------------------------------- */
#window {
color: #15161e;
background: #8ec07c;
border-radius: 15px;
margin: 5px;
padding: 2px 10px;
}
#custom-packages {
color: #15161e;
background: #f7768e;
border-radius: 15px;
margin: 5px;
padding: 2px 10px;
}
#memory {
color: #15161e;
background: #e0af68;
border-radius: 15px;
margin: 5px;
padding: 2px 10px;
}
#clock {
color: #15161e;
background: #458588;
border-radius: 15px;
margin: 5px;
padding: 2px 10px;
}
#cpu {
color: #15161e;
background: #7dcfff;
border-radius: 15px;
margin: 5px;
padding: 2px 10px;
}
#disk {
color: #15161e;
background: #9ece6a;
border-radius: 15px;
margin: 5px;
padding: 2px 10px;
}
#battery {
color: #15161e;
background: #ff79c6;
border-radius: 15px;
margin: 5px;
padding: 2px 10px;
}
#network {
color: #15161e;
background: #f1fa8c;
border-radius: 15px;
margin: 5px;
padding: 2px 10px;
}
#tray {
color: #15161e;
background: #8EC07C;
border-radius: 15px;
margin: 5px;
padding: 2px 10px;
}
#pulseaudio {
color: #15161e;
background: #458588;
border-radius: 15px;
margin: 5px;
padding: 2px 10px;
}
#custom-notification {
color: #15161e;
background: #6272a4;
border-radius: 15px;
margin: 5px;
padding: 2px 10px;
}
'';
in {
programs.waybar = {
enable = true;
package = pkgs.waybar.overrideAttrs (oldAttrs: {
mesonFlags = oldAttrs.mesonFlags ++ ["-Dexperimental=true"];
});
style = css;
settings = {mainBar = mainWaybarConfig;};
};
}

View file

@ -1,39 +0,0 @@
[2024-07-02 21:51:16.844] [info] Using configuration file /home/joy/.config/waybar/config
[2024-07-02 21:51:16.845] [info] Unable to receive desktop appearance: GDBus.Error:org.freedesktop.DBus.Error.UnknownMethod: No such interface “org.freedesktop.portal.Settings” on object at path /org/freedesktop/portal/desktop
[2024-07-02 21:51:16.845] [info] Using CSS file /home/joy/.config/waybar/style.css
[2024-07-02 21:51:16.848] [info] Hyprland IPC starting
[2024-07-02 21:51:16.849] [info] Loading persistent workspaces from Hyprland workspace rules
sh: line 1: /home/joy/nix/home/waybar/cmus.sh: cannot execute: required file not found
[2024-07-02 21:51:16.855] [error] cmus stopped unexpectedly, is it endless?
[2024-07-02 21:51:16.867] [warning] Requested height: 14 is less than the minimum height: 27 required by the modules
[2024-07-02 21:51:16.867] [info] Bar configured (width: 2560, height: 27) for output: DP-1
[2024-07-02 21:51:52.625] [info] Reloading...
[2024-07-02 21:51:52.628] [info] Using configuration file /home/joy/.config/waybar/config
[2024-07-02 21:51:52.628] [info] Using CSS file /home/joy/.config/waybar/style.css
[2024-07-02 21:51:52.633] [info] Reloading...
[2024-07-02 21:51:52.635] [info] Loading persistent workspaces from Hyprland workspace rules
(waybar:29756): GLib-GIO-WARNING **: 21:51:52.644: Invalid id -1200428736 passed to g_bus_unwatch_name()
(waybar:29756): GLib-GIO-CRITICAL **: 21:51:52.644: g_dbus_interface_skeleton_unexport: assertion 'interface_->priv->connections != NULL' failed
[2024-07-02 21:51:52.645] [info] Using configuration file /home/joy/.config/waybar/config
[2024-07-02 21:51:52.645] [info] Using CSS file /home/joy/.config/waybar/style.css
[2024-07-02 21:51:52.648] [info] Loading persistent workspaces from Hyprland workspace rules
[2024-07-02 21:51:52.655] [warning] Requested height: 14 is less than the minimum height: 37 required by the modules
[2024-07-02 21:51:52.655] [info] Bar configured (width: 2560, height: 37) for output: DP-1
[2024-07-02 21:52:00.848] [info] Using configuration file /home/joy/.config/waybar/config
[2024-07-02 21:52:00.850] [info] Unable to receive desktop appearance: GDBus.Error:org.freedesktop.DBus.Error.UnknownMethod: No such interface “org.freedesktop.portal.Settings” on object at path /org/freedesktop/portal/desktop
[2024-07-02 21:52:00.850] [info] Using CSS file /home/joy/.config/waybar/style.css
[2024-07-02 21:52:00.853] [info] Hyprland IPC starting
[2024-07-02 21:52:00.854] [info] Loading persistent workspaces from Hyprland workspace rules
[2024-07-02 21:52:00.868] [warning] Requested height: 14 is less than the minimum height: 42 required by the modules
[2024-07-02 21:52:00.868] [info] Bar configured (width: 2560, height: 42) for output: DP-1
[2024-07-02 22:00:47.199] [info] Reloading...
[2024-07-02 22:00:47.203] [info] Using configuration file /home/joy/.config/waybar/config
[2024-07-02 22:00:47.204] [info] Using CSS file /home/joy/.config/waybar/style.css
[2024-07-02 22:00:47.212] [info] Reloading...
[2024-07-02 22:00:47.212] [error] style.css:45:0Expected semicolon
[2024-07-02 22:01:22.256] [info] Using configuration file /home/joy/.config/waybar/config
[2024-07-02 22:01:22.257] [info] Unable to receive desktop appearance: GDBus.Error:org.freedesktop.DBus.Error.UnknownMethod: No such interface “org.freedesktop.portal.Settings” on object at path /org/freedesktop/portal/desktop
[2024-07-02 22:01:22.257] [info] Using CSS file /home/joy/.config/waybar/style.css
[2024-07-02 22:01:22.257] [error] style.css:45:0Expected semicolon