···7474proc_reversed = false
75757676#* Show processes as a tree.
7777-proc_tree = true
7777+proc_tree = false
78787979#* Use the cpu graph colors in the process list.
8080proc_colors = true
···11general {
22 lock_cmd = pidof hyprlock || hyprlock
33 before_sleep_cmd = loginctl lock-session
44- after_sleep_cmd = hyprctl dispatch dpms on
44+ after_sleep_cmd = wlopm --on '*'
55}
6677# lock after 10min of inactivity
···1313# turn off monitor after 11min of inactivity
1414listener {
1515 timeout = 660 # 11min
1616- on-timeout = hyprctl dispatch dpms off
1717- on-resume = hyprctl dispatch dpms on && brightnessctl -r
1616+ on-timeout = wlopm --off '*'
1717+ on-resume = wlopm --on '*' && brightnessctl -r
1818}
19192020# suspend after 2h of inactivity
+9
.config/kanshi/config
···11+output "Samsung Electric Company LC49G95T H4ZTA00002" {
22+ mode 5120x1440@239.761
33+ position 0,0
44+ alias $HOME
55+}
66+77+profile home {
88+ output $HOME enable
99+}
+151
.config/river/init
···11+#!/usr/bin/env fish
22+33+# env
44+## general
55+set -gx TERMINAL ghostty
66+set -gx TERMCMD ghostty
77+set -gx VISUAL nvim
88+set -gx EDITOR nvim
99+set -gx BROWSER qutebrowser
1010+set -gx MANPAGER "nvim +Man!"
1111+1212+## nvidia
1313+set -gx GDK_BACKEND "wayland,x11"
1414+set -gx GBM_BACKEND nvidia-drm
1515+set -gx LIBVA_DRIVER_NAME nvidia
1616+set -gx __GLX_VENDOR_LIBRARY_NAME nvidia
1717+set -gx SDL_VIDEODRIVER wayland
1818+set -gx CLUTTER_BACKEND wayland
1919+set -gx MOZ_ENABLE_WAYLAND 1
2020+set -gx MOZ_DISABLE_RDD_SANDBOX 1
2121+set -gx _JAVA_AWT_WM_NONREPARENTING 1
2222+set -gx QT_AUTO_SCREEN_SCALE_FACTOR 1
2323+set -gx QT_QPA_PLATFORM wayland
2424+set -gx PROTON_ENABLE_NGX_UPDATER 1
2525+set -gx NVD_BACKEND direct
2626+set -gx __GL_GSYNC_ALLOWED 1
2727+set -gx __GL_VRR_ALLOWED 1
2828+2929+## electron
3030+set -gx ELECTRON_OZONE_PLATFORM_HINT auto
3131+3232+## qt
3333+set -gx QT_QPA_PLATFORMTHEME qt6ct
3434+3535+# output
3636+3737+# input
3838+riverctl keyboard-layout -options grp:alt_space_toggle us,il
3939+riverctl set-repeat 50 300
4040+riverctl focus-follows-cursor normal
4141+riverctl hide-cursor when-typing enabled
4242+riverctl set-cursor-warp on-focus-change
4343+4444+# layout
4545+riverctl default-layout bsp-layout
4646+river-bsp-layout &
4747+4848+riverctl border-color-focused 0xffffff
4949+riverctl border-color-unfocused 0x555555
5050+riverctl border-color-urgent 0xff0000
5151+riverctl border-width 1
5252+5353+# mappings
5454+set mod Super
5555+5656+riverctl map -repeat normal $mod H focus-view left
5757+riverctl map -repeat normal $mod J focus-view down
5858+riverctl map -repeat normal $mod K focus-view up
5959+riverctl map -repeat normal $mod L focus-view right
6060+riverctl map -repeat normal $mod N focus-view next
6161+6262+riverctl map -repeat normal $mod+Shift H swap left
6363+riverctl map -repeat normal $mod+Shift J swap down
6464+riverctl map -repeat normal $mod+Shift K swap up
6565+riverctl map -repeat normal $mod+Shift L swap right
6666+riverctl map -repeat normal $mod+Shift N swap next
6767+6868+set resize_amount 0.05
6969+riverctl map -repeat normal $mod+Control H send-layout-cmd bsp-layout "--dec-vsplit $resize_amount"
7070+riverctl map -repeat normal $mod+Control J send-layout-cmd bsp-layout "--inc-hsplit $resize_amount"
7171+riverctl map -repeat normal $mod+Control K send-layout-cmd bsp-layout "--dec-hsplit $resize_amount"
7272+riverctl map -repeat normal $mod+Control L send-layout-cmd bsp-layout "--inc-vsplit $resize_amount"
7373+7474+riverctl map normal $mod F toggle-float
7575+7676+riverctl map normal $mod W close
7777+riverctl map normal $mod Escape spawn hyprlock
7878+riverctl map normal $mod+Alt+Control+Shift Escape exit
7979+8080+riverctl map normal $mod Space spawn fuzzel
8181+riverctl map normal $mod Apostrophe spawn ron-menu-unified
8282+riverctl map normal $mod+Shift Escape spawn ron-menu-power
8383+riverctl map normal $mod+Shift S spawn "ron-capture-screenshot --region=region"
8484+riverctl map normal $mod+Alt S spawn "ron-capture-screenrecord --region=region"
8585+riverctl map normal $mod C spawn ron-menu-clip
8686+riverctl map normal $mod+Alt C spawn ron-menu-clip-img
8787+riverctl map normal $mod+Shift C spawn "hyprpicker --autocopy --format=hex --lowercase-hex"
8888+riverctl map normal $mod P spawn tessen
8989+riverctl map normal $mod E spawn "rofimoji --selector=fuzzel --skin-tone=medium-light --prompt='emoji> '"
9090+riverctl map normal $mod+Shift T spawn "ron-theme-set toggle"
9191+9292+riverctl map normal $mod N spawn "makoctl invoke"
9393+riverctl map normal $mod+Ctrl N spawn "makoctl dismiss"
9494+riverctl map normal $mod+Shift N spawn "makoctl dismiss --all"
9595+9696+riverctl declare-mode spawn
9797+riverctl map normal $mod O enter-mode spawn
9898+for _mod in $mod None
9999+ riverctl map spawn $_mod T spawn "$TERMINAL & riverctl enter-mode normal"
100100+ riverctl map spawn $_mod B spawn "$BROWSER & riverctl enter-mode normal"
101101+ riverctl map spawn $_mod+Alt B spawn "$BROWSER --target private-window & riverctl enter-mode normal"
102102+ riverctl map spawn $_mod Escape enter-mode normal
103103+end
104104+105105+riverctl declare-mode settings
106106+riverctl map normal $mod Comma enter-mode settings
107107+for _mod in $mod None
108108+ riverctl map settings $_mod S spawn "ron-menu-audio & riverctl enter-mode normal"
109109+ riverctl map settings $_mod B spawn "xdg-terminal-exec --app-id=ron.terminal.floating bluetui & riverctl enter-mode normal"
110110+ riverctl map settings $_mod U spawn "ron-menu-mount & riverctl enter-mode normal"
111111+ riverctl map settings $_mod W spawn "xdg-terminal-exec --app-id=ron.terminal.floating impala & riverctl enter-mode normal"
112112+ riverctl map settings $_mod Escape enter-mode normal
113113+end
114114+115115+for mode in normal locked
116116+ riverctl map $mode None XF86AudioRaiseVolume spawn "wpctl set-volume @DEFAULT_AUDIO_SINK@ 0.1+ -l 1.0"
117117+ riverctl map $mode None XF86AudioLowerVolume spawn "wpctl set-volume @DEFAULT_AUDIO_SINK@ 0.1-"
118118+ riverctl map $mode None XF86AudioMute spawn "wpctl set-mute @DEFAULT_AUDIO_SINK@ toggle"
119119+ riverctl map $mode None $mod XF86AudioRaiseVolume spawn "wpctl set-volume @DEFAULT_AUDIO_SOURCE@ 0.1+ -l 1.0"
120120+ riverctl map $mode None $mod XF86AudioLowerVolume spawn "wpctl set-volume @DEFAULT_AUDIO_SOURCE@ 0.1-"
121121+ riverctl map $mode None $mod XF86AudioMute spawn "wpctl set-mute @DEFAULT_AUDIO_SOURCE@ toggle"
122122+ riverctl map $mode None XF86AudioMicMute spawn "wpctl set-mute @DEFAULT_AUDIO_SOURCE@ toggle"
123123+ riverctl map $mode None XF86AudioPlay spawn "playerctl play-pause"
124124+ riverctl map $mode None XF86AudioPause spawn "playerctl play-pause"
125125+ riverctl map $mode None XF86AudioStop spawn "playerctl stop"
126126+ riverctl map $mode None XF86AudioPrev spawn "playerctl previous"
127127+ riverctl map $mode None XF86AudioNext spawn "playerctl next"
128128+end
129129+130130+# rules
131131+riverctl rule-add -app-id '*' ssd
132132+riverctl rule-add -app-id 'ron.terminal.floating' float
133133+riverctl rule-add -app-id '*firefox*' -title Picture-in-Picture float
134134+riverctl rule-add -app-id '*localsend*' float
135135+riverctl rule-add -app-id '*localsend*' dimensions 1100 700
136136+riverctl rule-add -app-id '*Share*' float
137137+riverctl rule-add -app-id '*Share*' dimensions 1100 700
138138+riverctl rule-add -app-id swayimg-picker float
139139+riverctl rule-add -app-id swayimg-picker dimensions 9999 9999 # take up the whole screen
140140+141141+# autostart
142142+systemctl --user start hyprpolkitagent.service
143143+playerctld daemon &
144144+udiskie --smart-tray &
145145+wl-paste --type text --watch cliphist stow &
146146+wl-paste --type image --watch cliphist stow &
147147+mako &
148148+kanshi &
149149+hypridle &
150150+waybar &
151151+ron-background-random ~/pictures/backgrounds &
···22# Changes the background to a randomly chosen image in a given directory
33# at a set interval.
4455+if test (pgrep -cf (basename (status filename))) -gt 1
66+ echo "Another instance already running. Exiting."
77+ exit 1
88+end
99+510set default_interval 3600 # 1 hour
611712set dir $argv[1]
···2631else
2732 set interval $default_interval
2833end
2929-3030-ron-lockfile "/tmp/randomize_background.lock"
31343235while true
3336 if pgrep gamemoded
-19
.local/bin/ron-lockfile
···11-#!/usr/bin/env fish
22-33-set lockfile $argv[1]
44-55-if test -e "$lockfile"
66- set pid (cat "$lockfile")
77-88- if ps -p $pid >/dev/null
99- echo "Another instance of this script is running (PID $pid). Exiting."
1010- echo "If you think this is a mistake, remove $lockfile."
1111- exit 1
1212- else
1313- rm -f "$lockfile"
1414- end
1515-end
1616-1717-echo $fish_pid >"$lockfile"
1818-1919-trap "rm -f \"$lockfile\"; exit 0" INT TERM EXIT