diff --git a/config/i3/autorandrloadmenu b/config/i3/autorandrloadmenu index 81000eb..14c5a13 100755 --- a/config/i3/autorandrloadmenu +++ b/config/i3/autorandrloadmenu @@ -2,7 +2,7 @@ shopt -s nullglob globstar -profile=$(echo -e "common\nhorizontal\nvertical\n$(autorandr 2>&1 | cut -d' ' -f1)" | rofi -dmenu -p "Load profile" "$@") +profile=$(echo -e "common\nclone-largest\nhorizontal\nvertical\n$(autorandr 2>&1 | cut -d' ' -f1)" | rofi -dmenu -p "Load profile" "$@") [[ -n $profile ]] || exit diff --git a/config/i3/config b/config/i3/config index b1a489d..4d36d9b 100644 --- a/config/i3/config +++ b/config/i3/config @@ -396,7 +396,7 @@ exec --no-startup-id unclutter -root # Hide mouse cursor after some time exec --no-startup-id keynav # Keyboard cursor controller #exec --no-startup-id mpd # Music Player Daemon (handled by systemd) # exec --no-startup-id ~/.config/i3/ashuffle # MPD Auto-refill -exec --no-startup-id autorandr --change # Screen configuration and everything that depends on it +exec --no-startup-id autorandr --change --force # Screen configuration and everything that depends on it exec --no-startup-id ~/.config/i3/batteryNotify -d # Battery state notification exec --no-startup-id ~/.config/i3/screentime # Activity tracker diff --git a/config/lemonbar/bar.py b/config/lemonbar/bar.py index 75930ca..d913faa 100755 --- a/config/lemonbar/bar.py +++ b/config/lemonbar/bar.py @@ -46,7 +46,7 @@ if __name__ == "__main__": # Personal PERSONAL_THEME = 0 Bar.addSectionAll(KeystoreProvider(theme=PERSONAL_THEME), BarGroupType.RIGHT) - Bar.addSectionAll(NotmuchUnreadProvider(dir='~/.mail/', theme=PERSONAL_THEME), BarGroupType.RIGHT) + # Bar.addSectionAll(NotmuchUnreadProvider(dir='~/.mail/', theme=PERSONAL_THEME), BarGroupType.RIGHT) Bar.addSectionAll(TaskWarriorProvider(theme=PERSONAL_THEME), BarGroupType.RIGHT) # Bar.addSectionAll(TodoProvider(dir='~/.vdirsyncer/currentCalendars/', theme=PERSONAL_THEME), BarGroupType.RIGHT) diff --git a/config/lemonbar/launch.sh b/config/lemonbar/launch.sh index 01267ff..42c747e 100755 --- a/config/lemonbar/launch.sh +++ b/config/lemonbar/launch.sh @@ -1,13 +1,11 @@ #!/usr/bin/env sh -# TODO Make this better - DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null && pwd )" ex="$DIR/bar.py" # Terminate already running bar instances -ps -af | grep "python3 $ex" | grep -v grep | awk '{print $2}' | while read p; do kill $p; done +ps x | grep "python3 $ex" | grep -v grep | awk '{print $1}' | while read p; do kill $p; done killall -q lemonbar $ex diff --git a/config/scripts/install-arch b/config/scripts/install-arch index 43620fa..e3395a0 100755 --- a/config/scripts/install-arch +++ b/config/scripts/install-arch @@ -26,6 +26,7 @@ EndSection ' | sudo tee /etc/X11/xorg.conf.d/00-keyboard.conf # Backlight (for Intel Devices) +sudo pacman -S xf86-video-intel --needed echo '# File wrote by ~/.dotfiles/config/scripts/install-arch Section "Device" @@ -60,16 +61,17 @@ EndSection ' | sudo tee /etc/X11/xorg.conf.d/50-joystick.conf # Install same rules with nvidia-xrun -if -d /etc/X11/nvidia-xorg.conf +if [ -d /etc/X11/nvidia-xorg.conf.d ] then function link { # filename - ln -s /etc/X11/nvidia-xorg.conf/$1 ../xorg.conf.d/$1 + sudo ln -s ../xorg.conf.d/$1 /etc/X11/nvidia-xorg.conf.d/$1 } link 00-keyboard.conf link 20-intel.conf # Yep link 30-touchpad.conf link 50-joystick.conf fi +exit 0 # Uninstall Manjaro's pamac if pacman -Q pamac &> /dev/null diff --git a/config/scripts/softwareList b/config/scripts/softwareList index 117fddd..4b1fd70 100755 --- a/config/scripts/softwareList +++ b/config/scripts/softwareList @@ -114,9 +114,7 @@ i zsh-syntax-highlighting # Shell highlighting # Monitoring utilities i ncdu # Explore directories by weight on disk i lsof # Find who/what uses the files -i htop # List process by resources i pv # Allow to show progress in pipe -i progress # Show progress of functions # Network utilities i openssh # SSH connections @@ -225,6 +223,9 @@ then i visidata # CSV file reader i insect # Unit calculator i zbar # Read QR codes + i htop # View process usage + $SUPERUSER && i iotop # View process I/O + i progress # Show progress of functions fi diff --git a/config/shell/shrc b/config/shell/shrc index 51461b8..5247692 100644 --- a/config/shell/shrc +++ b/config/shell/shrc @@ -32,8 +32,8 @@ alias ll="ls -l" alias la="ls -la" alias s='sudo -s -E' alias n='urxvtc &' -alias x='startx; logout' -alias nx='nvidia-xrun; logout' +alias x='startx $HOME/.config/xinitrc; logout' +alias nx='nvidia-xrun $HOME/.config/xinitrc; logout' # For programs that think $HOME is a reasonable place to put their junk # and don't allow the user to change those questionable choices diff --git a/xinitrc b/config/xinitrc similarity index 100% rename from xinitrc rename to config/xinitrc