Move .scripts -> .local/bin
This commit is contained in:
@@ -60,11 +60,11 @@ bspc rule -a Zathura state=tiled
|
||||
#--- Scripts ---#
|
||||
|
||||
# Set desktops
|
||||
"$HOME"/.scripts/wm/desktops.sh
|
||||
"$HOME"/.local/bin/wm/desktops.sh
|
||||
|
||||
# Program startup
|
||||
"$HOME"/.scripts/wm/wallpaper.sh &
|
||||
"$HOME"/.scripts/panel/polybar.sh &
|
||||
"$HOME"/.local/bin/wm/wallpaper.sh &
|
||||
"$HOME"/.local/bin/panel/polybar.sh &
|
||||
[ "$1" = 0 ] && {
|
||||
# Only execute once
|
||||
firefox &
|
||||
|
||||
@@ -32,7 +32,7 @@ label-foreground = ${colors.white-bright}
|
||||
type = custom/script
|
||||
interval = 300
|
||||
|
||||
exec = $HOME/.scripts/panel/btc.sh
|
||||
exec = $HOME/.local/bin/panel/btc.sh
|
||||
|
||||
label = %output%
|
||||
label-foreground = ${colors.white-bright}
|
||||
@@ -45,7 +45,7 @@ interval = 5
|
||||
sink = alsa_output.pci-0000_00_1f.3.analog-stereo
|
||||
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}
|
||||
|
||||
ramp-volume-0 =
|
||||
@@ -55,7 +55,7 @@ ramp-volume-3 =
|
||||
|
||||
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}
|
||||
|
||||
label-muted = %percentage%%
|
||||
@@ -65,7 +65,7 @@ label-muted = %percentage%%
|
||||
type = internal/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}
|
||||
|
||||
ramp-0 = %{T3}%{T-}
|
||||
@@ -85,7 +85,7 @@ type = internal/network
|
||||
interval = 10
|
||||
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}
|
||||
|
||||
label-connected = %signal%%
|
||||
@@ -99,7 +99,7 @@ type = internal/network
|
||||
interval = 10
|
||||
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}
|
||||
|
||||
label-connected =
|
||||
@@ -141,7 +141,7 @@ label-discharging = %percentage%% (%time%)
|
||||
type = custom/script
|
||||
interval = 30
|
||||
|
||||
exec = $HOME/.scripts/panel/battery.sh
|
||||
exec = $HOME/.local/bin/panel/battery.sh
|
||||
|
||||
format =
|
||||
|
||||
@@ -153,7 +153,7 @@ interval = 5
|
||||
time = %I:%M %p
|
||||
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}
|
||||
|
||||
label = %{T4}%{T-} %time%
|
||||
|
||||
+1
-1
@@ -29,7 +29,7 @@ super + space
|
||||
|
||||
# Sticky floating node
|
||||
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
|
||||
super + ctrl + {s,p,semicolon}
|
||||
|
||||
+1
-1
@@ -34,7 +34,7 @@ super + shift + space
|
||||
# Sticky floating window
|
||||
super + shift + f
|
||||
i3-msg fullscreen disable, floating enable, sticky enable; \
|
||||
$HOME/.scripts/wm/hover.sh
|
||||
$HOME/.local/bin/wm/hover.sh
|
||||
|
||||
#--- Workspace ---#
|
||||
|
||||
|
||||
@@ -12,7 +12,7 @@ super + d
|
||||
|
||||
# mpv
|
||||
super + {_,shift} + m
|
||||
mpv.sh {_,queue}
|
||||
play {_,queue}
|
||||
|
||||
#--- Control ---#
|
||||
|
||||
@@ -22,11 +22,11 @@ super + ctrl + r
|
||||
|
||||
# System
|
||||
super + shift + s
|
||||
system.sh
|
||||
system
|
||||
|
||||
# Screen brightness
|
||||
super + {F2,F3}
|
||||
brictl.sh {dec,inc} 10
|
||||
brictl {dec,inc} 10
|
||||
|
||||
# Screenshot (fullscreen, selection, focused window)
|
||||
{_,shift,super} + @Print
|
||||
@@ -34,19 +34,19 @@ super + {F2,F3}
|
||||
|
||||
# Screen record
|
||||
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
|
||||
XF86Audio{LowerVolume,RaiseVolume,Mute}
|
||||
volctl.sh {dec 5,inc 5,toggle}
|
||||
volctl {dec 5,inc 5,toggle}
|
||||
|
||||
# Touchpad toggle
|
||||
XF86HomePage
|
||||
inputctl.sh -d toggle
|
||||
inputctl -d toggle
|
||||
|
||||
# Touchscreen toggle
|
||||
XF86Search
|
||||
inputctl.sh -s toggle
|
||||
inputctl -s toggle
|
||||
|
||||
#--- Mouse ---#
|
||||
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
xrdb "$XDG_CONFIG_HOME/xorg/Xresources"
|
||||
|
||||
# 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
|
||||
xsetroot -cursor_name left_ptr
|
||||
@@ -13,11 +13,11 @@ xset s off
|
||||
xset -dpms
|
||||
|
||||
# Customize keyboard layout
|
||||
inputctl.sh -k off
|
||||
inputctl.sh -k on
|
||||
inputctl -k off
|
||||
inputctl -k on
|
||||
|
||||
# Turn off touchscreen
|
||||
inputctl.sh -s off
|
||||
inputctl -s off
|
||||
|
||||
# Daemon starting
|
||||
dunst &
|
||||
@@ -27,7 +27,7 @@ emacs --daemon &
|
||||
thunar --daemon &
|
||||
|
||||
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 &
|
||||
|
||||
|
||||
@@ -2,8 +2,8 @@
|
||||
|
||||
# Directories
|
||||
export CAPTURE="$HOME/pictures/screen-captures"
|
||||
export FPATH="$FPATH:$HOME/.scripts/completion"
|
||||
export PATH="$PATH:$HOME/.scripts"
|
||||
export FPATH="$FPATH:$HOME/.local/completion"
|
||||
export PATH="$PATH:$HOME/.local/bin"
|
||||
export XDG_CACHE_HOME="$HOME/.cache"
|
||||
export XDG_CONFIG_HOME="$HOME/.config"
|
||||
export XDG_DATA_HOME="$HOME/.local/share"
|
||||
@@ -63,7 +63,7 @@ fi
|
||||
export QT_QPA_PLATFORMTHEME="qt5ct"
|
||||
|
||||
# Sudo
|
||||
export SUDO_ASKPASS="$HOME/.scripts/rofipass.sh"
|
||||
export SUDO_ASKPASS="$HOME/.local/bin/rofipass"
|
||||
|
||||
# Terminal
|
||||
export TERMINAL="urxvt"
|
||||
|
||||
+18
-19
@@ -86,8 +86,8 @@ alias ..3="cd ../../.."
|
||||
alias ..4="cd ../../../.."
|
||||
alias cp='cp -i'
|
||||
alias df="df -h"
|
||||
alias e="$HOME/.scripts/alias.sh emacs"
|
||||
alias emacs="$HOME/.scripts/alias.sh emacs"
|
||||
alias e="aliases emacs"
|
||||
alias emacs="aliases emacs"
|
||||
alias fuck='sudo $(fc -ln -1)'
|
||||
alias grep="grep --color=always"
|
||||
alias ip="ip --color"
|
||||
@@ -97,7 +97,7 @@ alias la="\ls -lAGh --color --group-directories-first"
|
||||
alias less="less -x 4"
|
||||
alias ls="ls --color --group-directories-first"
|
||||
alias md="mkdir -p"
|
||||
alias mkcd="$HOME/.scripts/alias.sh mkcd"
|
||||
alias mkcd="aliases mkcd"
|
||||
alias mv='mv -i'
|
||||
alias pkill="pkill -9"
|
||||
alias q="exit"
|
||||
@@ -109,7 +109,7 @@ alias v="vim --servername VIM"
|
||||
alias vim="vim --servername VIM"
|
||||
|
||||
# Config
|
||||
alias c="$HOME/.scripts/config.sh"
|
||||
alias c="config"
|
||||
alias zshrc="$EDITOR $ZDOTDIR/.zshrc && source $ZDOTDIR/.zshrc"
|
||||
|
||||
alias lxrdb="xrdb $XDG_CONFIG_HOME/xorg/Xresources"
|
||||
@@ -118,18 +118,18 @@ alias lzshrc="source $ZDOTDIR/.zshrc"
|
||||
# Pacman
|
||||
alias cache="sudo paccache -r -k 2"
|
||||
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 install="sudo pacman -S --needed"
|
||||
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-mirrorlist="$HOME/.scripts/alias.sh update_mirrorlist"
|
||||
alias update-mirrorlist="aliases update_mirrorlist"
|
||||
|
||||
# Programming
|
||||
alias jdoc="$HOME/.scripts/alias.sh java_doc"
|
||||
alias jr="$HOME/.scripts/alias.sh java_run"
|
||||
alias raspbian="$HOME/.scripts/alias.sh raspbian"
|
||||
alias jdoc="aliases java_doc"
|
||||
alias jr="aliases java_run"
|
||||
alias raspbian="aliases raspbian"
|
||||
alias ser="pio device monitor -b 9600"
|
||||
alias upl="pio run -t upload"
|
||||
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'"
|
||||
|
||||
# Scripts
|
||||
alias nw="$HOME/.scripts/network.sh"
|
||||
alias vc="$HOME/.scripts/volctl.sh"
|
||||
alias vp="$HOME/.scripts/vimplugin.sh"
|
||||
alias mpvshuffle="$HOME/.scripts/mpv.sh shuffle"
|
||||
alias nc="netictl"
|
||||
alias vc="volctl"
|
||||
alias vp="vimplugin"
|
||||
|
||||
# Other
|
||||
alias crypto="curl 'https://rate.sx/?qF'"
|
||||
alias IP="curl https://ifconfig.me"
|
||||
alias len="xclip -o | 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 screencast="$HOME/.scripts/alias.sh screencast"
|
||||
alias stream="$HOME/.scripts/alias.sh stream"
|
||||
alias p="aliases pastebin"
|
||||
alias screencast="aliases screencast"
|
||||
alias stream="aliases stream"
|
||||
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 ytv="youtube-dl -f bestvideo\[height\<=\?1080\]+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 ytat="$HOME/.scripts/alias.sh ytaudio_thumbnail"
|
||||
alias ytat="aliases ytaudio_thumbnail"
|
||||
|
||||
zsh="/usr/share/zsh/plugins/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh"
|
||||
[ -f "$zsh" ] && source "$zsh"; unset zsh
|
||||
|
||||
Reference in New Issue
Block a user