initial, no firefox yet :(

This commit is contained in:
voidarclabs
2025-07-22 16:18:19 +01:00
commit 221bcbf568
1095 changed files with 112089 additions and 0 deletions

View File

@@ -0,0 +1,5 @@
if [[ $(hyprctl activewindow -j | jq -r ".class") == "Steam" ]]; then
xdotool windowunmap $(xdotool getactivewindow)
else
hyprctl dispatch killactive ""
fi

View File

@@ -0,0 +1,10 @@
#!/usr/bin/env sh
# Use different directory on NixOS
if [ -d /run/current-system/sw/libexec ]; then
libDir=/run/current-system/sw/libexec
else
libDir=/usr/lib
fi
${libDir}/polkit-gnome/polkit-gnome-authentication-agent-1 &

View File

@@ -0,0 +1,20 @@
#!/usr/bin/env bash
sleep 1
killall xdg-desktop-portal-hyprland
killall xdg-desktop-portal-gnome
killall xdg-desktop-portal-kde
killall xdg-desktop-portal-lxqt
killall xdg-desktop-portal-wlr
killall xdg-desktop-portal
sleep 1
# Use different directory on NixOS
if [ -d /run/current-system/sw/libexec ]; then
libDir=/run/current-system/sw/libexec
else
libDir=/usr/lib
fi
$libDir/xdg-desktop-portal-hyprland &
sleep 2
$libDir/xdg-desktop-portal &

63
.config/scripts/screenshot.sh Executable file
View File

@@ -0,0 +1,63 @@
#!/usr/bin/env sh
# Restores the shader after screenhot has been taken
restore_shader() {
if [ -n "$shader" ]; then
hyprshade on "$shader"
fi
}
# Saves the current shader and turns it off
save_shader() {
shader=$(hyprshade current)
hyprshade off
trap restore_shader EXIT
}
save_shader # Saving the current shader
if [ -z "$XDG_PICTURES_DIR" ]; then
XDG_PICTURES_DIR="$HOME/Pictures"
fi
scrDir=$(dirname "$(realpath "$0")")
source $scrDir/globalcontrol.sh
swpy_dir="${confDir}/swappy"
save_dir="${2:-$XDG_PICTURES_DIR/Screenshots}"
save_file=$(date +'%y%m%d_%Hh%Mm%Ss_screenshot.png')
temp_screenshot="/tmp/screenshot.png"
mkdir -p $save_dir
mkdir -p $swpy_dir
echo -e "[Default]\nsave_dir=$save_dir\nsave_filename_format=$save_file" >$swpy_dir/config
function print_error
{
cat <<"EOF"
./screenshot.sh <action>
...valid actions are...
p : print all screens
s : snip current screen
sf : snip current screen (frozen)
m : print focused monitor
EOF
}
case $1 in
p) # print all outputs
grimblast copysave screen $temp_screenshot && restore_shader && swappy -f $temp_screenshot ;;
s) # drag to manually snip an area / click on a window to print it
grimblast copysave area $temp_screenshot ;; #&& restore_shader && swappy -f $temp_screenshot ;;
sf) # frozen screen, drag to manually snip an area / click on a window to print it
grimblast --freeze copysave area $temp_screenshot && restore_shader && swappy -f $temp_screenshot ;;
m) # print focused monitor
grimblast copysave output $temp_screenshot && restore_shader && swappy -f $temp_screenshot ;;
*) # invalid option
print_error ;;
esac
rm "$temp_screenshot"
if [ -f "${save_dir}/${save_file}" ]; then
notify-send -a "t1" -i "${save_dir}/${save_file}" "saved in ${save_dir}"
fi

5
.config/scripts/wlogout.sh Executable file
View File

@@ -0,0 +1,5 @@
#!/usr/bin/env sh
wlogout -b 5 -T 420px -B 420px -L 600px -R 600px