From c8a534da02e3af0db8534dc14eb3556963a83298 Mon Sep 17 00:00:00 2001 From: Deven Blake Date: Wed, 17 Nov 2021 09:53:00 -0500 Subject: [PATCH] new changes --- dotfiles-old/.aliases | 1 + dotfiles-old/.config/displaym/.xinitrc | 20 ++++++++++++++++++-- dotfiles-old/.profile | 4 ++-- dotfiles-old/.vimrc | 1 + dotfiles-old/bin/batterymonitor | 2 +- 5 files changed, 23 insertions(+), 5 deletions(-) diff --git a/dotfiles-old/.aliases b/dotfiles-old/.aliases index 5ff4aac..84b55d1 100755 --- a/dotfiles-old/.aliases +++ b/dotfiles-old/.aliases @@ -40,4 +40,5 @@ webm() { ffmpeg -i $1 -c:v libvpx -b:v 1M -c:a libvorbis "$(printf "%b" "$1" | awk -F '.' '{print $1}')".webm } +alias y=youtube-dl alias yay="paru" diff --git a/dotfiles-old/.config/displaym/.xinitrc b/dotfiles-old/.config/displaym/.xinitrc index 249c945..e27a3aa 100644 --- a/dotfiles-old/.config/displaym/.xinitrc +++ b/dotfiles-old/.config/displaym/.xinitrc @@ -1,6 +1,22 @@ +set -x # load X default stuff -xrdb -load .Xresources +! [ -e $HOME/.Xresources ] \ + || xrdb -load $HOME/.Xresources # wallpaper -feh --bg-center /home/trinity/Pictures/Wallpapers/nosebleed.jpg +WALLPAPER="$HOME/Pictures/Wallpapers/nosebleed.jpg" +! [ -e "$WALLPAPER" ] \ + || feh --bg-center "$WALLPAPER" +# internal display +xrandr \ + --output "$(xrandr | grep ' connected ' | awk '{print $1}' | grep LVDS)" \ + --mode 1280x800 --rate 60.00 +# VGA monitor +if xrandr | grep " connected " | awk '{ print$1 }' | grep "VGA" >/dev/null 2>&1; then + ! [ "$MONITOR" = "MV720" ] \ + || xrandr \ + --output "$(xrandr | grep ' connected ' | awk '{print $1}' | grep VGA)" \ + --above "$(xrandr | grep ' connected ' | awk '{print $1}' | grep LVDS)" \ + --mode 1024x768 --rate 85.00 +fi # keybind manager pgrep -x sxhkd >/dev/null || sxhkd & diff --git a/dotfiles-old/.profile b/dotfiles-old/.profile index c4a9fa4..a89ad38 100644 --- a/dotfiles-old/.profile +++ b/dotfiles-old/.profile @@ -1,9 +1,9 @@ -BROWSER=firefox-developer-edition; export BROWSER +BROWSER=firefox; export BROWSER DOOMWADDIR=/mnt/partone/misc/doomwads/; export DOOMWADDIR EDITOR=ed; export EDITOR PAGER="less"; export PAGER PLAN9=/usr/local/plan9; export PLAN9 -PATH="$HOME/bin/:$HOME/bin/oneliners/:"$PATH":$PLAN9/bin"; export PATH +PATH="$HOME/bin/:$HOME/bin/oneliners/:"$PATH":/usr/pkg/qt5/bin:$PLAN9/bin"; export PATH TERMINAL="uxterm"; export TERMINAL UNITS_SYSTEM="si"; export UNITS_SYSTEM VISUAL=vi; export VISUAL diff --git a/dotfiles-old/.vimrc b/dotfiles-old/.vimrc index 94c7f61..70e2bf6 100644 --- a/dotfiles-old/.vimrc +++ b/dotfiles-old/.vimrc @@ -1,4 +1,5 @@ set bg=dark +set mouse= set nocp set noexpandtab set noim diff --git a/dotfiles-old/bin/batterymonitor b/dotfiles-old/bin/batterymonitor index 2949920..fb6de6c 100755 --- a/dotfiles-old/bin/batterymonitor +++ b/dotfiles-old/bin/batterymonitor @@ -16,7 +16,7 @@ get_current_level() { # acpi | awk '{print $4}' will print the battery percentage, # and s/,$// strips the trailing comma. # acpi -a will just print the power adapter status. - printf "%b" "$(acpi | awk '{print $4}' | sed 's/,$//') ($(acpi -a))" + printf "%b" "$(acpi | awk '{print $4}' | sed 's/,$//')" return 0 elif [ "$(uname)" = "NetBSD" ]; then printf "%b" "$(envstat -s acpibat0:charge \