feat: reserved screen space keybind and pinning windows for watching shows in the background;
refactor: waybar adjustments; refactor: swaync idle inhibitor now handles idle state correctly; feat: rmpc config
This commit is contained in:
@@ -3,8 +3,9 @@
|
||||
################
|
||||
|
||||
# See https://wiki.hyprland.org/Configuring/Monitors/
|
||||
# monitor=eDP-1, 1920x1080, 0x0, 1
|
||||
# monitor=HDMI-A-1, 1920x1080, -1920x-100, 1
|
||||
monitor=eDP-1, 1920x1080, 0x0, 1
|
||||
monitor=HDMI-A-1, 1920x1080, -1920x-100, 1
|
||||
# monitor=eDP-1,addreserved,0,0,0,625
|
||||
|
||||
###################
|
||||
### MY PROGRAMS ###
|
||||
@@ -35,6 +36,7 @@ exec-once = mullvad-vpn &
|
||||
exec-once = swaync
|
||||
exec-once = ~/.config/hypr/scripts/random_wallpaper.sh
|
||||
exec-once = ~/.config/hypr/scripts/autofreezer.sh
|
||||
exec-once = ~/.config/bspwm/checkupdates.sh
|
||||
|
||||
# exec-once = systemctl --user startexec-once=dbus-update-activation-environment --systemd WAYLAND_DISPLAY XDG_CURRENT_DESKTOP hyprpaper.service
|
||||
exec-once = libinput-gestures
|
||||
@@ -323,7 +325,7 @@ binde = $mainMod SHIFT, W, forcekillactive,
|
||||
bind = $mainMod, S, togglefloating,
|
||||
bind = $mainMod, T, settiled,
|
||||
bind = $mainMod, F, fullscreen,
|
||||
bind = $mainMod CTRL, P, pin,
|
||||
bind = $mainMod CTRL, P, pin
|
||||
|
||||
# Bring to top
|
||||
bind = $mainMod, Z, bringactivetotop
|
||||
@@ -481,6 +483,9 @@ bind = $mainMod CTRL, G, exec, ~/.config/hypr/scripts/grayscale-toggle.sh
|
||||
# Game mode
|
||||
bind = $mainMod SHIFT, G, exec, ~/.config/hypr/scripts/gamemode.sh
|
||||
|
||||
# Enable reserved space
|
||||
bind = $mainMod, B, exec, ~/.config/hypr/scripts/reserved_space.sh
|
||||
|
||||
# Cycle cpu frequency mode
|
||||
bind = $mainMod CTRL, C, exec, ~/.config/hypr/scripts/cpufreq.sh
|
||||
|
||||
@@ -592,4 +597,4 @@ debug {
|
||||
disable_logs = false
|
||||
}
|
||||
|
||||
source = ~/.config/hypr/monitors.conf
|
||||
# source = ~/.config/hypr/monitors.conf
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
|
||||
wallpaper = eDP-1,/home/greg/Pictures/Wallpapers/current/lemon_spray_black_166821_1920x1080.jpg
|
||||
wallpaper = HDMI-A-1,/home/greg/Pictures/Wallpapers/current/lemon_spray_black_166821_1920x1080.jpg
|
||||
wallpaper = eDP-1,/home/greg/Pictures/Wallpapers/ryabina.jpg
|
||||
wallpaper = HDMI-A-1,/home/greg/Pictures/Wallpapers/ryabina.jpg
|
||||
ipc = on
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
# Generated by nwg-displays on 2025-09-17 at 19:51:26. Do not edit manually.
|
||||
# Generated by nwg-displays on 2025-09-20 at 10:12:32. Do not edit manually.
|
||||
|
||||
monitor=eDP-1,1920x1080@60.01,0x0,1.0
|
||||
monitor=eDP-1,1920x1080@60.01,2560x0,1.0
|
||||
monitor=HDMI-A-1,3840x2160@30.0,0x0,1.5
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
|
||||
WALLPAPER_DIR="$HOME/Pictures/Wallpapers/current/"
|
||||
INTRO_DIR="$HOME/Pictures/Wallpapers/intro/"
|
||||
DELAY=3m
|
||||
DELAY=5m
|
||||
|
||||
intro() {
|
||||
if [ -z "$(ls -A "$WALLPAPER_DIR")" ]; then
|
||||
@@ -39,7 +39,6 @@ random_wallpaper() {
|
||||
WALLPAPER=$(find "$WALLPAPER_DIR" -type l ! -name "$(basename "$CURRENT_WALL")" | shuf -n 1)
|
||||
|
||||
# Apply the selected wallpaper
|
||||
hyprctl hyprpaper unload all
|
||||
hyprctl hyprpaper reload $1,"$WALLPAPER"
|
||||
|
||||
if [ $? -ne 0 ]; then
|
||||
@@ -51,10 +50,20 @@ random_wallpaper() {
|
||||
fi
|
||||
|
||||
echo "Set random wallpaper to $WALLPAPER"
|
||||
sleep 5
|
||||
}
|
||||
|
||||
loop() {
|
||||
while true; do
|
||||
hyprctl hyprpaper listactive
|
||||
if [ $? == 0 ]; then
|
||||
break
|
||||
fi
|
||||
sleep 1
|
||||
done
|
||||
while true; do
|
||||
hyprctl hyprpaper unload all
|
||||
# TODO: get monitors dynamically
|
||||
random_wallpaper "eDP-1"
|
||||
random_wallpaper "HDMI-A-1"
|
||||
sleep "$DELAY"
|
||||
|
||||
14
hypr/scripts/reserved_space.sh
Executable file
14
hypr/scripts/reserved_space.sh
Executable file
@@ -0,0 +1,14 @@
|
||||
#!/usr/bin/env sh
|
||||
|
||||
FILE="/tmp/reserved_space_enabled"
|
||||
|
||||
if [ ! -e "$FILE" ]; then
|
||||
touch "$FILE"
|
||||
hyprctl --batch "\
|
||||
keyword monitor eDP-1,addreserved,0,0,0,625;"
|
||||
exit
|
||||
fi
|
||||
|
||||
rm "$FILE"
|
||||
hyprctl --batch "\
|
||||
keyword monitor eDP-1,addreserved,0,0,0,0;"
|
||||
0
hypr/workspaces.conf
Normal file
0
hypr/workspaces.conf
Normal file
Reference in New Issue
Block a user