Compare commits
2 commits
0633ecc35f
...
de7375bfb7
| Author | SHA1 | Date | |
|---|---|---|---|
| de7375bfb7 | |||
| bc0d3a7737 |
6 changed files with 36 additions and 1 deletions
|
|
@ -78,6 +78,8 @@ You also need to install all the dependencies:
|
||||||
- Curved Square font https://www.1001freefonts.com/curved-square.font
|
- Curved Square font https://www.1001freefonts.com/curved-square.font
|
||||||
- FontAwesome
|
- FontAwesome
|
||||||
- JetBrainsMono Font
|
- JetBrainsMono Font
|
||||||
|
- xdg-desktop-portal-hyprland
|
||||||
|
- xdg-desktop-portal-gtk
|
||||||
|
|
||||||
There are probably more, I will update the list next time I'm
|
There are probably more, I will update the list next time I'm
|
||||||
installing it on a new computer.
|
installing it on a new computer.
|
||||||
|
|
|
||||||
|
|
@ -43,6 +43,7 @@ exec-once = hypridle
|
||||||
exec-once = waybar
|
exec-once = waybar
|
||||||
exec-once = swaybg -i ~/.config/hypr/wallpapers/Purple.jpg -m fill
|
exec-once = swaybg -i ~/.config/hypr/wallpapers/Purple.jpg -m fill
|
||||||
exec-once = ~/.config/hypr/scripts/dynamic-borders.sh
|
exec-once = ~/.config/hypr/scripts/dynamic-borders.sh
|
||||||
|
exec-once = ~/.config/hypr/scripts/xdg-desktop-portal-hyprland.sh
|
||||||
|
|
||||||
source = ~/.config/hypr/autostart.conf
|
source = ~/.config/hypr/autostart.conf
|
||||||
|
|
||||||
|
|
|
||||||
13
hypr/scripts/idle-inhibit-toggle.sh
Executable file
13
hypr/scripts/idle-inhibit-toggle.sh
Executable file
|
|
@ -0,0 +1,13 @@
|
||||||
|
#!/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
|
||||||
8
hypr/scripts/xdg-desktop-portal-hyprland.sh
Executable file
8
hypr/scripts/xdg-desktop-portal-hyprland.sh
Executable file
|
|
@ -0,0 +1,8 @@
|
||||||
|
#!/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 &
|
||||||
|
|
@ -15,6 +15,7 @@
|
||||||
"network",
|
"network",
|
||||||
"hyprland/language",
|
"hyprland/language",
|
||||||
"custom/notifications",
|
"custom/notifications",
|
||||||
|
"custom/idle-inhibit",
|
||||||
"custom/power"
|
"custom/power"
|
||||||
],
|
],
|
||||||
|
|
||||||
|
|
@ -100,6 +101,15 @@
|
||||||
"escape": true
|
"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": {
|
"custom/power": {
|
||||||
"format": " ⏻ ",
|
"format": " ⏻ ",
|
||||||
"tooltip": false,
|
"tooltip": false,
|
||||||
|
|
|
||||||
|
|
@ -81,7 +81,8 @@ window#waybar {
|
||||||
#window,
|
#window,
|
||||||
#custom-power,
|
#custom-power,
|
||||||
#language,
|
#language,
|
||||||
#mpd {
|
#mpd,
|
||||||
|
#custom-idle-inhibit {
|
||||||
margin: 8px 2px;
|
margin: 8px 2px;
|
||||||
padding: 0 18px 0 18px;
|
padding: 0 18px 0 18px;
|
||||||
color: black;
|
color: black;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue