This commit is contained in:
2025-09-24 12:22:25 +03:00
parent 92ff7446e9
commit 0a97ca1e18
11 changed files with 59 additions and 26 deletions

View File

@@ -67,10 +67,10 @@ bindl = , XF86MonBrightnessDown, exec, brightnessctl -q s 10%-
bindl = , XF86AudioRaiseVolume, exec, wpctl set-volume @DEFAULT_AUDIO_SINK@ 5%+
bindl = , XF86AudioLowerVolume, exec, wpctl set-volume @DEFAULT_AUDIO_SINK@ 5%-
bindl = , XF86AudioMute, exec, wpctl set-mute @DEFAULT_AUDIO_SINK@ toggle
bindl = , XF86AudioPlay, exec, playerctl -p cmus,elisa,cider,spotify,OCbwoy3_s_iPhone,OCbwoy3__s_iPhone,OCbwoy3___s_iPhone play-pause
bindl = , XF86AudioPause, exec, playerctl -p cmus,elisa,cider,spotify,OCbwoy3_s_iPhone,OCbwoy3__s_iPhone,OCbwoy3___s_iPhone pause
bindl = , XF86AudioNext, exec, playerctl -p cmus,elisa,cider,spotify,OCbwoy3_s_iPhone,OCbwoy3__s_iPhone,OCbwoy3___s_iPhone next
bindl = , XF86AudioPrev, exec, playerctl -p cmus,elisa,cider,spotify,OCbwoy3_s_iPhone,OCbwoy3__s_iPhone,OCbwoy3___s_iPhone previous
bindl = , XF86AudioPlay, exec, playerctl -p chromium,cmus,elisa,cider,spotify,OCbwoy3_s_iPhone,OCbwoy3__s_iPhone,OCbwoy3___s_iPhone play-pause
bindl = , XF86AudioPause, exec, playerctl -p chromium,cmus,elisa,cider,spotify,OCbwoy3_s_iPhone,OCbwoy3__s_iPhone,OCbwoy3___s_iPhone pause
bindl = , XF86AudioNext, exec, playerctl -p chromium,cmus,elisa,cider,spotify,OCbwoy3_s_iPhone,OCbwoy3__s_iPhone,OCbwoy3___s_iPhone next
bindl = , XF86AudioPrev, exec, playerctl -p chromium,cmus,elisa,cider,spotify,OCbwoy3_s_iPhone,OCbwoy3__s_iPhone,OCbwoy3___s_iPhone previous
bindl = , XF86AudioMicMute, exec, pactl set-source-mute @DEFAULT_SOURCE@ toggle
bindl = , XF86Lock, exec, pkill -USR1 hyprlock || hyprlock

View File

@@ -20,8 +20,8 @@ bind = $mainMod CTRL SHIFT, PRINT, exec, bash ~/config/scripts/edit-last-screens
bind = ALT, F9, pass, class:^(com\.obsproject\.Studio)$
# Music volume control
bindl = $mainMod, XF86AudioRaiseVolume, exec, playerctl -p cmus,elisa,cider,spotify,OCbwoy3_s_iPhone,OCbwoy3__s_iPhone,OCbwoy3___s_iPhone volume 0.02+
bindl = $mainMod, XF86AudioLowerVolume, exec, playerctl -p cmus,elisa,cider,spotify,OCbwoy3_s_iPhone,OCbwoy3__s_iPhone,OCbwoy3___s_iPhone volume 0.02-
bindl = $mainMod, XF86AudioRaiseVolume, exec, playerctl -p chromium,cmus,elisa,cider,spotify,OCbwoy3_s_iPhone,OCbwoy3__s_iPhone,OCbwoy3___s_iPhone volume 0.02+
bindl = $mainMod, XF86AudioLowerVolume, exec, playerctl -p chromium,cmus,elisa,cider,spotify,OCbwoy3_s_iPhone,OCbwoy3__s_iPhone,OCbwoy3___s_iPhone volume 0.02-
# Screen locker and logout keybinds
bind = CTRL ALT, DELETE, exec, wlogout

View File

@@ -5,7 +5,7 @@ ecosystem {
permission = /nix/store/[A-Za-z0-9]+\-(wrapped-)?(grim|hyprlock|xdg-desktop-portal-hyprland|obs-studio|hyprpicker)\-.*, screencopy, allow
permission = /(usr/)?bin/(grim|hyprlock|xdg-desktop-portal-hyprland|obs-studio|hyprpicker), screencopy, allow
permission = /run/current-system/sw/bin/(grim|hyprlock|xdg-desktop-portal-hyprland|obs-studio|hyprpicker), screencopy, allow
permission = /usr/libexec/xdg-desktop-portal-hyprland, screencopy, allow
# hyprlang noerror true
@@ -16,4 +16,4 @@ source = ~/config/.hyprfail.conf
# windowrulev2 = noscreenshare, class:^(equibop)$
windowrulev2 = noscreenshare,title:.*(Swedbank|Checkout|Billing).*
windowrulev2 = noscreenshare,title:.*([S|s]wedbank|[Cc]heckout|[Bb]illing).*

View File

@@ -1,5 +1,5 @@
# preload = ~/.config/hypr/wallpaper.png
# wallpaper = ,~/.config/hypr/wallpaper.png
preload = ~/.config/hypr/wallpaper.png
wallpaper = ,~/.config/hypr/wallpaper.png
preload = ~/Pictures/Wallpapers/kralsei.jpeg
wallpaper = ,~/Pictures/Wallpapers/kralsei.jpeg
# preload = ~/.cache/.wallpaper
# wallpaper = ,~/.cache/.wallpaper

View File

@@ -15,14 +15,15 @@
},
"mpris": {
"players": ["cmus", "elisa", "cider", "OCbwoy3_s_iPhone"],
"players": ["chromium", "cmus", "elisa", "cider", "spotify", "OCbwoy3_s_iPhone"],
"interval": 1,
"on-scroll-up": "playerctl -p cmus,elisa,cider,OCbwoy3_s_iPhone volume 0.05+",
"on-scroll-down": "playerctl -p cmus,elisa,cider,OCbwoy3_s_iPhone volume 0.05-",
"on-click": "playerctl -p cmus,elisa,cider,OCbwoy3_s_iPhone play-pause",
"on-click-right": "playerctl -p cmus,elisa,cider,OCbwoy3_s_iPhone next",
"on-click-middle": "playerctl -p cmus,elisa,cider,OCbwoy3_s_iPhone previous",
"on-scroll-up": "playerctl -p chromium,cmus,elisa,cider,spotify,OCbwoy3_s_iPhone volume 0.05+",
"on-scroll-down": "playerctl -p chromium,cmus,elisa,cider,spotify,OCbwoy3_s_iPhone volume 0.05-",
"on-click": "playerctl -p chromium,cmus,elisa,cider,spotify,OCbwoy3_s_iPhone play-pause",
"on-click-right": "playerctl -p chromium,cmus,elisa,cider,spotify,OCbwoy3_s_iPhone next",
"on-click-middle": "playerctl -p chromium,cmus,elisa,cider,spotify,OCbwoy3_s_iPhone previous",
"format": " {artist} — {title}",
// "format": " {title}",
"tooltip-format": "{album}",
"tooltip-format-stopped": "",
"format-stopped": "",

2
scripts/gentoo-init.sh Normal file → Executable file
View File

@@ -1,7 +1,7 @@
#!/usr/bin/env bash
if [[ "$(hostname)" == "gentoo" ]]; then
notify-send "ocbwoy3-gentoo-debug" "init"
notify-send "Hyprland" "Init gentoo stuff"
hyprctl dispatch exec hyprpaper
hyprctl dispatch exec pipewire
hyprctl dispatch exec pipewire-pulse

View File

@@ -6,9 +6,18 @@ hyprctl dispatch exec "GTK_THEME=Adwaita LC_TIME=lv_LV.UTF-8 waybar -c ~/config/
hyprctl reload > /dev/null &
ROBLOX_PID="$(pidof sober)"
HYPRPAPER_PID="$(pidof hyprpaper)"
# echo ${#ROBLOX_PID}
if [ ${#ROBLOX_PID} -lt 1 ]; then
trap "rm /tmp/.regretevator_state" EXIT > /dev/null
fi
# shit
if [ ${#HYPRPAPER_PID} -lt 1 ]; then
hyprctl dispatch exec hyprpaper
sleep 1
bash ~/config/scripts/load-wallpaper.sh
fi

11
scripts/load-wallpaper.sh Normal file → Executable file
View File

@@ -6,5 +6,14 @@ rm -r ~/.cache/wal
# wal -stn -a 90 -i $HOME/wallpaper/$WALLPAPER
if [[ "$(hostname)" == "gentoo" ]]; then
hyprctl hyprpaper unload all
hyprctl hyprpaper preload $WALLPAPER
hyprctl hyprpaper wallpaper ,$WALLPAPER
fi
if [[ "$(hostname)" != "gentoo" ]]; then
swww img $WALLPAPER --transition-fps 120 --transition-duration 2 -t wipe &
bash ~/dotfiles/scripts/hot-reload.sh
fi
# bash ~/config/scripts/hot-reload.sh

0
scripts/open-roblox-game.sh Normal file → Executable file
View File

16
scripts/select-wallpaper.sh Normal file → Executable file
View File

@@ -6,7 +6,7 @@ if [ ${#WALLPAPER} -gt 0 ] ; then
rm -f $HOME/.cache/.wallpaper
echo "$HOME/Pictures/Wallpapers/$WALLPAPER" >> $HOME/.cache/.wallpaper
echo "$HOME/Pictures/Wallpapers/$WALLPAPER" > $HOME/.cache/.wallpaper
rm -rf $HOME/.cache/wal
@@ -14,7 +14,21 @@ if [ ${#WALLPAPER} -gt 0 ] ; then
# wal -stn -a 90 -i $HOME/wallpaper/$WALLPAPER
if [[ "$(hostname)" != "gentoo" ]]; then
swww img $HOME/Pictures/Wallpapers/$WALLPAPER --transition-fps 300 --transition-duration 2 --transition-type simple --transition-step 3 &
fi
if [[ "$(hostname)" == "gentoo" ]]; then
HYPRPAPER_PID="$(pidof hyprpaper)"
if [ ${#HYPRPAPER_PID} -lt 1 ]; then
hyprctl dispatch exec hyprpaper
sleep 1
fi
hyprctl hyprpaper unload all
hyprctl hyprpaper preload $HOME/Pictures/Wallpapers/$WALLPAPER
hyprctl hyprpaper wallpaper ,$HOME/Pictures/Wallpapers/$WALLPAPER
fi
# bash ~/dotfiles/scripts/hot-reload.sh
else

View File

@@ -2,7 +2,7 @@
sleep 1
notify-send "ocbwoy3-gentoo-debug" "ran xdg setup"
# notify-send "ocbwoy3" "ran xdg setup"
# kill all possible running xdg-desktop-portals
kill -9 $(pidof xdg-desktop-portal-hyprland)
@@ -18,10 +18,10 @@ sleep 1
hyprctl dispatch exec /usr/lib/xdg-desktop-portal-hyprland &
sleep 2
notify-send "ocbwoy3-gentoo-debug" "xdph"
# notify-send "ocbwoy3" "xdph"
# start xdg-desktop-portal
hyprctl dispatch exec /usr/lib/xdg-desktop-portal &
sleep 1
notify-send "ocbwoy3-gentoo-debug" "xdp"
# notify-send "ocbwoy3" "xdp"