From 1ba367dcca9e97d041841d68964e1260ebb57b0c Mon Sep 17 00:00:00 2001 From: Santiago Lo Coco Date: Sun, 5 Jan 2025 19:24:33 +0100 Subject: [PATCH] Move x11 files --- dotfiles/.config/X11/xinitrc | 63 -------------------- dotfiles/{.xprofile => .config/X11/xprofile} | 9 +-- 2 files changed, 5 insertions(+), 67 deletions(-) delete mode 100644 dotfiles/.config/X11/xinitrc rename dotfiles/{.xprofile => .config/X11/xprofile} (78%) diff --git a/dotfiles/.config/X11/xinitrc b/dotfiles/.config/X11/xinitrc deleted file mode 100644 index a37f565..0000000 --- a/dotfiles/.config/X11/xinitrc +++ /dev/null @@ -1,63 +0,0 @@ -# Night light -redshift -P -O 2750 &> /dev/null & - -# Disable mouse acceleration -xset m 0 0 - -xset r rate 300 50 - -# Restore wallpaper -nitrogen --restore 2> /dev/null & - -# Run dwmblocks -dwmblocks & - -# Launch dunst -dunst 2> /dev/null & - -# Launch clipboard daemon -clipmenud & - -# Hides mouse -unclutter & - -# Compositor -#picom & -#picom --experimental-backends & -#xcompmgr -c & -#xcompmgr -c -C -t-5 -l-5 -r4.2 -o.55 & - -# For java starting as blank windows -#wmname LG3D - -# Sound configuration -~/.local/bin/sound & - -if [[ -v LAPTOP ]]; then - # Enable automatic fan control - macfanctld - - # Set brightness - xbacklight -set 45 - - # Set the governor - sudo ~/.local/bin/setGovernor > /dev/null & -else - # Faster scrolling - imwheel -b 45 - - # Move mouse focus to middle of first screen - xdotool mousemove --sync --screen=$1 960 500 - - # Restart network - ~/.local/bin/netRestart & -fi - -# Fix dbus BUG with GNOME keyring -dbus-update-activation-environment --systemd DISPLAY - -# Start GNOME keyring -eval $(gnome-keyring-daemon --start) -export SSH_AUTH_SOCK - -exec $HOME/.local/bin/startdwm diff --git a/dotfiles/.xprofile b/dotfiles/.config/X11/xprofile similarity index 78% rename from dotfiles/.xprofile rename to dotfiles/.config/X11/xprofile index 1d66381..c9ae274 100644 --- a/dotfiles/.xprofile +++ b/dotfiles/.config/X11/xprofile @@ -1,3 +1,5 @@ +#!/bin/sh + redshift -P -O 2750 &> /dev/null & xset m 0 0 @@ -17,17 +19,16 @@ picom & #wmname LG3D -~/.local/bin/sound & -~/.local/bin/autolock & disown +"$HOME/.local/bin/sound" & + +"$HOME/.local/bin/autolock" & disown if [[ -v LAPTOP ]]; then macfanctld xbacklight -set 45 - sudo ~/.local/bin/setGovernor > /dev/null & else imwheel -b 45 xdotool mousemove --sync --screen=$1 960 500 - ~/.local/bin/netRestart & fi dbus-update-activation-environment --systemd DISPLAY