Browse Source

Move .scripts -> .local/bin

master
Riyyi 4 years ago
parent
commit
ba10984084
  1. 6
      .config/bspwm/bspwmrc
  2. 16
      .config/polybar/modules
  3. 2
      .config/sxhkd/bspwm
  4. 2
      .config/sxhkd/i3
  5. 14
      .config/sxhkd/sxhkdrc
  6. 10
      .config/xorg/xinitrc
  7. 6
      .config/zsh/.zprofile
  8. 37
      .config/zsh/.zshrc
  9. 16
      .local/bin/aliases
  10. 8
      .local/bin/brictl
  11. 0
      .local/bin/bulkrename
  12. 5
      .local/bin/config
  13. 7
      .local/bin/inputctl
  14. 24
      .local/bin/lib/backup.sh
  15. 0
      .local/bin/lib/cast.sh
  16. 2
      .local/bin/lib/displayselect.sh
  17. 10
      .local/bin/monctl
  18. 4
      .local/bin/netictl
  19. 0
      .local/bin/panel/README.org
  20. 0
      .local/bin/panel/battery.sh
  21. 0
      .local/bin/panel/btc.sh
  22. 0
      .local/bin/panel/date.sh
  23. 0
      .local/bin/panel/iface.sh
  24. 0
      .local/bin/panel/polybar.sh
  25. 0
      .local/bin/panel/wifi.sh
  26. 6
      .local/bin/play
  27. 0
      .local/bin/rofipass
  28. 2
      .local/bin/rofiprompt
  29. 0
      .local/bin/system
  30. 0
      .local/bin/termcolors
  31. 0
      .local/bin/vimplugin
  32. 8
      .local/bin/volctl
  33. 0
      .local/bin/wm/desktops.sh
  34. 0
      .local/bin/wm/hover.sh
  35. 0
      .local/bin/wm/lock.png
  36. 0
      .local/bin/wm/lock.sh
  37. 0
      .local/bin/wm/wallpaper.sh
  38. 0
      .local/completion/_dotfiles.sh
  39. 2
      .local/share/applications/emacsclient.desktop
  40. 2
      etc/udev/rules.d/00-usb-keyboard.rules

6
.config/bspwm/bspwmrc

@ -60,11 +60,11 @@ bspc rule -a Zathura state=tiled
#--- Scripts ---# #--- Scripts ---#
# Set desktops # Set desktops
"$HOME"/.scripts/wm/desktops.sh "$HOME"/.local/bin/wm/desktops.sh
# Program startup # Program startup
"$HOME"/.scripts/wm/wallpaper.sh & "$HOME"/.local/bin/wm/wallpaper.sh &
"$HOME"/.scripts/panel/polybar.sh & "$HOME"/.local/bin/panel/polybar.sh &
[ "$1" = 0 ] && { [ "$1" = 0 ] && {
# Only execute once # Only execute once
firefox & firefox &

16
.config/polybar/modules

@ -32,7 +32,7 @@ label-foreground = ${colors.white-bright}
type = custom/script type = custom/script
interval = 300 interval = 300
exec = $HOME/.scripts/panel/btc.sh exec = $HOME/.local/bin/panel/btc.sh
label = %output% label = %output%
label-foreground = ${colors.white-bright} label-foreground = ${colors.white-bright}
@ -45,7 +45,7 @@ interval = 5
sink = alsa_output.pci-0000_00_1f.3.analog-stereo sink = alsa_output.pci-0000_00_1f.3.analog-stereo
use-ui-max = false use-ui-max = false
format-volume = %{A1:pavucontrol:}%{A2:$HOME/.scripts/volctl.sh s 0:}%{A3:$HOME/.scripts/volctl.sh t:}<ramp-volume> <label-volume>%{A}%{A}%{A} format-volume = %{A1:pavucontrol:}%{A2:volctl s 0:}%{A3:volctl t:}<ramp-volume> <label-volume>%{A}%{A}%{A}
format-volume-foreground = ${colors.white-bright} format-volume-foreground = ${colors.white-bright}
ramp-volume-0 = ramp-volume-0 =
@ -55,7 +55,7 @@ ramp-volume-3 =
label-volume = %percentage%% label-volume = %percentage%%
format-muted = %{A1:pavucontrol:}%{A2:$HOME/.scripts/volctl.sh s 0:}%{A3:$HOME/.scripts/volctl.sh t:}<label-muted>%{A}%{A}%{A} format-muted = %{A1:pavucontrol:}%{A2:volctl s 0:}%{A3:volctl t:}<label-muted>%{A}%{A}%{A}
format-muted-foreground = ${wmcolors.fgcolor-inactive} format-muted-foreground = ${wmcolors.fgcolor-inactive}
label-muted = %percentage%% label-muted = %percentage%%
@ -65,7 +65,7 @@ label-muted = %percentage%%
type = internal/backlight type = internal/backlight
card = intel_backlight card = intel_backlight
format = %{A3:$HOME/.scripts/brictl.sh s 30:}%{A4:$HOME/.scripts/brictl.sh i 10:}%{A5:$HOME/.scripts/brictl.sh d 10:}<ramp> <label>%{A}%{A}%{A} format = %{A3:brictl s 30:}%{A4:brictl i 10:}%{A5:brictl d 10:}<ramp> <label>%{A}%{A}%{A}
format-foreground = ${colors.white-bright} format-foreground = ${colors.white-bright}
ramp-0 = %{T3}%{T-} ramp-0 = %{T3}%{T-}
@ -85,7 +85,7 @@ type = internal/network
interval = 10 interval = 10
interface = wlan0 interface = wlan0
format-connected = %{A1:$HOME/.scripts/panel/wifi.sh:}<label-connected>%{A} format-connected = %{A1:$HOME/.local/bin/panel/wifi.sh:}<label-connected>%{A}
format-connected-foreground = ${colors.white-bright} format-connected-foreground = ${colors.white-bright}
label-connected = %signal%% label-connected = %signal%%
@ -99,7 +99,7 @@ type = internal/network
interval = 10 interval = 10
interface = eth0 interface = eth0
format-connected = %{A1:$HOME/.scripts/panel/iface.sh:}<label-connected>%{A} format-connected = %{A1:$HOME/.local/bin/panel/iface.sh:}<label-connected>%{A}
format-connected-foreground = ${colors.white-bright} format-connected-foreground = ${colors.white-bright}
label-connected = label-connected =
@ -141,7 +141,7 @@ label-discharging = %percentage%% (%time%)
type = custom/script type = custom/script
interval = 30 interval = 30
exec = $HOME/.scripts/panel/battery.sh exec = $HOME/.local/bin/panel/battery.sh
format = format =
@ -153,7 +153,7 @@ interval = 5
time = %I:%M %p time = %I:%M %p
time-alt = time-alt =
format = %{A1:$HOME/.scripts/panel/date.sh:}<label>%{A} format = %{A1:$HOME/.local/bin/panel/date.sh:}<label>%{A}
format-foreground = ${colors.white-bright} format-foreground = ${colors.white-bright}
label = %{T4}%{T-} %time% label = %{T4}%{T-} %time%

2
.config/sxhkd/bspwm

@ -29,7 +29,7 @@ super + space
# Sticky floating node # Sticky floating node
super + shift + f super + shift + f
bspc node -t floating -g sticky=on; $HOME/.scripts/wm/hover.sh bspc node -t floating -g sticky=on; $HOME/.local/bin/wm/hover.sh
# Set node flags # Set node flags
super + ctrl + {s,p,semicolon} super + ctrl + {s,p,semicolon}

2
.config/sxhkd/i3

@ -34,7 +34,7 @@ super + shift + space
# Sticky floating window # Sticky floating window
super + shift + f super + shift + f
i3-msg fullscreen disable, floating enable, sticky enable; \ i3-msg fullscreen disable, floating enable, sticky enable; \
$HOME/.scripts/wm/hover.sh $HOME/.local/bin/wm/hover.sh
#--- Workspace ---# #--- Workspace ---#

14
.config/sxhkd/sxhkdrc

@ -12,7 +12,7 @@ super + d
# mpv # mpv
super + {_,shift} + m super + {_,shift} + m
mpv.sh {_,queue} play {_,queue}
#--- Control ---# #--- Control ---#
@ -22,11 +22,11 @@ super + ctrl + r
# System # System
super + shift + s super + shift + s
system.sh system
# Screen brightness # Screen brightness
super + {F2,F3} super + {F2,F3}
brictl.sh {dec,inc} 10 brictl {dec,inc} 10
# Screenshot (fullscreen, selection, focused window) # Screenshot (fullscreen, selection, focused window)
{_,shift,super} + @Print {_,shift,super} + @Print
@ -34,19 +34,19 @@ super + {F2,F3}
# Screen record # Screen record
ctrl + @Print ctrl + @Print
alias.sh screencast "$CAPTURE/$(date '+%Y-%m-%d-%H%M%S_1500x1000_screencast')" aliases screencast "$CAPTURE/$(date '+%Y-%m-%d-%H%M%S_1280x720_screencast')"
# Volume # Volume
XF86Audio{LowerVolume,RaiseVolume,Mute} XF86Audio{LowerVolume,RaiseVolume,Mute}
volctl.sh {dec 5,inc 5,toggle} volctl {dec 5,inc 5,toggle}
# Touchpad toggle # Touchpad toggle
XF86HomePage XF86HomePage
inputctl.sh -d toggle inputctl -d toggle
# Touchscreen toggle # Touchscreen toggle
XF86Search XF86Search
inputctl.sh -s toggle inputctl -s toggle
#--- Mouse ---# #--- Mouse ---#

10
.config/xorg/xinitrc

@ -3,7 +3,7 @@
xrdb "$XDG_CONFIG_HOME/xorg/Xresources" xrdb "$XDG_CONFIG_HOME/xorg/Xresources"
# Setup display # Setup display
"$HOME"/.scripts/monctl.sh auto 3000 2000 48 eDP-1 & #monctl auto 3000 2000 48 eDP-1 &
# Set default X cursor to arrow # Set default X cursor to arrow
xsetroot -cursor_name left_ptr xsetroot -cursor_name left_ptr
@ -13,11 +13,11 @@ xset s off
xset -dpms xset -dpms
# Customize keyboard layout # Customize keyboard layout
inputctl.sh -k off inputctl -k off
inputctl.sh -k on inputctl -k on
# Turn off touchscreen # Turn off touchscreen
inputctl.sh -s off inputctl -s off
# Daemon starting # Daemon starting
dunst & dunst &
@ -27,7 +27,7 @@ emacs --daemon &
thunar --daemon & thunar --daemon &
sxhkd "$XDG_CONFIG_HOME/sxhkd/$WM" & sxhkd "$XDG_CONFIG_HOME/sxhkd/$WM" &
xss-lock -- "$HOME"/.scripts/wm/lock.sh & xss-lock -- "$HOME/.local/bin/wm/lock.sh" &
/usr/lib/polkit-kde-authentication-agent-1 & /usr/lib/polkit-kde-authentication-agent-1 &

6
.config/zsh/.zprofile

@ -2,8 +2,8 @@
# Directories # Directories
export CAPTURE="$HOME/pictures/screen-captures" export CAPTURE="$HOME/pictures/screen-captures"
export FPATH="$FPATH:$HOME/.scripts/completion" export FPATH="$FPATH:$HOME/.local/completion"
export PATH="$PATH:$HOME/.scripts" export PATH="$PATH:$HOME/.local/bin"
export XDG_CACHE_HOME="$HOME/.cache" export XDG_CACHE_HOME="$HOME/.cache"
export XDG_CONFIG_HOME="$HOME/.config" export XDG_CONFIG_HOME="$HOME/.config"
export XDG_DATA_HOME="$HOME/.local/share" export XDG_DATA_HOME="$HOME/.local/share"
@ -63,7 +63,7 @@ fi
export QT_QPA_PLATFORMTHEME="qt5ct" export QT_QPA_PLATFORMTHEME="qt5ct"
# Sudo # Sudo
export SUDO_ASKPASS="$HOME/.scripts/rofipass.sh" export SUDO_ASKPASS="$HOME/.local/bin/rofipass"
# Terminal # Terminal
export TERMINAL="urxvt" export TERMINAL="urxvt"

37
.config/zsh/.zshrc

@ -86,8 +86,8 @@ alias ..3="cd ../../.."
alias ..4="cd ../../../.." alias ..4="cd ../../../.."
alias cp='cp -i' alias cp='cp -i'
alias df="df -h" alias df="df -h"
alias e="$HOME/.scripts/alias.sh emacs" alias e="aliases emacs"
alias emacs="$HOME/.scripts/alias.sh emacs" alias emacs="aliases emacs"
alias fuck='sudo $(fc -ln -1)' alias fuck='sudo $(fc -ln -1)'
alias grep="grep --color=always" alias grep="grep --color=always"
alias ip="ip --color" alias ip="ip --color"
@ -97,7 +97,7 @@ alias la="\ls -lAGh --color --group-directories-first"
alias less="less -x 4" alias less="less -x 4"
alias ls="ls --color --group-directories-first" alias ls="ls --color --group-directories-first"
alias md="mkdir -p" alias md="mkdir -p"
alias mkcd="$HOME/.scripts/alias.sh mkcd" alias mkcd="aliases mkcd"
alias mv='mv -i' alias mv='mv -i'
alias pkill="pkill -9" alias pkill="pkill -9"
alias q="exit" alias q="exit"
@ -109,7 +109,7 @@ alias v="vim --servername VIM"
alias vim="vim --servername VIM" alias vim="vim --servername VIM"
# Config # Config
alias c="$HOME/.scripts/config.sh" alias c="config"
alias zshrc="$EDITOR $ZDOTDIR/.zshrc && source $ZDOTDIR/.zshrc" alias zshrc="$EDITOR $ZDOTDIR/.zshrc && source $ZDOTDIR/.zshrc"
alias lxrdb="xrdb $XDG_CONFIG_HOME/xorg/Xresources" alias lxrdb="xrdb $XDG_CONFIG_HOME/xorg/Xresources"
@ -118,18 +118,18 @@ alias lzshrc="source $ZDOTDIR/.zshrc"
# Pacman # Pacman
alias cache="sudo paccache -r -k 2" alias cache="sudo paccache -r -k 2"
alias clean='sudo pacman -Rns $(pacman -Qtdq)' alias clean='sudo pacman -Rns $(pacman -Qtdq)'
alias depend="$HOME/.scripts/alias.sh depend" alias depend="aliases depend"
alias download="sudo pacman -Syuw --noconfirm" alias download="sudo pacman -Syuw --noconfirm"
alias install="sudo pacman -S --needed" alias install="sudo pacman -S --needed"
alias remove="sudo pacman -Rns" alias remove="sudo pacman -Rns"
alias search="$HOME/.scripts/alias.sh pacman_search" alias search="aliases pacman_search"
alias update="sudo pacman -Syyu" alias update="sudo pacman -Syyu"
alias update-mirrorlist="$HOME/.scripts/alias.sh update_mirrorlist" alias update-mirrorlist="aliases update_mirrorlist"
# Programming # Programming
alias jdoc="$HOME/.scripts/alias.sh java_doc" alias jdoc="aliases java_doc"
alias jr="$HOME/.scripts/alias.sh java_run" alias jr="aliases java_run"
alias raspbian="$HOME/.scripts/alias.sh raspbian" alias raspbian="aliases raspbian"
alias ser="pio device monitor -b 9600" alias ser="pio device monitor -b 9600"
alias upl="pio run -t upload" alias upl="pio run -t upload"
alias qmake="qmake -makefile ../ && make" alias qmake="qmake -makefile ../ && make"
@ -150,26 +150,25 @@ alias gl="git log --graph --abbrev-commit --decorate --format=format:'%C(bold bl
alias gle="git log --graph --stat --format=format:'%C(bold blue)commit %H%C(reset)%C(bold yellow)%d %C(reset)%nAuthor: %C(dim white)%an <%ae>%C(reset)%nDate: %C(bold cyan)%aD%C(reset) %C(bold green)(%ar)%C(reset)%n%n%w(64,4,4)%B'" alias gle="git log --graph --stat --format=format:'%C(bold blue)commit %H%C(reset)%C(bold yellow)%d %C(reset)%nAuthor: %C(dim white)%an <%ae>%C(reset)%nDate: %C(bold cyan)%aD%C(reset) %C(bold green)(%ar)%C(reset)%n%n%w(64,4,4)%B'"
# Scripts # Scripts
alias nw="$HOME/.scripts/network.sh" alias nc="netictl"
alias vc="$HOME/.scripts/volctl.sh" alias vc="volctl"
alias vp="$HOME/.scripts/vimplugin.sh" alias vp="vimplugin"
alias mpvshuffle="$HOME/.scripts/mpv.sh shuffle"
# Other # Other
alias crypto="curl 'https://rate.sx/?qF'" alias crypto="curl 'https://rate.sx/?qF'"
alias IP="curl https://ifconfig.me" alias IP="curl https://ifconfig.me"
alias len="xclip -o | wc -m" alias len="xclip -o | wc -m"
alias length="rofi -dmenu -i -p 'String length' -lines 0 | tr -d '\n' | wc -m" alias length="rofi -dmenu -i -p 'String length' -lines 0 | tr -d '\n' | wc -m"
alias p="$HOME/.scripts/alias.sh pastebin" alias p="aliases pastebin"
alias screencast="$HOME/.scripts/alias.sh screencast" alias screencast="aliases screencast"
alias stream="$HOME/.scripts/alias.sh stream" alias stream="aliases stream"
alias weather="curl -s 'https://wttr.in/dordrecht?q&n&p' | head -n -3" alias weather="curl -s 'https://wttr.in/dordrecht?q&n&p' | head -n -3"
alias webmconvert="$HOME/.scripts/alias.sh webmconvert" alias webmconvert="aliases webmconvert"
alias workbench="GDK_SCALE=1 GDK_DPI_SCALE=1 mysql-workbench > /dev/null 2>&1 & disown" alias workbench="GDK_SCALE=1 GDK_DPI_SCALE=1 mysql-workbench > /dev/null 2>&1 & disown"
alias ytv="youtube-dl -f bestvideo\[height\<=\?1080\]+bestaudio/best" alias ytv="youtube-dl -f bestvideo\[height\<=\?1080\]+bestaudio/best"
alias ytvb="youtube-dl -f bestvideo+bestaudio/best" alias ytvb="youtube-dl -f bestvideo+bestaudio/best"
alias yta="youtube-dl -f bestaudio/best -x --audio-format mp3 --audio-quality 0" # --embed-thumbnail" alias yta="youtube-dl -f bestaudio/best -x --audio-format mp3 --audio-quality 0" # --embed-thumbnail"
alias ytat="$HOME/.scripts/alias.sh ytaudio_thumbnail" alias ytat="aliases ytaudio_thumbnail"
zsh="/usr/share/zsh/plugins/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh" zsh="/usr/share/zsh/plugins/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh"
[ -f "$zsh" ] && source "$zsh"; unset zsh [ -f "$zsh" ] && source "$zsh"; unset zsh

16
.scripts/alias.sh → .local/bin/aliases

@ -5,7 +5,7 @@ depend() {
} }
emacs() { emacs() {
# Create new frame if (there isnt one || no file specified) # Create new frame (if there isnt one or no file is specified)
if [ -z "$(pgrep -f emacsclient.*-c)" ] || [ "$1" = "" ]; then if [ -z "$(pgrep -f emacsclient.*-c)" ] || [ "$1" = "" ]; then
emacsclient -a '' -c "$@" > /dev/null 2>&1 & emacsclient -a '' -c "$@" > /dev/null 2>&1 &
else else
@ -77,14 +77,13 @@ screencast() {
notify-send "Started recording.." notify-send "Started recording.."
ffmpeg -y \ ffmpeg -y \
-threads 4 \ -threads 8 \
-f x11grab \ -f x11grab \
-framerate 24 \ -framerate 30 \
-s 3000x2000 \ -s 1280x720 \
-i "$DISPLAY.0" \ -i "$DISPLAY.0+640,180" \
$AUDIO_SOURCE \ $AUDIO_SOURCE \
-r 24 \ -r 30 \
-vf scale=1500:1000 \
$AUDIO_CODEC \ $AUDIO_CODEC \
-c:v libx264 -crf 0 -preset ultrafast \ -c:v libx264 -crf 0 -preset ultrafast \
"$NAME.mkv" & "$NAME.mkv" &
@ -123,7 +122,8 @@ ytaudio_thumbnail() {
# Get mp3 + thumbnail # Get mp3 + thumbnail
echo "Downloading and converting \"$FILE_NAME\".." echo "Downloading and converting \"$FILE_NAME\".."
youtube-dl -f bestaudio/best -x --audio-format mp3 --audio-quality 0 \ youtube-dl -f bestaudio/best -x --audio-format mp3 --audio-quality 0 \
--write-thumbnail "$1" > /dev/null --write-thumbnail --cookies "~/documents/youtube.com_cookies.txt" "$1" > /dev/null
# --write-thumbnail "$1" > /dev/null
echo "Embedding thumbnail into mp3.." echo "Embedding thumbnail into mp3.."

8
.scripts/brictl.sh → .local/bin/brictl

@ -10,15 +10,15 @@ help() {
cat << EOF cat << EOF
${B}NAME${N} ${B}NAME${N}
brictl.sh - control the display brightness brictl - control the display brightness
${B}SYNOPSIS${N} ${B}SYNOPSIS${N}
${B}brictl.sh${N} [${U}OPTION${N}] [${U}COMMAND${N}] [<${U}ARG${N}>] ${B}brictl${N} [${U}OPTION${N}] [${U}COMMAND${N}] [<${U}ARG${N}>]
${B}DESCRIPTION${N} ${B}DESCRIPTION${N}
${B}brictl.sh${N} uses brightnessctl to change the brightness of the system. ${B}brictl${N} uses brightnessctl to change the brightness of the system.
Commands can be truncated, i.e. "${B}brictl.sh s${N}" for "${B}brictl.sh set${N}" Commands can be truncated, i.e. "${B}brictl s${N}" for "${B}brictl set${N}"
Arguments need to be of numeric value. Arguments need to be of numeric value.
${B}OPTIONS${N} ${B}OPTIONS${N}

0
.scripts/rename.sh → .local/bin/bulkrename

5
.scripts/config.sh → .local/bin/config

@ -5,8 +5,8 @@
# User-config--------------------------- # User-config---------------------------
# Define editor to open file in and if it should fork # Define editor to open file in and if it should fork
EDITOR="$HOME/.scripts/alias.sh emacs" EDITOR="aliases emacs"
BACKGROUND="&" BACKGROUND=""
# List of directories to exclude # List of directories to exclude
EXCLUDES=" EXCLUDES="
@ -18,6 +18,7 @@ pictures
.cache .cache
.clangd .clangd
.config/chromium .config/chromium
.config/emacs/elpa
.config/ElectronChrome .config/ElectronChrome
.config/vim/pack/plugins .config/vim/pack/plugins
.electron-gyp .electron-gyp

7
.scripts/inputctl.sh → .local/bin/inputctl

@ -10,10 +10,10 @@ help() {
cat << EOF cat << EOF
${B}NAME${N} ${B}NAME${N}
inputctl.sh - control the input devices inputctl - control the input devices
${B}SYNOPSIS${N} ${B}SYNOPSIS${N}
${B}inputctl.sh${N} ${U}OPTION${N} [${U}ARG${N}] ${B}inputctl${N} ${U}OPTION${N} [${U}ARG${N}]
${B}OPTIONS${N} ${B}OPTIONS${N}
${B}-h${N} Display usage message and exit. ${B}-h${N} Display usage message and exit.
@ -143,3 +143,6 @@ esac
# #
# - setxkbmap -query # - setxkbmap -query
# - xmodmap -pke # - xmodmap -pke
# https://superuser.com/questions/437053/firefox-doesnt-recognize-my-alt-keys-anymore
# https://www.x.org/releases/X11R7.7/doc/xorg-docs/input/XKB-Config.html

24
.scripts/backup.sh → .local/bin/lib/backup.sh

@ -37,25 +37,21 @@ if [ "$(dirname "$0")" != "." ]; then
exit 1 exit 1
fi fi
# Enable mathematics in POSIX shell
calc() { awk "BEGIN{print $*}"; }
# All directories # All directories
BACKUP_FOLDERS="$(find . -mindepth 1 -maxdepth 1 -type d)" BACKUP_FILES="$(find . -mindepth 1 -maxdepth 1 -type d -printf '%f\n' | sort -r)"
# Current amount of backups # Current amount of backups
BACKUP_COUNT=$(echo "$BACKUP_FOLDERS" | wc -l) BACKUP_COUNT=$(echo "$BACKUP_FILES" | wc -l)
# Calculate the amount needed to remove
AMOUNT_REMOVE=$(calc "$BACKUP_COUNT" - $BACKUP_COUNT_MAX + 1)
# Remove the oldest backup folders # Remove the oldest backup folders
if [ "$AMOUNT_REMOVE" -ge 1 ]; then if [ "$BACKUP_COUNT" -ge $BACKUP_COUNT_MAX ]; then
REMOVE="$(echo "$BACKUP_FOLDERS" | sort | head -n "$AMOUNT_REMOVE")" BACKUPS_OLDEST="$(echo "$BACKUP_FILES" | sed -nE "
1,${BACKUP_COUNT_MAX}d;
echo "Removing directories:" s/^([0-9]{2}|-|_|:){12}$/\0/p
echo "$REMOVE" ")"
rm -rf $REMOVE
printf "%s\n%s\n" "Removing directories:" "$BACKUPS_OLDEST"
rm -rf $BACKUPS_OLDEST
fi fi
# Execution location # Execution location

0
.scripts/cast.sh → .local/bin/lib/cast.sh

2
.scripts/displayselect.sh → .local/bin/lib/displayselect.sh

@ -55,4 +55,4 @@ case "$CHOOSE" in
esac esac
# Reload background # Reload background
$HOME/.scripts/wm/wallpaper.sh $HOME/.local/bin/wm/wallpaper.sh

10
.scripts/monctl.sh → .local/bin/monctl

@ -7,10 +7,10 @@ help() {
cat << EOF cat << EOF
${B}NAME${N} ${B}NAME${N}
monctl.sh - monitor manager monctl - monitor manager
${B}SYNOPSIS${N} ${B}SYNOPSIS${N}
${B}monctl.sh${N} [${U}OPTION${N}] [${U}ARG(S)${N}] ${B}monctl${N} [${U}OPTION${N}] [${U}ARG(S)${N}]
${B}OPTIONS${N} ${B}OPTIONS${N}
${B}a*${N} ${U}width${N} ${U}height${N} ${U}hertz${N} ${U}name${N} ${B}a*${N} ${U}width${N} ${U}height${N} ${U}hertz${N} ${U}name${N}
@ -45,14 +45,14 @@ update() {
sleep 4 sleep 4
# Reconfigure desktops # Reconfigure desktops
"$HOME"/.scripts/wm/desktops.sh "$HOME/.local/bin/wm/desktops.sh"
sleep 1 sleep 1
# Restart panel # Restart panel
"$HOME"/.scripts/panel/polybar.sh & "$HOME/.local/bin/panel/polybar.sh" &
# Reload wallpaper # Reload wallpaper
"$HOME"/.scripts/wm/wallpaper.sh & "$HOME/.local/bin/wm/wallpaper.sh" &
} }
auto() { auto() {

4
.scripts/netctl.sh → .local/bin/netictl

@ -14,10 +14,10 @@ help() {
cat << EOF cat << EOF
${B}NAME${N} ${B}NAME${N}
netctl.sh - control the network interfaces netictl - control the network interfaces
${B}SYNOPSIS${N} ${B}SYNOPSIS${N}
${B}netctl.sh${N} ${U}OPTION${N} [${U}ARG${N}] ${B}netictl${N} ${U}OPTION${N} [${U}ARG${N}]
${B}OPTIONS${N} ${B}OPTIONS${N}
${B}-h${N} Display usage message and exit. ${B}-h${N} Display usage message and exit.

0
.scripts/panel/README.org → .local/bin/panel/README.org

0
.scripts/panel/battery.sh → .local/bin/panel/battery.sh

0
.scripts/panel/btc.sh → .local/bin/panel/btc.sh

0
.scripts/panel/date.sh → .local/bin/panel/date.sh

0
.scripts/panel/iface.sh → .local/bin/panel/iface.sh

0
.scripts/panel/polybar.sh → .local/bin/panel/polybar.sh

0
.scripts/panel/wifi.sh → .local/bin/panel/wifi.sh

6
.scripts/mpv.sh → .local/bin/play

@ -9,13 +9,13 @@ help() {
cat << EOF cat << EOF
${B}NAME${N} ${B}NAME${N}
mpv.sh - mpv playback functions play - mpv playback functions
${B}SYNOPSIS${N} ${B}SYNOPSIS${N}
${B}./mpv.sh${N} [${U}OPTION${N}] [${U}ARGS${N}...] ${B}play${N} [${U}OPTION${N}] [${U}ARGS${N}...]
${B}DESCRIPTION${N} ${B}DESCRIPTION${N}
mpv.sh is a script to manage different mpv viewing bahavior. play is a script to manage different mpv viewing bahavior.
If no ${U}URLS${N} argument is provided, it is read from clipboard instead. If no ${U}URLS${N} argument is provided, it is read from clipboard instead.
The queue option starts a mpv window with a playlist, which all videos of The queue option starts a mpv window with a playlist, which all videos of
subsequent queue calls get added to. subsequent queue calls get added to.

0
.scripts/rofipass.sh → .local/bin/rofipass

2
.scripts/prompt.sh → .local/bin/rofiprompt

@ -4,7 +4,7 @@
# Prompt rofi with label $1 to perform command $2. # Prompt rofi with label $1 to perform command $2.
# #
# Example: # Example:
# $ ./prompt.sh "Are you sure you want to shutdown?" "poweroff" # $ rofiprompt "Are you sure you want to shutdown?" "poweroff"
[ "$(printf 'No\nYes' | rofi -dmenu -i -p "$1" -lines 2 \ [ "$(printf 'No\nYes' | rofi -dmenu -i -p "$1" -lines 2 \
-color-window "#524040, #dc7a43, #fff" \ -color-window "#524040, #dc7a43, #fff" \

0
.scripts/system.sh → .local/bin/system

0
.scripts/colors.sh → .local/bin/termcolors

0
.scripts/vimplugin.sh → .local/bin/vimplugin

8
.scripts/volctl.sh → .local/bin/volctl

@ -10,15 +10,15 @@ help() {
cat << EOF cat << EOF
${B}NAME${N} ${B}NAME${N}
volctl.sh - control the volume volctl - control the volume
${B}SYNOPSIS${N} ${B}SYNOPSIS${N}
${B}volctl.sh${N} [${U}OPTION${N}] [${U}COMMAND${N}] [<${U}ARG${N}>] ${B}volctl${N} [${U}OPTION${N}] [${U}COMMAND${N}] [<${U}ARG${N}>]
${B}DESCRIPTION${N} ${B}DESCRIPTION${N}
${B}volctl.sh${N} uses pamixer to change the volume of the system. ${B}volctl${N} uses pamixer to change the volume of the system.
Commands can be truncated, i.e. "${B}volctl.sh t${N}" for "${B}volctl.sh toggle${N}" Commands can be truncated, i.e. "${B}volctl t${N}" for "${B}volctl toggle${N}"
Arguments need to be of numeric value. Arguments need to be of numeric value.
${B}OPTIONS${N} ${B}OPTIONS${N}

0
.scripts/wm/desktops.sh → .local/bin/wm/desktops.sh

0
.scripts/wm/hover.sh → .local/bin/wm/hover.sh

0
.scripts/wm/lock.png → .local/bin/wm/lock.png

Before

Width:  |  Height:  |  Size: 7.6 KiB

After

Width:  |  Height:  |  Size: 7.6 KiB

0
.scripts/wm/lock.sh → .local/bin/wm/lock.sh

0
.scripts/wm/wallpaper.sh → .local/bin/wm/wallpaper.sh

0
.scripts/completion/_dotfiles.sh → .local/completion/_dotfiles.sh

2
.local/share/applications/emacsclient.desktop

@ -3,7 +3,7 @@ Name=EmacsClient
GenericName=Text Editor GenericName=Text Editor
Comment=Edit text Comment=Edit text
MimeType=text/english;text/plain;text/x-makefile;text/x-c++hdr;text/x-c++src;text/x-chdr;text/x-csrc;text/x-java;text/x-moc;text/x-pascal;text/x-tcl;text/x-tex;application/x-shellscript;text/x-c;text/x-c++; MimeType=text/english;text/plain;text/x-makefile;text/x-c++hdr;text/x-c++src;text/x-chdr;text/x-csrc;text/x-java;text/x-moc;text/x-pascal;text/x-tcl;text/x-tex;application/x-shellscript;text/x-c;text/x-c++;
Exec=alias.sh emacs %F Exec=aliases emacs %F
Icon=emacs Icon=emacs
Type=Application Type=Application
Terminal=false Terminal=false

2
etc/udev/rules.d/00-usb-keyboard.rules

@ -8,6 +8,6 @@ SUBSYSTEM=="usb",
ATTRS{idVendor}=="04d9", ATTRS{idVendor}=="04d9",
ATTRS{idProduct}=="0169", ATTRS{idProduct}=="0169",
OWNER="rick", OWNER="rick",
RUN+="/home/rick/.scripts/inputctl.sh -k on" RUN+="/home/rick/.local/bin/inputctl -k on"
# https://wiki.archlinux.org/index.php/Udev#Execute_on_VGA_cable_plug_in # https://wiki.archlinux.org/index.php/Udev#Execute_on_VGA_cable_plug_in

Loading…
Cancel
Save