Multi-monitor/notify-send stuff

This commit is contained in:
agryphus 2023-08-20 16:47:41 -04:00
parent 31e5fd4f44
commit d76141dee9
3 changed files with 41 additions and 0 deletions

View file

@ -1,3 +1,37 @@
#!/bin/sh
userresources=$HOME/.Xresources
usermodmap=$HOME/.Xmodmap
sysresources=/etc/X11/xinit/.Xresources
sysmodmap=/etc/X11/xinit/.Xmodmap
# merge in defaults and keymaps
if [ -f $sysresources ]; then
xrdb -merge $sysresources
fi
if [ -f $sysmodmap ]; then
xmodmap $sysmodmap
fi
if [ -f "$userresources" ]; then
xrdb -merge "$userresources"
fi
if [ -f "$usermodmap" ]; then
xmodmap "$usermodmap"
fi
# start some nice programs
if [ -d /etc/X11/xinit/xinitrc.d ] ; then
for f in /etc/X11/xinit/xinitrc.d/?*.sh ; do
[ -x "$f" ] && . "$f"
done
unset f
fi
xrandr --setprovideroutputsource modesetting NVIDIA-0
xrandr --auto
feh --bg-scale --no-fehbg ~/.config/wallpaper

3
.local/bin/change-layout Executable file
View file

@ -0,0 +1,3 @@
#!/bin/sh
autorandr --list | dmenu | xargs -I "layout" autorandr layout && feh --bg-scale --no-fehbg "$HOME/.config/wallpaper" && xset r rate 300 50

View file

@ -0,0 +1,4 @@
[D-BUS Service]
Name=org.freedesktop.Notifications
Exec=/usr/lib/notification-daemon-1.0/notification-daemon