diff --git a/home/.config/gtk-3.0/bookmarks b/home/.config/gtk-3.0/bookmarks index bfdff79d..dbacd0c8 100644 --- a/home/.config/gtk-3.0/bookmarks +++ b/home/.config/gtk-3.0/bookmarks @@ -7,6 +7,5 @@ file:///home/liveuser/Videos file:///home/liveuser/Templates file:///home/liveuser/.config .config file:///home/liveuser/.config/polybar -file:///home/liveuser/.config/neofetch file:///home/liveuser/.config/termite file:///home/liveuser/.config/openbox diff --git a/home/.config/keypack b/home/.config/keypack index bdb129cd..a9c63a53 100755 --- a/home/.config/keypack +++ b/home/.config/keypack @@ -5,10 +5,9 @@ # only after a valid internet connection is made do_setup() { - keys=( - AEFB411B072836CD48FF0381AE252C284B5DBA5D - 9E4F11C6A072942A7B3FD3B0B81EB14A09A25EB0 - 35F52A02854DCCAEC9DD5CC410443C7F54B00041 + keys=("AEFB411B072836CD48FF0381AE252C284B5DBA5D" + "9E4F11C6A072942A7B3FD3B0B81EB14A09A25EB0" + "35F52A02854DCCAEC9DD5CC410443C7F54B00041" ) sudo dirmngr undef}, {item => ['i3lock-fancy -p', 'Lock Screen', 'lock']}, {item => ['oblogout', 'Exit Openbox', 'exit']}, - ] +] diff --git a/home/.config/openbox/environment b/home/.config/openbox/environment index 8ef77587..d0dba124 100644 --- a/home/.config/openbox/environment +++ b/home/.config/openbox/environment @@ -4,14 +4,11 @@ # To set your language for displaying messages and time/date formats, use the following: # LANG=en_US.UTF8 -# GNOME Keyring -export "$(gnome-keyring-daemon --start --components=pkcs11,secrets)" - # xdg-open applications -export XDG_CURRENT_DESKTOP=XFCE -export DE="xfce" +# export XDG_CURRENT_DESKTOP=XFCE +# export DE="xfce" -# dbus with openbox -if which dbus-launch >/dev/null && test -z "$DBUS_SESSION_BUS_ADDRESS"; then - eval "$(dbus-launch --sh-syntax --exit-with-session)" -fi +# # dbus with openbox +# if which dbus-launch >/dev/null && test -z "$DBUS_SESSION_BUS_ADDRESS"; then +# eval "$(dbus-launch --sh-syntax --exit-with-session)" +# fi diff --git a/home/.config/openbox/menu-static.xml b/home/.config/openbox/menu-static.xml deleted file mode 100644 index ca48b66e..00000000 --- a/home/.config/openbox/menu-static.xml +++ /dev/null @@ -1,196 +0,0 @@ - - - - - - - exo-open --launch TerminalEmulator - - - - - exo-open --launch WebBrowser - - - - - exo-open --launch FileManager - - - - - geany - - - - - - - galculator - - - - - file-roller - - - - - gpicview - - - - - - - scrot 'ArchLabs_%Y-%m-%d-%S_$wx$h.png' -e 'mv $f $$(xdg-user-dir PICTURES) ; gpicview $$(xdg-user-dir PICTURES)/$f' - - - - - scrot -d 5 'ArchLabs_%Y-%m-%d-%S_$wx$h.png' -e 'mv $f $$(xdg-user-dir PICTURES) ; gpicview $$(xdg-user-dir PICTURES)/$f' - - - - - scrot -d 10 'ArchLabs_%Y-%m-%d-%S_$wx$h.png' -e 'mv $f $$(xdg-user-dir PICTURES) ; gpicview $$(xdg-user-dir PICTURES)/$f' - - - - - scrot -s 'ArchLabs_%Y-%m-%d-%S_$wx$h.png' -e 'mv $f $$(xdg-user-dir PICTURES) ; gpicview $$(xdg-user-dir PICTURES)/$f' - - - - - - - audacious - - - - - mpv --player-operation-mode=pseudo-gui - - - - - - - - - - - obconf - - - - - kickshaw - - - - - obkey - - - - - ob-autostart - - - - - - exo-open ~/.config/openbox/menu.xml - - - - - exo-open ~/.config/openbox/rc.xml - - - - - exo-open ~/.config/openbox/autostart - - - - - - - - - - - - - - - - - al-panel-chooser - - - - - - xfce4-appearance-settings - - - - - nitrogen - - - - - rofi-theme-selector - - - - - - xfce4-settings-manager - - - - - pavucontrol - - - - - arandr - - - - - - - termite --exec=pacli - - - - - gparted - - - - - - - - - i3lock-fancy -p - - - - - rofr.sh -l - - - - - diff --git a/home/.xinitrc b/home/.xinitrc index 24f8ef80..ee49c026 100755 --- a/home/.xinitrc +++ b/home/.xinitrc @@ -6,15 +6,12 @@ # startx ~/.xinitrc WM -# Session to run if none given +# Session to run if none passed via startx session=${1:-openbox} -# set ENV window manager for use in other scripts +# set environment wm for use in scripts export WM="$session" -# bspwm requires this to be set -export XDG_CONFIG_HOME=$HOME/.config - # Default Arch xinit scripts if [ -d /etc/X11/xinit/xinitrc.d ]; then for f in /etc/X11/xinit/xinitrc.d/*.sh; do @@ -22,59 +19,36 @@ if [ -d /etc/X11/xinit/xinitrc.d ]; then done fi -if [ -f /etc/X11/xinit/.Xmodmap ]; then - xmodmap /etc/X11/xinit/.Xmodmap -fi - # user init scripts and settings -if [ -f ~/.Xmodmap ]; then - xmodmap ~/.Xmodmap -fi - -if [ -f ~/.Xresources ]; then - xrdb -merge ~/.Xresources -fi - -if [ -f ~/.xprofile ]; then - source ~/.xprofile -fi - +[ -f /etc/X11/xinit/.Xmodmap ] && xmodmap /etc/X11/xinit/.Xmodmap +[ -f ~/.Xmodmap ] && xmodmap ~/.Xmodmap +[ -f ~/.Xresources ] && xrdb -merge ~/.Xresources +[ -f ~/.xprofile ] && source ~/.xprofile +# keyring for storing passwords if hash gnome-keyring &>/dev/null; then - # keyring for storing passwords gnome-keyring-daemon --start --components=pkcs11 & fi -if [ -x "/usr/lib/polkit-gnome/polkit-gnome-authentication-agent-1" ]; then - # run policy kit - /usr/lib/polkit-gnome/polkit-gnome-authentication-agent-1 & -fi +# display timeout and sleep +xset s 3600 3600 +xset dpms 3600 3700 4000 # keyboard repeat rate -kbdrate -d 400 -r 50 xset r rate 400 50 +kbdrate -d 400 -r 50 -# display timeout -xset s 3600 3600 +# 1/1 mouse acceleration +xset m 1/1 -# Do NOT put code below this case statement +# Do NOT put commands below the exec lines case $session in - i3|i3wm) - exec i3 - ;; - bsp|bspwm) - exec bspwm - ;; - xfce|xfce4) - exec startxfce4 - ;; - openbox) - exec openbox-session - ;; - dwm) - exec dwm - ;; - *) - exec "$1" # Unknown, try running it + i3|i3wm) exec i3 ;; + bsp|bspwm) exec bspwm ;; + xfce|xfce4) exec startxfce4 ;; + openbox) exec openbox-session ;; + awesome) exec awesome ;; + dwm) exec dwm ;; + *) exec "$1" # Unknown, try running it esac diff --git a/home/.xprofile b/home/.xprofile index 67a0238b..3568b721 100644 --- a/home/.xprofile +++ b/home/.xprofile @@ -1,22 +1,10 @@ # .xprofile # vim:ft=sh -# lightdm sources this file at boot -# as well as our own xinitrc with startx -export XDG_CONFIG_HOME=$HOME/.config +# sourced at boot by xinit -if [ -d "/sbin" ]; then - PATH="/sbin:$PATH" -fi +[ -d "/sbin" ] && PATH="$PATH:/sbin" +[ -d "/usr/sbin" ] && PATH="$PATH:/usr/sbin" +[ -d "$HOME/bin" ] && PATH="$HOME/bin:$PATH" -if [ -d "/usr/sbin" ]; then - PATH="/usr/sbin:$PATH" -fi - -if [ -d "$HOME/bin" ]; then - PATH=$HOME/bin:$PATH -fi - -if which dbus-launch >/dev/null && test -z "$DBUS_SESSION_BUS_ADDRESS"; then - eval "$(dbus-launch --sh-syntax --exit-with-session)" -fi +export XDG_CONFIG_HOME="$HOME/.config" diff --git a/home/.zprofile b/home/.zprofile index be8db225..38f0384f 100644 --- a/home/.zprofile +++ b/home/.zprofile @@ -1,9 +1,5 @@ # .zprofile # sourced by zsh when used as a login shell -# Uncomment below to autologin startx -# also see comments in ~/.xinitrc for more info - -if [[ -z $DISPLAY ]] && [[ -n $XDG_VTNR ]] && [[ $XDG_VTNR -eq 1 ]]; then - exec startx -- vt1 &> /dev/null -fi +# automatically run startx when logging in to tty1 +[[ -z $DISPLAY ]] && [[ $XDG_VTNR -eq 1 ]] && exec startx -- vt1 &>/dev/null diff --git a/home/bin/updates.sh b/home/bin/updates.sh index aff9bc2f..8924171d 100755 --- a/home/bin/updates.sh +++ b/home/bin/updates.sh @@ -29,7 +29,7 @@ while true; do while [[ $updates -eq 0 ]]; do echo $BAR_ICON - sleep 1200 + sleep 1600 updates=$(checkupdates | wc -l) done done