Cleanup and small tweaks

This commit is contained in:
Riyyi
2020-04-08 01:29:18 +02:00
parent b9e5a8c9be
commit 55c6f990f7
14 changed files with 55 additions and 27 deletions
+3 -2
View File
@@ -10,7 +10,6 @@ padding = 10
shrink = false shrink = false
frame_width = 3 frame_width = 3
frame_color = "#676E7D"
separator_height = 3 separator_height = 3
separator_color = frame separator_color = frame
@@ -41,13 +40,15 @@ history = ctrl+grave
context = ctrl+shift+period context = ctrl+shift+period
[urgency_low] [urgency_low]
background = "#404552" background = "#8C9440"
foreground = "#FFFFFF" foreground = "#FFFFFF"
frame_color = "#B5BD68"
timeout = 10 timeout = 10
[urgency_normal] [urgency_normal]
background = "#404552" background = "#404552"
foreground = "#FFFFFF" foreground = "#FFFFFF"
frame_color = "#676E7D"
timeout = 10 timeout = 10
[urgency_critical] [urgency_critical]
+2
View File
@@ -1,3 +1,5 @@
; -*- conf -*-
; Xresources colors ; Xresources colors
[colors] [colors]
foreground = ${xrdb:foreground:#c5c8c6} foreground = ${xrdb:foreground:#c5c8c6}
+5 -2
View File
@@ -1,3 +1,5 @@
; -*- conf -*-
; https://github.com/polybar/polybar/wiki/Module:-bspwm ; https://github.com/polybar/polybar/wiki/Module:-bspwm
[module/bspwm] [module/bspwm]
type = internal/bspwm type = internal/bspwm
@@ -11,7 +13,8 @@ label-focused-padding = 2
label-occupied = %name% label-occupied = %name%
label-occupied-padding = 2 label-occupied-padding = 2
label-urgent = %name%! label-urgent = %name%
label-urgent-foreground = ${colors.white-bright}
label-urgent-background = ${wmcolors.bgcolor-urgent} label-urgent-background = ${wmcolors.bgcolor-urgent}
label-urgent-padding = 2 label-urgent-padding = 2
@@ -114,7 +117,7 @@ format-full-foreground = ${colors.green-bright}
format-discharging = <ramp-capacity> <label-discharging> format-discharging = <ramp-capacity> <label-discharging>
format-discharging-foreground = ${colors.white-bright} format-discharging-foreground = ${colors.white-bright}
ramp-capacity-0 = %{F#a54242} ramp-capacity-0 = %{F#dc7a43}
ramp-capacity-1 =  ramp-capacity-1 = 
ramp-capacity-2 =  ramp-capacity-2 = 
ramp-capacity-3 =  ramp-capacity-3 = 
+1 -1
View File
@@ -1,4 +1,4 @@
# -*-conf-*- # -*- conf -*-
##--- Control ---## ##--- Control ---##
+1 -1
View File
@@ -1,4 +1,4 @@
# -*-conf-*- # -*- conf -*-
#--- General ---# #--- General ---#
+1 -1
View File
@@ -67,7 +67,7 @@ export BROWSER="firefox"
export WGETRC="$XDG_CONFIG_HOME/wget/wgetrc" export WGETRC="$XDG_CONFIG_HOME/wget/wgetrc"
# WM # WM
export WM="i3" export WM="bspwm"
# Xorg # Xorg
export XINITRC="$XDG_CONFIG_HOME/xorg/xinitrc" export XINITRC="$XDG_CONFIG_HOME/xorg/xinitrc"
+15 -6
View File
@@ -42,7 +42,7 @@ zstyle ':vcs_info:*' formats '%F{cyan}(%F{red}%b%F{cyan})%f %c%u'
compinit -d "$XDG_CACHE_HOME/zsh/zcompdump" compinit -d "$XDG_CACHE_HOME/zsh/zcompdump"
zstyle ':completion::complete:*' use-cache 1 zstyle ':completion::complete:*' use-cache 1
zstyle ':completion::complete:*' cache-path "$XDG_CACHE_HOME/zsh/zcompcache" zstyle ':completion::complete:*' cache-path "$XDG_CACHE_HOME/zsh/zcompcache"
zstyle ':completion:*' matcher-list 'm:{a-zA-Z}={A-Za-z}' 'r:|=*' 'l:|=* r:|=*' zstyle ':completion:*' matcher-list 'm:{a-zA-Z}={A-Za-z}' 'r:|[._-]=* r:|=*' 'l:|=* r:|=*'
zstyle ':completion:*' list-colors '' zstyle ':completion:*' list-colors ''
zstyle ':completion:*' menu select zstyle ':completion:*' menu select
@@ -74,15 +74,22 @@ SAVEHIST=10000
## Aliases ## Aliases
# General # General
alias ..="cd .."
alias ...="cd ../.."
alias ....="cd ../../.."
alias q="exit" alias q="exit"
alias la="ls -laGh --color --group-directories-first" alias la="ls -lAGh --color --group-directories-first"
alias ls="ls --color --group-directories-first" alias ls="ls --color --group-directories-first"
alias grep="grep --color" alias grep="grep --color"
alias df="df -h"
alias md="mkdir -p" alias md="mkdir -p"
alias rm="rm -i" alias rm="rm -i"
alias se="sudoedit"
alias v="vim --servername VIM"
alias vim="vim --servername VIM" alias vim="vim --servername VIM"
alias svim="sudoedit"
alias fuck='sudo $(fc -ln -1)' alias fuck='sudo $(fc -ln -1)'
alias pkill="pkill -9"
alias ss="sudo systemctl"
# Config # Config
alias c="$HOME/.scripts/config.sh" alias c="$HOME/.scripts/config.sh"
@@ -109,13 +116,14 @@ alias depend="$HOME/.scripts/alias.sh depend"
alias jdoc="$HOME/.scripts/alias.sh java-doc" alias jdoc="$HOME/.scripts/alias.sh java-doc"
alias jr="$HOME/.scripts/alias.sh java-run" alias jr="$HOME/.scripts/alias.sh java-run"
alias raspbian="$HOME/.scripts/alias.sh raspbian" alias raspbian="$HOME/.scripts/alias.sh raspbian"
alias ser="pio serialports 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"
# Git # Git
alias g="git" alias g="git"
alias ga="git add" alias ga="git add"
alias gap="git add -p"
alias gs="git status" alias gs="git status"
alias gc="git commit" alias gc="git commit"
alias gp="git pull" alias gp="git pull"
@@ -131,7 +139,8 @@ alias vp="$HOME/.scripts/vimplugin.sh"
alias mpvshuffle="$HOME/.scripts/mpv.sh shuffle" alias mpvshuffle="$HOME/.scripts/mpv.sh shuffle"
# Other # Other
alias mysql-workbench="GDK_SCALE=1 GDK_DPI_SCALE=1 mysql-workbench 1>/dev/null 2>&1 &; disown" alias weather="curl -s 'https://wttr.in/dordrecht?q&n&p' | head -n -3"
alias weather="curl -s 'http://wttr.in/dordrecht?q&n&p' | head -n -3" alias workbench="GDK_SCALE=1 GDK_DPI_SCALE=1 mysql-workbench > /dev/null 2>&1 & disown"
alias ytaudio="youtube-dl -f bestaudio -x --audio-format mp3"
[ -f "$ZDOTDIR/.zshrc_extended" ] && source "$ZDOTDIR/.zshrc_extended" [ -f "$ZDOTDIR/.zshrc_extended" ] && source "$ZDOTDIR/.zshrc_extended"
+4 -2
View File
@@ -81,7 +81,7 @@ Install and configure packages.
#+BEGIN_SRC emacs-lisp #+BEGIN_SRC emacs-lisp
(use-package hybrid-reverse-theme (use-package hybrid-reverse-theme
:load-path "~/Code/elisp/emacs-hybrid-reverse" :load-path "~/code/elisp/emacs-hybrid-reverse"
:custom (load-theme 'hybrid-reverse t)) :custom (load-theme 'hybrid-reverse t))
(use-package which-key (use-package which-key
@@ -551,6 +551,7 @@ File auto-saves, backups, tramps.
;; C/C++-like languages formatting style ;; C/C++-like languages formatting style
;https://www.emacswiki.org/emacs/IndentingC ;https://www.emacswiki.org/emacs/IndentingC
(setq-default c-basic-offset 4 (setq-default c-basic-offset 4
sgml-basic-offset 4
c-default-style "linux") c-default-style "linux")
#+END_SRC #+END_SRC
@@ -761,7 +762,8 @@ Useful links:\\
[[https://www.masteringemacs.org/article/mastering-key-bindings-emacs][Mastering Emacs key bindings]] \\ [[https://www.masteringemacs.org/article/mastering-key-bindings-emacs][Mastering Emacs key bindings]] \\
[[https://github.com/jwiegley/use-package/blob/master/bind-key.el][use-package bind key]] \\ [[https://github.com/jwiegley/use-package/blob/master/bind-key.el][use-package bind key]] \\
[[https://www.gnu.org/software/emacs/manual/html_node/elisp/Remapping-Commands.html][GNU remapping commands]] \\ [[https://www.gnu.org/software/emacs/manual/html_node/elisp/Remapping-Commands.html][GNU remapping commands]] \\
[[https://www.gnu.org/software/emacs/manual/html_node/efaq/Binding-combinations-of-modifiers-and-function-keys.html][GNU binding combinations of modifiers]] [[https://www.gnu.org/software/emacs/manual/html_node/efaq/Binding-combinations-of-modifiers-and-function-keys.html][GNU binding combinations of modifiers]] \\
[[https://github.com/hlissner/doom-emacs/blob/develop/modules/config/default/+evil-bindings.el][Doom Emacs bindings]]
** Disable default ** Disable default
+3
View File
@@ -1,3 +1,6 @@
// Download directory
user_pref("browser.download.dir", "/home/rick/downloads");
// Display a blank new tab // Display a blank new tab
user_pref("browser.newtabpage.enabled", false); user_pref("browser.newtabpage.enabled", false);
user_pref("browser.newtab.url", "about:blank"); user_pref("browser.newtab.url", "about:blank");
+5 -5
View File
@@ -10,10 +10,10 @@ BACKGROUND="&"
# List of directories to exclude # List of directories to exclude
EXCLUDES=" EXCLUDES="
Code code
Documents documents
dotfiles dotfiles
Downloads downloads
pictures pictures
.cache .cache
.clangd .clangd
@@ -34,8 +34,8 @@ pictures
# List of files to include # List of files to include
INCLUDES=" INCLUDES="
Documents/vm/backup/backup.sh documents/vm/backup/backup.sh
Documents/vm/commands.org documents/vm/commands.org
dotfiles/dotfiles.sh dotfiles/dotfiles.sh
" "
+5 -5
View File
@@ -37,20 +37,20 @@ ${B}ARGS${N}
EOF EOF
} }
# If no option is provided # Exit if no option is provided
[ "$#" -eq 0 ] && help && exit [ "$#" -eq 0 ] && help && exit 1
# Set required X variables # Set required X variables
export DISPLAY=:0 export DISPLAY=:0
export XAUTHORITY="$XDG_DATA_HOME/xorg/Xauthority" export XAUTHORITY="$XDG_DATA_HOME/xorg/Xauthority"
SCRIPT="$(basename "$0")"
# Option handling # Option handling
SCRIPT="$(basename "$0")"
while getopts ':h?d:k:s:' opt; do while getopts ':h?d:k:s:' opt; do
case $opt in case $opt in
h) h)
help help
exit exit 1
;; ;;
d) d)
dev="SYNA3602:00 0911:5288 Touchpad" dev="SYNA3602:00 0911:5288 Touchpad"
@@ -105,8 +105,8 @@ keyboard() {
fi fi
} }
shift $((OPTIND - 2))
# Command handling # Command handling
[ $OPTIND -ge 2 ] && shift $((OPTIND - 2))
if [ "$dev" = "Keyboard" ]; then if [ "$dev" = "Keyboard" ]; then
keyboard "$1" keyboard "$1"
else else
+2 -1
View File
@@ -35,8 +35,8 @@ EOF
# Exit if no option is provided # Exit if no option is provided
[ "$#" -eq 0 ] && help && exit 1 [ "$#" -eq 0 ] && help && exit 1
SCRIPT="$(basename "$0")"
# Option handling # Option handling
SCRIPT="$(basename "$0")"
while getopts ':h?e:w:' opt; do while getopts ':h?e:w:' opt; do
case $opt in case $opt in
h) h)
@@ -79,6 +79,7 @@ wireless() {
fi fi
} }
# Command handling
[ $OPTIND -ge 2 ] && shift $((OPTIND - 2)) [ $OPTIND -ge 2 ] && shift $((OPTIND - 2))
case "$1" in case "$1" in
1 | on) 1 | on)
+7
View File
@@ -1,2 +1,9 @@
# Disable bluetooth
blacklist bluetooth
blacklist btbcm
blacklist btintel
blacklist btrtl
blacklist btusb
# Disable speck cipher # Disable speck cipher
blacklist speck blacklist speck
+1 -1
View File
@@ -1,4 +1,4 @@
# -*- mode: conf -*- # -*- conf -*-
# When usb keyboard is plugged in, run inputctl script # When usb keyboard is plugged in, run inputctl script
# Requires: run as local user with X variables set (DISPLAY and XAUTHORITY) # Requires: run as local user with X variables set (DISPLAY and XAUTHORITY)