More modifications

This commit is contained in:
Geoffrey Frogeye 2020-01-06 16:23:50 +01:00
parent 73cbcbb3f5
commit 2b2680069f
8 changed files with 13 additions and 12 deletions

View File

@ -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

View File

@ -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

View File

@ -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)

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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