Skip to content

Commit

Permalink
hyprpaper: add config
Browse files Browse the repository at this point in the history
  • Loading branch information
nooop3 committed Nov 24, 2024
1 parent b5cac1a commit 5caaeb9
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 2 deletions.
13 changes: 13 additions & 0 deletions XDG_CONFIG_HOME/hypr/handle_monitor_connect.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
#!/bin/sh

handle() {
case $1 in monitoradded*)
hyprctl dispatch moveworkspacetomonitor "1 1"
# hyprctl dispatch moveworkspacetomonitor "2 1"
# hyprctl dispatch moveworkspacetomonitor "4 1"
# hyprctl dispatch moveworkspacetomonitor "5 1"
;;
esac
}

socat - "UNIX-CONNECT:$XDG_RUNTIME_DIR/hypr/${HYPRLAND_INSTANCE_SIGNATURE}/.socket2.sock" | while read -r line; do handle "$line"; done
5 changes: 3 additions & 2 deletions XDG_CONFIG_HOME/hypr/hyprland.conf
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
# See https://wiki.hyprland.org/Configuring/Monitors/
monitor=eDP-1,preferred,0x0,auto
monitor=DP-1,preferred,-320x-1080,2
monitor = , preferred, auto, 1
monitor= , preferred, auto, 1

###################
### MY PROGRAMS ###
Expand All @@ -40,10 +40,11 @@ $menu = wofi --show drun

# exec-once = $terminal
# exec-once = nm-applet &
exec-once = waybar & hypridle
exec-once = waybar & hypridle & hyprpaper
# exec-once = waybar & hyprpaper & firefox
exec-once = /usr/lib/polkit-kde-authentication-agent-1
exec-once = dbus-update-activation-environment --systemd WAYLAND_DISPLAY XDG_CURRENT_DESKTOP
exec-once = handle_monitor_connect.sh


#############################
Expand Down
3 changes: 3 additions & 0 deletions XDG_CONFIG_HOME/hypr/hyprpaper.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
$wallpaper = ~/Pictures/wallpapers/Honkadaloonga.png
preload = $wallpaper
wallpaper = , $wallpaper

0 comments on commit 5caaeb9

Please sign in to comment.