diff --git a/README.md b/README.md index c3db46f..fda6063 100644 --- a/README.md +++ b/README.md @@ -78,8 +78,6 @@ You also need to install all the dependencies: - Curved Square font https://www.1001freefonts.com/curved-square.font - FontAwesome - JetBrainsMono Font -- xdg-desktop-portal-hyprland -- xdg-desktop-portal-gtk There are probably more, I will update the list next time I'm installing it on a new computer. diff --git a/hypr/hyprland.conf b/hypr/hyprland.conf index 1622cfe..01c9921 100644 --- a/hypr/hyprland.conf +++ b/hypr/hyprland.conf @@ -43,7 +43,6 @@ exec-once = hypridle exec-once = waybar exec-once = swaybg -i ~/.config/hypr/wallpapers/Purple.jpg -m fill exec-once = ~/.config/hypr/scripts/dynamic-borders.sh -exec-once = ~/.config/hypr/scripts/xdg-desktop-portal-hyprland.sh source = ~/.config/hypr/autostart.conf diff --git a/hypr/scripts/idle-inhibit-toggle.sh b/hypr/scripts/idle-inhibit-toggle.sh deleted file mode 100755 index fbebdbf..0000000 --- a/hypr/scripts/idle-inhibit-toggle.sh +++ /dev/null @@ -1,13 +0,0 @@ -#!/usr/bin/env bash - -PIDFILE="$XDG_RUNTIME_DIR/idle-inhibit.pid" - -if [[ -f "$PIDFILE" ]] && kill -0 "$(cat "$PIDFILE")" 2>/dev/null; then - kill "$(cat "$PIDFILE")" - rm -f "$PIDFILE" - echo "off" -else - systemd-inhibit --what=idle:sleep --why="Manual Waybar inhibit" sleep infinity & - echo $! > "$PIDFILE" - echo "on" -fi diff --git a/hypr/scripts/xdg-desktop-portal-hyprland.sh b/hypr/scripts/xdg-desktop-portal-hyprland.sh deleted file mode 100755 index a1ea640..0000000 --- a/hypr/scripts/xdg-desktop-portal-hyprland.sh +++ /dev/null @@ -1,8 +0,0 @@ -#!/bin/sh - -sleep 1 -killall -e xdg-desktop-portal-hyprland -killall xdg-desktop-portal -/usr/lib/xdg-desktop-portal-hyprland & -sleep 2 -/usr/lib/xdg-desktop-portal & diff --git a/waybar/config b/waybar/config index 6fdc45f..7b6c580 100644 --- a/waybar/config +++ b/waybar/config @@ -15,7 +15,6 @@ "network", "hyprland/language", "custom/notifications", - "custom/idle-inhibit", "custom/power" ], @@ -101,15 +100,6 @@ "escape": true }, - "custom/idle-inhibit": { - "exec": "if test -f $XDG_RUNTIME_DIR/idle-inhibit.pid; then echo '󰅶'; else echo '󰾪'; fi", - "on-click": "~/.config/hypr/scripts/idle-inhibit-toggle.sh", - "interval": 2, - "return-type": "raw", - "tooltip": true, - "tooltip-format": "Idle inhibit" - }, - "custom/power": { "format": " ⏻ ", "tooltip": false, diff --git a/waybar/style.css b/waybar/style.css index 875f8b3..9455541 100644 --- a/waybar/style.css +++ b/waybar/style.css @@ -81,8 +81,7 @@ window#waybar { #window, #custom-power, #language, -#mpd, -#custom-idle-inhibit { +#mpd { margin: 8px 2px; padding: 0 18px 0 18px; color: black;