Basic updates.
This commit is contained in:
parent
e3d4ecc3b7
commit
3937811c9e
55
gaming-time
Executable file
55
gaming-time
Executable file
@ -0,0 +1,55 @@
|
||||
#!/bin/sh
|
||||
|
||||
disableCronJobs () {
|
||||
crontab -l | sed '2 s/./#&/' | crontab
|
||||
}
|
||||
|
||||
enableCronJobs () {
|
||||
crontab -l | sed '2s/^.//' | crontab
|
||||
}
|
||||
|
||||
wayland_off () {
|
||||
start-program wbg ~/pics/wallpapers/spooky_spill.jpg
|
||||
start-program waybar
|
||||
}
|
||||
|
||||
wayland_on () {
|
||||
kill-nicely wbg
|
||||
kill-nicely waybar
|
||||
}
|
||||
|
||||
x11_off () {
|
||||
start-program picom
|
||||
# start-program polybar top -r
|
||||
start-program xmobar ~/.config/xmobar/xmobarrc
|
||||
start-program unclutter --timeout 5
|
||||
xrandr --output eDP --set TearFree on
|
||||
sleep 2
|
||||
start-program trayer-srg --edge top --align right --widthtype request --padding 6 --iconspacing 7 --SetDockType true --SetPartialStrut true --expand true --monitor 1 --transparent true --alpha 0 --tint 0x303446 --height 27 -l
|
||||
}
|
||||
|
||||
x11_on () {
|
||||
kill-nicely picom
|
||||
# kill-nicely polybar
|
||||
kill-nicely xmobar
|
||||
kill-nicely trayer-srg
|
||||
kill-nicely unclutter
|
||||
xrandr --output eDP --set TearFree off
|
||||
}
|
||||
|
||||
if [ -f $HOME/.cache/gaming.lock ]; then
|
||||
[ $XDG_SESSION_TYPE = "wayland" ] && wayland_off || x11_off
|
||||
start-program transmission-daemon
|
||||
start-program syncthing
|
||||
nvidia-settings -a '[gpu:0]/GPUPowerMizerMode=2'
|
||||
rm $HOME/.cache/gaming.lock
|
||||
quick-notify "Gaming Time" "OFF"
|
||||
else
|
||||
[ $XDG_SESSION_TYPE = "wayland" ] && wayland_on || x11_on
|
||||
transmission-remote --exit
|
||||
syncthing cli operations shutdown
|
||||
kill-nicely ferdium
|
||||
nvidia-settings -a '[gpu:0]/GPUPowerMizerMode=1'
|
||||
touch $HOME/.cache/gaming.lock
|
||||
quick-notify "Gaming Time" "ON"
|
||||
fi
|
6
mouse-settings
Executable file
6
mouse-settings
Executable file
@ -0,0 +1,6 @@
|
||||
#!/bin/sh
|
||||
|
||||
id=$(xinput list --id-only 'MOSART Semi. 2.4G INPUT DEVICE Mouse')
|
||||
|
||||
xinput --set-prop $id 'libinput Accel Speed' -0.5
|
||||
xinput --set-prop $id 'libinput Accel Profile Enabled' 0, 1
|
2
recorder
2
recorder
@ -7,6 +7,8 @@ record () {
|
||||
videoQuality=15 # H264 QVal - Lower is better
|
||||
recordLocation=~/vids/yt
|
||||
|
||||
[ ! -d "$recordLocation" ] && mkdir "$recordLocation"
|
||||
|
||||
## Auto-Config - Use the last render device which should be the Intel GPU
|
||||
currentRes=$(xdpyinfo | grep dimensions | awk '{print $2}')
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user