From 14dd1c3a0adae1ce03c5d603ec6eaa419ff690d1 Mon Sep 17 00:00:00 2001 From: deadvey Date: Mon, 10 Feb 2025 14:33:12 +0000 Subject: [PATCH] new rice --- .bashrc | 1 - .config/hypr/hyprland.conf | 4 +- .config/waybar/.config.swp | Bin 20480 -> 0 bytes .config/waybar/config | 131 +++++++++++++++++++++++++++++-------- .config/waybar/style.css | 28 +++++++- scripts/0 | 0 scripts/album-cover.sh | 10 +++ 7 files changed, 141 insertions(+), 33 deletions(-) delete mode 100644 .config/waybar/.config.swp delete mode 100644 scripts/0 create mode 100755 scripts/album-cover.sh diff --git a/.bashrc b/.bashrc index dd904325..9d5a3816 100644 --- a/.bashrc +++ b/.bashrc @@ -1,5 +1,4 @@ alias ls="ls -a --color" -alias ssh="kitten ssh" alias giturl="git config --get remote.origin.url" alias push="git push" alias commit="git commit" diff --git a/.config/hypr/hyprland.conf b/.config/hypr/hyprland.conf index c01a8451..54c48b91 100644 --- a/.config/hypr/hyprland.conf +++ b/.config/hypr/hyprland.conf @@ -1,6 +1,6 @@ exec-once="hyprpaper" exec-once="waybar" -exec-once="dunst" +#exec-once="dunst" env = XCURSOR_SIZE,24 env = HYPRCURSOR_SIZE,24 @@ -51,7 +51,7 @@ input { kb_layout = gb repeat_delay = 200 repeat_rate = 50 - kb_options = caps:escape + kb_options = caps:escape,compose:ralt } # Monitors diff --git a/.config/waybar/.config.swp b/.config/waybar/.config.swp deleted file mode 100644 index 43a930c7c31e298f777a869d3eba88ee4b15c3bd..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 20480 zcmeI2eT*Ds9mfY-UbYq_HW3mDeLD5Hns#>Ydi3a>$JL6hRB2G#g7(^6W@nz=9XmTS zotNFaTMn-U0b62dp!AOlVydM^G!m6iNlY}5C_zEN8cj7ODp9el3JFHE`h8wzcXsct z6apb8&*eVZ-RI@^JkRg>J@3C_-wm5Klc9XShQEt7?WA?I{Ia$6oK<@lXf`$N8l7Y@ zXZ&-0%XB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q%zLuKh>L!V z^;w9XZO3C8JO8t@@-u*)|5wO6h?6+e9|v~>cJBW?@WH3Rd4Qewo8S-NC*Vimd*BGT zAM6J^z$S1NSPhnfh2U>E*S`Rs1K$N-244iX0}pHm+rS6Fe^IZ$f?tDQfS&_i*SF!W zL=~wtpfsQ~pfsQ~pfsQ~pfsQ~pfvE-XaE=L>{!jtUa$RiXXdY+5BCe1quHz*mb1KD zIpaNP>-O_CuS=VI(o6gF+{{kAAuZz8K%CB`EEzP4=hr)g zr4gMc+4jM=IdfzVar{!HbwwiU)%`T`I+e@S_`Yke-@KuK7Z4|iasA{}DQ=vJVN~cu zN3~hZd{u7XioSX9c6K|VS8*2@ve!U%St5_=?Z)wx`w#P!R*-Zin{64b>vHNvei)^< zXuVsl*d6Ybw`0Zzc5%jo#>mc3DM$X}X_Xy9D9omP=X1&;N(!S@2WvW5DhK?gM*(4Xy$I!dd=ta4WbDECm;U1>gmo z>3;>D13v(t10fg(+rfI!50--e;NAY8;Cb*AI1FwEC6EWF@J4?Ed>?!b+zX~b8QcJd zKp(giyn=W8C&3foQE(@i0_#8?TnPS-cl)Qox4{Eo99#}g;*I_=*a|)dHh?R^62Nu& z)=Y~^s?vbcfYN}{z#G@Vd@Cmw#qMRZ>q$^~D~VU4E@va09C(d{ZSKdn8iaNcdnDM0^QOa8hmj%Mxh^a*!&)=B063ag( zoDg=-KIU`pz>JGRPOpb%V6@zmkh=tTNy=XOnfFVL8Zo>gea{iDb8(o+IC#1m!l#n? lHMYZ}ieERPfLadsacxJy-Hf?{N(byr9(^t!nbwub{{T#J1V#V= diff --git a/.config/waybar/config b/.config/waybar/config index 82248b65..fb0f5e06 100644 --- a/.config/waybar/config +++ b/.config/waybar/config @@ -41,14 +41,106 @@ "clock" ], "modules-right": [ - "custom/cmusinfo", - "pulseaudio/slider", - "network", "tray", + "group/specs", + "group/cmus", + "group/audio", + "network", + "group/power", ], - "custom/cmusinfo": { + "tray": { + "spacing": 20, + }, + "group/audio": { + "orientation": "inherit", + "drawer": { + "transition-duration": 300, + "children-class": "not-power", + "transition-right-to-left": true, + }, + "modules": ["pulseaudio","pulseaudio/slider"], + }, + "group/power": { + "orientation": "inherit", + "drawer": { + "transition-duration": 300, + "children-class": "not-power", + "transition-right-to-left": true, + }, + "modules": [ + "custom/power", // First element is the "group leader" and won't ever be hidden + "custom/quit", + "custom/lock", + "custom/reboot", + ] + }, + "custom/quit": { + "format": "󰗼", + "tooltip": false, + "on-click": "hyprctl dispatch exit" + }, + "custom/lock": { + "format": "󰍁", + "tooltip": false, + "on-click": "hyprlock" + }, + "custom/reboot": { + "format": "󰜉", + "tooltip": false, + "on-click": "reboot" + }, + "custom/power": { + "format": "", + "tooltip": false, + "on-click": "shutdown now" + }, + "memory": { + "format": "{used}/{total} GB  ", + "on-click": "flatpak run io.github.cosmic_utils.Examine", + }, + "cpu": { + "format": "{}%  ", + "on-click": "flatpak run io.github.cosmic_utils.Examine", + }, + "group/specs": { + "orientation": "inherit", + "drawer": { + "transition-duration": 300, + "transition-right-to-left": true + }, + "modules": ["custom/specsicon","cpu", "memory"], + }, + "custom/specsicon": { + "format": " ", + "on-click": "flatpak run io.github.cosmic_utils.Examine", + }, + "group/cmus": { + "orientation": "inherit", + "drawer": { + "transition-duration": 300, + "transition-right-to-left": true + }, + "modules": ["custom/cmusicon","custom/cmussong","custom/cmusartist"], + }, + "custom/cmusicon": { + "format": " ", + "on-click": "ssh max@192.168.1.193 cmus-remote -u", + "on-click-right": "ssh max@192.168.1.193 cmus-remote -n", + "on-scroll-down": "ssh max@192.168.1.193 cmus-remote -v -10%", + "on-scroll-up": "ssh max@192.168.1.193 cmus-remote -v +10%", + }, + "custom/cmussong": { "exec": "ssh max@192.168.1.193 cmus-remote -Q | grep title | sed 's/tag title //'", - "format": " {}", + "format": "{}", + "interval": 1, + "on-click": "ssh max@192.168.1.193 cmus-remote -u", + "on-click-right": "ssh max@192.168.1.193 cmus-remote -n", + "on-scroll-down": "ssh max@192.168.1.193 cmus-remote -v -10%", + "on-scroll-up": "ssh max@192.168.1.193 cmus-remote -v +10%", + }, + "custom/cmusartist": { + "exec": "ssh max@192.168.1.193 cmus-remote -Q | grep albumartist | sed 's/tag albumartist //'", + "format": "{}", "interval": 1, "on-click": "ssh max@192.168.1.193 cmus-remote -u", "on-click-right": "ssh max@192.168.1.193 cmus-remote -n", @@ -59,7 +151,7 @@ "disable-scroll": true, "show-special": true, "all-outputs": true, - "move-to-monitor": true, + "move-to-monitor": false, "wrap-on-scroll": false, "format": "{icon}{name}", "format-active": "[{name}]", @@ -67,7 +159,10 @@ "urgent": "!", "active": "", "default": "" - } + }, + "persistent-workspaces": { + "*": [ 1,2,3,4,5,6,7,8,9,0 ], + }, }, "network": { "interface": "enp5s0", @@ -97,7 +192,7 @@ "pulseaudio": { "format": "{icon}", "format-bluetooth": "{volume}% {icon}", - "format-muted": "", + "format-muted": " ", "format-icons": { "alsa_output.pci-0000_00_1f.3.analog-stereo": "", "alsa_output.pci-0000_00_1f.3.analog-stereo-muted": "", @@ -108,7 +203,7 @@ "phone-muted": "", "portable": "", "car": "", - "default": ["", ""] + "default": [" ", " "] }, "scroll-step": 5, "on-click": "pavucontrol", @@ -144,29 +239,11 @@ "exec": "sensors | grep 'Tctl:' | sed -E 's/Tctl:[ ]+//' | sed -E 's/[ ]+//'", "interval": 1, }, - "cpu": { - "format": "{}% " - }, - "memory": { - "format": "{}% " - }, "custom/time": { "exec": "bash $HOME/scripts/time.sh --hex", "format": "{}", "interval": 1, }, - "custom/lock": { - "on-click": "hyprlock", - "format": "", - }, - "custom/shutdown": { - "on-click": "shutdown now", - "format": "", - }, - "custom/reboot": { - "on-click": "reboot", - "format": "", - }, "custom/server-cava": { "exec": "ssh max@192.168.1.193 bash /home/max/caway.sh", "format": "{}", diff --git a/.config/waybar/style.css b/.config/waybar/style.css index 42b7653b..eb211ec8 100644 --- a/.config/waybar/style.css +++ b/.config/waybar/style.css @@ -1,5 +1,5 @@ * { - font-family: 'VictorMono'; + font-family: Roboto, Helvetica, Arial, sans-serif,"Font Awesome 5 Free"; } #pulseaudio-slider slider { min-height: 0px; @@ -67,22 +67,44 @@ window#waybar.left { color: #282828; background: #ebdbb2; } +#custom-power, +#custom-lock, +#custom-reboot, +#custom-quit, +#custom-specsicon, +#custom-cmusicon, #workspaces, #clock, #network, #pulseaudio, #tray, -#custom-cmusinfo { +#custom-cmussong, +#custom-cmusartist, +#cpu, +#memory, +#disk, +#temperature { color: #ebdbb2; border-radius: 20px; padding-left: 8px; padding-right: 8px; margin: 6px; } +#custom-power:hover, +#custom-lock:hover, +#custom-reboot:hover, +#custom-quit:hover, +#custom-specsicon:hover, +#custom-cmusicon:hover, #clock:hover, #network:hover, #pulseaudio:hover, #tray:hover, -#custom-cmusinfo:hover { +#custom-cmussong:hover, +#custom-cmusartist:hover, +#cpu:hover, +#memory:hover, +#disk:hover, +#temperature:hover { background-color: #282828; } diff --git a/scripts/0 b/scripts/0 deleted file mode 100644 index e69de29b..00000000 diff --git a/scripts/album-cover.sh b/scripts/album-cover.sh new file mode 100755 index 00000000..594cda33 --- /dev/null +++ b/scripts/album-cover.sh @@ -0,0 +1,10 @@ +#!/usr/bin/bash + +# Find the path of the mp3 file +mp3_path=$(ssh max@192.168.1.193 cmus-remote -Q | grep file | sed "s/file //" | tr " " "\\ ") +echo $mp3_path + +# Extract the jpg of it +ssh max@192.168.1.193 ffmpeg -i '$mp3_path' -an -c:v copy file.jpg + +