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 43a930c7..00000000 Binary files a/.config/waybar/.config.swp and /dev/null differ 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 + +