xorg: automatically start desktop portal

master
tiyn 2 months ago
parent 921daaf1f4
commit ce74787e96

@ -1,13 +1,15 @@
#!/bin/sh #!/bin/sh
xset r rate 300 50 & # Speed xrate up xset r rate 300 50 & # Speed xrate up
unclutter & # Remove mouse when idle unclutter & # Remove mouse when idle
dunst & # dunst for notifications dunst & # dunst for notifications
redshift & # redshift for saving your eyes redshift & # redshift for saving your eyes
$STATUSBAR & # for refreshing the statusbar $STATUSBAR & # for refreshing the statusbar
xcompmgr & # compositor for transparency xcompmgr & # compositor for transparency
sxhkd & # for shortcuts sxhkd & # for shortcuts
(sleep 10 ; pkill -RTMIN+4 $STATUSBAR) & # reload volume section of statusbar (sleep 10 ; pkill -RTMIN+4 $STATUSBAR) & # reload volume section of statusbar
dunstctl rule dnd_low disable & # disable dnd for low urgencies dunstctl rule dnd_low disable & # disable dnd for low urgencies
dunstctl rule dnd_normal disable & # disable dnd for normal urgencies dunstctl rule dnd_normal disable & # disable dnd for normal urgencies
easyeffects --gapplication-service & # start audio server easyeffects --gapplication-service & # start audio server
systemctl --user import-environment DISPLAY XAUTHORITY # finally start the desktop portal
systemctl --user restart xdg-desktop-portal-gtk # second part of the desktop portal

Loading…
Cancel
Save