Browse Source

Customized configs specifically for Ubuntu on PC

Removed device-specific lines in vz and deleted device-specific folders
in configs. Also added 5 more workspaces in i3 along with keybindings to
switch/move to them.
red-hat-laptop
Kevin Mok 7 years ago
parent
commit
9fcf0867a6
  1. 239
      aliases/zsh_aliases
  2. 256
      configs/X1-Carbon/i3/config
  3. 181
      configs/X1-Carbon/i3blocks/i3blocks.conf
  4. 735
      configs/X1-Carbon/neofetch/config.conf
  5. 679
      configs/X1-Carbon/ranger/rc.conf
  6. 178
      configs/X1-Carbon/ranger/scope.sh
  7. 45
      configs/X1-Carbon/terminator.conf
  8. 57
      configs/i3/config
  9. 0
      configs/i3blocks/i3blocks.conf
  10. 0
      configs/neofetch/config.conf
  11. 1
      configs/nzxt-ubuntu
  12. 62
      configs/nzxt/ranger/commands.py
  13. 1769
      configs/nzxt/ranger/commands_full.py
  14. 226
      configs/nzxt/ranger/rifle.conf
  15. 41
      configs/nzxt/terminator
  16. 1
      configs/ranger/bookmarks
  17. 0
      configs/ranger/commands.py
  18. 0
      configs/ranger/commands_full.py
  19. 2
      configs/ranger/history
  20. 0
      configs/ranger/rc.conf
  21. 0
      configs/ranger/rifle.conf
  22. 0
      configs/ranger/scope.sh
  23. 0
      configs/ranger/tagged
  24. 15
      configs/sam-i3blocks/sam-i3blocks.conf
  25. 6
      configs/set-configs.sh
  26. 9
      configs/terminator-cp.sh
  27. 43
      dotfiles/vimrc

239
aliases/zsh_aliases

@ -27,12 +27,6 @@ function gvx() { urxvt --help 2>&1 | grep $1 ; }
# list file sizes in megabytes with depth 1 # list file sizes in megabytes with depth 1
alias dum="du -d 1 -B M" alias dum="du -d 1 -B M"
# pacman
function pcs() { sudo pacman -S $1 ; }
function pcr() { sudo pacman -R $1 ; }
function aus() { aurman -S $1 ; }
function mpk() { makepkg -si ; }
alias grbm="sudo grub-mkconfig -o /boot/grub/grub.cfg" alias grbm="sudo grub-mkconfig -o /boot/grub/grub.cfg"
# install deb files # install deb files
@ -43,7 +37,7 @@ alias grep='grep --color=auto'
# for finding files by name # for finding files by name
function rfnd() { find . -name "$1" ; } function rfnd() { find . -name "$1" ; }
# find text inside files # find text inside files
function rgrp() { grep -r $1 * ; }
function rgrp() { grep -nr $1 * ; }
function cpd() { cp -avr $1 $2 ; } function cpd() { cp -avr $1 $2 ; }
# extract tar archive # extract tar archive
@ -112,6 +106,7 @@ function aptr() { sudo apt remove $1 ; }
# config files {{{ # # config files {{{ #
alias lc="f ~/linux-config/" alias lc="f ~/linux-config/"
function rlc() { grep -nr $1 ~/linux-config ; }
alias lca="f ~/linux-config/aliases" alias lca="f ~/linux-config/aliases"
alias vv="ni ~/.vimrc" alias vv="ni ~/.vimrc"
@ -151,10 +146,10 @@ function sni() { sudo nvim $1 ; }
# function mrk() { pandoc -o ${1%.*}.html $1 && chr ${1%.*}.html ; } # function mrk() { pandoc -o ${1%.*}.html $1 && chr ${1%.*}.html ; }
function mrk() { pandoc -o ${1%.*}.html $1 ; } function mrk() { pandoc -o ${1%.*}.html $1 ; }
function auc() { xdotool click --repeat 1000000 --delay $1 1 ; } function auc() { xdotool click --repeat 1000000 --delay $1 1 ; }
alias auc1="xdotool click --repeat 1000000 --delay 1 1"
alias auc3="xdotool click --repeat 1000000 --delay 300 1"
alias auc5="xdotool click --repeat 1000000 --delay 500 1"
alias kauc="pkill -f xdotool"
# alias auc1="xdotool click --repeat 1000000 --delay 1 1"
# alias auc3="xdotool click --repeat 1000000 --delay 300 1"
# alias auc5="xdotool click --repeat 1000000 --delay 500 1"
# alias kauc="pkill -f xdotool"
alias vbn="cvlc --loop --alsa-gain 1 ~/Music/brown-noise.mp3" alias vbn="cvlc --loop --alsa-gain 1 ~/Music/brown-noise.mp3"
alias vlm="alsamixer -c 0" alias vlm="alsamixer -c 0"
@ -172,100 +167,6 @@ function py() { python $1 ; }
# }}} applications # # }}} applications #
# device specific {{{ #
# NZXT {{{
if [ "$(hostname)" = "nzxt" ]; then
# audio {{{ #
# was for transferring sink inputs between DAC and speakers but not
# necessary if not using
alias alsi="pactl list short sink-inputs"
alias als="pactl list short sinks"
function amsih() { pactl move-sink-input $1 0 ; }
function amsis() { pactl move-sink-input $1 1 ; }
# }}} audio #
# apps {{{ #
alias nem="nemo ."
alias spt="speedtest"
alias pg="ping -c 5 google.ca"
alias w7="VBoxManage startvm W7 --type headless"
# }}} apps #
# various coding projs {{{ #
alias sfa="f ~/Documents/self-authoring"
alias rcg="$cd_coding_dir/random-color-generator"
alias dcr="$cd_coding_dir/dcr-logger"
alias prf="$cd_coding_dir/ParsaFood"
# swbot {{{ #
alias sb="$cd_coding_dir/swbot"
# alias psb="p3 create_skills_dict.py"
# alias psbo="p3 create_skills_dict.py > output.py"
alias psb="p3 create_monster_dict.py"
alias psbo="p3 create_monster_dict.py > output.py"
# }}} swbot #
# resume {{{ #
alias cv="f ~/Documents/resume/examples"
alias cvf="f ~/Documents/resume/examples/cv"
alias vcv="ni ~/Documents/resume/examples/cv.tex"
alias cvn="ni ~/Documents/resume/resume-notes.md"
alias okcv="ok ~/Documents/resume/examples/cv.pdf"
# https://stackoverflow.com/a/6605085/8811872
function pdftojpg() {
convert \
-verbose \
-density 150 \
-trim \
$1.pdf \
-quality 100 \
-flatten \
-sharpen 0x1.0 \
$1.jpg
}
# }}} resume #
# }}} various coding projs #
# NZXT }}}
# laptop {{{
elif [[ "$(hostname)" = "X1-Carbon" ]]; then
alias gbl="xbacklight -get"
function bl() { xbacklight -set $(echo "scale=2;$1*10" | bc) ; }
alias labm="xrandr --auto && xrandr --output HDMI2 --right-of eDP1 --dpi 100"
alias vlm="alsamixer -c 1"
alias thn="thunar ."
alias plz="f ~/platterz2018/ocr-reader/app/src/main/java/com/google/android/gms/samples/vision/ocrreader"
alias ans="f /usr/local/android-studio/bin/"
# laptop }}}
# ubuntu {{{
elif [ "$(hostname)" = "nzxt-ubuntu" ]; then
# Stardew Valley {{{
sdv_save_dir=~/Documents/sdv-save
alias sdv="f $sdv_save_dir"
alias smp="~/Downloads/sdv/smapi/install\ on\ Linux.sh"
alias imc="sdv && source import-save.sh coop"
function ucf() { f ~/Documents/StardewMods/UncaughtFish ; }
function svmd() { f ~/.local/share/Steam/steamapps/common/Stardew\ Valley/Mods ; }
function svm() { mv $1 ~/.local/share/Steam/steamapps/common/Stardew\ Valley/Mods ; }
# }}}
alias gx="ni ~/Documents/csgo-config/autoexec.cfg"
fi
# }}}
# }}} device specific #
# git {{{ # # git {{{ #
# aliases {{{ # aliases {{{
alias gstr="git config credential.helper store" alias gstr="git config credential.helper store"
@ -286,7 +187,7 @@ alias gsl="git shortlog"
# update {{{ # # update {{{ #
alias gs="git status -u" alias gs="git status -u"
alias gchm="git checkout master"
alias gchom="git checkout master"
alias gchnw="git checkout -b wip" alias gchnw="git checkout -b wip"
alias gchw="git checkout wip" alias gchw="git checkout wip"
alias gheadm1="git reset --hard HEAD~1" alias gheadm1="git reset --hard HEAD~1"
@ -357,7 +258,7 @@ function gmrgr() {
# assume file unchanged # assume file unchanged
function gunc() { git update-index --assume-unchanged $1 ; } function gunc() { git update-index --assume-unchanged $1 ; }
# delete branch locally and on server # delete branch locally and on server
function grmb() { git push -d origin $1 && git branch -D $1 ; }
function grmb() { git push origin --delete $1 && git branch -D $1 ; }
# functions }}} # functions }}}
@ -368,14 +269,20 @@ coding_dir="~/coding"
cd_coding_dir="f $coding_dir" cd_coding_dir="f $coding_dir"
alias cdn="$cd_coding_dir" alias cdn="$cd_coding_dir"
# ideas
ideas_dir="$coding_dir""/ideas"
alias ids="f $ideas_dir"
alias lci="f $ideas_dir/general"
alias vli="ni $ideas_dir/general/ideas.md"
alias fyn="f $ideas_dir/yes-no"
alias ans="f /usr/local/android-studio/bin && ./studio.sh" alias ans="f /usr/local/android-studio/bin && ./studio.sh"
alias gx="ni ~/Documents/csgo-config/autoexec.cfg"
alias jn="ni ~/Documents/journal/6.md"
alias jnt="ni ~/Documents/journal/todo.md"
# ideas {{{ #
# ideas_dir="$coding_dir""/ideas"
# alias ids="f $ideas_dir"
# alias lci="f $ideas_dir/general"
# alias vli="ni $ideas_dir/general/ideas.md"
# alias fyn="f $ideas_dir/yes-no"
# }}} ideas #
# trapbot {{{ # # trapbot {{{ #
alias tb="$cd_coding_dir/trapbot" alias tb="$cd_coding_dir/trapbot"
@ -389,102 +296,28 @@ alias tb="$cd_coding_dir/trapbot"
spv_dir="$coding_dir""/spotify-lib-vis" spv_dir="$coding_dir""/spotify-lib-vis"
alias spv="f $spv_dir/src/spotifyvis" alias spv="f $spv_dir/src/spotifyvis"
alias spvd="f $spv_dir/src" alias spvd="f $spv_dir/src"
alias spvt="f $spv_dir/src/spotifyvis/templates/spotifyvis"
function sspv() { function sspv() {
source api-keys.sh source api-keys.sh
source ../bin/activate source ../bin/activate
python manage.py runserver python manage.py runserver
} }
# }}} spotify-lib-vis #
# }}} coding projs #
# school {{{ #
in_lab=false
cd_school="f ~/Documents/School/notes"
# general {{{
alias sch="$cd_school"
alias 236="$cd_school/236"
alias rml="rm *.aux *.log *.pdf"
# LaTeX {{{ #
function pdl() { pdflatex $1 ; }
function pdlb() { pdflatex $1 && biber $1 && pdflatex $1 ; }
function cptp() {
cp *template.tex cp-template.tex
chmod 600 cp-template.tex
date=`date +%-m-%d`
mv cp-template.tex "$date".tex
alias spvdb="psql -d spotifyvis -U django"
function mig() {
python manage.py makemigrations
python manage.py migrate
} }
# }}} LaTeX #
# }}}
# 136 {{{
alias clc="gcalccmd"
alias mt="ok ~/Documents/School/calc-textbook.pdf"
alias mt2="ok ~/Documents/School/calc-textbook-2.pdf"
alias 136="$cd_school/136"
alias 136l="$cd_school/136/lecture"
alias pr3="$cd_school/136/par/3"
# }}}
# 209 {{{
# dirs {{{
cd_209="f ~/Documents/School/209";
alias 209="$cd_209"
alias 9r="$cd_209/mokkar"
alias 9l="$cd_209/mokkar/lab10"
alias 9a="$cd_209/mokkar/a4"
# }}}
alias ll="ls -la"
alias cdf="echo \". ./.bashrc\"&& ssh mokkar@cdf.utoronto.ca"
function mkex() { chmod 777 $1 ; }
# {{{ Compilation Functions
# compile without running
function c9() { gcc -Wall -std=gnu99 -g -o "${1%.*}.out" "$1" -lm ; }
# compile all without running {{{ #
function c9a() {
for file in *; do
if [[ $file = *.c ]]; then
gcc -Wall -std=gnu99 -g -o "${file%.*}".out "$file"
fi
done
}
# }}} compile all without running #
# compile and run
function c9r() { c9 $1 && ./"${1%.*}.out" ; }
# compile and run with input
function c9i() { c9 $1 && ./"${1%.*}.out" < $2 ; }
# compile and run with input file {{{ #
function run() {
while read line; do
# ./$1.out $line
echo ./$1.out $line
done < $1.in
}
# }}} compile and run with input file #
# temp {{{ #
function m9() {
c9 write_test_file.c
./write_test_file.out test.txt
od -vtu1 test.txt
}
alias m92="c9 time_reads.c && ./time_reads.out 1 test.txt"
# }}} temp #
# }}} spotify-lib-vis #
# }}}
# Stardew Valley {{{
sdv_save_dir=~/Documents/sdv-save
alias sdv="f $sdv_save_dir"
alias smp="~/Downloads/sdv/smapi/install\ on\ Linux.sh"
alias imc="sdv && source import-save.sh coop"
function ucf() { f ~/Documents/StardewMods/UncaughtFish ; }
function svmd() { f ~/.local/share/Steam/steamapps/common/Stardew\ Valley/Mods ; }
function svm() { mv $1 ~/.local/share/Steam/steamapps/common/Stardew\ Valley/Mods ; }
# }}} # }}}
alias 6a="$cd_school/236/a2"
alias 6t="ok ~/Documents/School/236-textbook.pdf"
# }}} school #
# }}} coding projs #

256
configs/X1-Carbon/i3/config

@ -1,256 +0,0 @@
# applications {{{ #
# startup {{{ #
# exec redshift -O 4000
exec /home/kevin/.local/bin/wal -i "/home/kevin/Pictures/Backgrounds/vibrant"
# exec_always /home/kevin/.local/bin/wal -i "/home/kevin/Pictures/Backgrounds/japan-street.jpg"
exec imwheel
exec $def_term
# }}} startup #
set $def_term "rxvt-unicode"
bindsym $mod+control+Return exec $def_term
bindsym Mod4+a exec cd /usr/local/android-studio/bin/ && ./studio.sh
bindsym Mod4+e exec thunar
set $run_chrome "google-chrome-stable --force-device-scale-factor=1.5"
bindsym Mod4+c exec $run_chrome
bindsym Mod4+p exec ksnapshot
bindsym Mod4+r exec urxvt -e ranger
# redshift {{{ #
bindsym $mod+Mod4+1 exec redshift -O 1500
bindsym $mod+Mod4+2 exec redshift -O 2000
bindsym $mod+Mod4+3 exec redshift -O 3000
bindsym $mod+Mod4+4 exec redshift -O 4000
bindsym $mod+Mod4+5 exec redshift -O 5000
bindsym $mod+Mod4+0 exec redshift -x
# }}} redshift #
# menu {{{ #
# start dmenu (a program launcher)
bindsym Mod4+Return exec dmenu_run
# There also is the (new) i3-dmenu-desktop which only displays applications
# shipping a .desktop file. It is a wrapper around dmenu, so you need that
# installed.
# bindsym $mod+d exec --no-startup-id i3-dmenu-desktop
# }}} menu #
# Use Mouse+$mod to drag floating windows to their wanted position
floating_modifier $mod
# }}} applications #
# changing/focusing/moving windows {{{ #
# change focus
bindsym control+h focus left
bindsym control+j focus down
bindsym control+k focus up
bindsym control+l focus right
# move workspace to other monitor
bindsym $mod+h move workspace to output left
bindsym $mod+l move workspace to output right
# move focused window
bindsym control+Shift+h move left
bindsym control+Shift+j move down
bindsym control+Shift+k move up
bindsym control+Shift+l move right
# alternatively, you can use the cursor keys:
bindsym $mod+Shift+Left move left
bindsym $mod+Shift+Down move down
bindsym $mod+Shift+Up move up
bindsym $mod+Shift+Right move right
# split in horizontal orientation
bindsym $mod+b split h
# split in vertical orientation
bindsym $mod+v split v
bindsym control+Shift+x kill
# }}} changing/focusing/moving windows #
# container display {{{ #
# enter fullscreen mode for the focused container
bindsym $mod+f fullscreen toggle
# change container layout (stacked, tabbed, toggle split)
bindsym $mod+s layout stacking
bindsym $mod+t layout tabbed
bindsym $mod+e layout toggle split
# toggle tiling / floating
bindsym $mod+Shift+space floating toggle
# change focus between tiling / floating windows
bindsym $mod+space focus mode_toggle
# focus the parent container
bindsym $mod+a focus parent
# focus the child container
#bindsym $mod+d focus child
# }}} container display #
# workspace {{{ #
# wallpaper
bindsym $mod+q exec /home/kevin/.local/bin/wal -i "/home/kevin/Pictures/Backgrounds/vibrant"
bindsym $mod+w exec /home/kevin/.local/bin/wal -i "/home/kevin/Pictures/Backgrounds/dim"
bindsym $mod+r exec /home/kevin/.local/bin/wal -i "/home/kevin/Pictures/Backgrounds/"
# ws names {{{ #
set $ws1 "1 "
bindsym F1 workspace $ws1; exec $def_term
set $ws2 "2 "
bindsym F2 workspace $ws2; exec $def_term
set $ws3 "3 🌐"
bindsym F3 workspace $ws3; exec $run_chrome
set $ws4 "4 🖹"
set $ws5 "5 "
set $ws6 "6 🗪"
bindsym Mod4+d workspace $ws6; exec discord
bindsym Mod4+l workspace $ws6; exec slack
set $ws7 "7 ↥"
bindsym $mod+F7 workspace $ws7; exec $def_term
set $ws8 "8 𝅘𝅥𝅮"
bindsym Mod4+s workspace $ws8; exec spotify
set $ws9 "9 ✎"
bindsym $mod+F9 workspace $ws9; exec $def_term
set $ws10 "10 "
bindsym $mod+F10 workspace $ws10; exec $def_term
# }}} ws names #
# ws bindings {{{ #
# switch to workspace
# bindsym $mod+plus workspace next
# bindsym $mod+minus workspace prev
bindsym $mod+minus move workspace to output left
bindsym $mod+plus move workspace to output right
bindsym $mod+1 workspace $ws1
bindsym $mod+2 workspace $ws2
bindsym $mod+3 workspace $ws3
bindsym $mod+4 workspace $ws4
bindsym $mod+5 workspace $ws5
bindsym $mod+6 workspace $ws6
bindsym $mod+7 workspace $ws7
bindsym $mod+8 workspace $ws8
bindsym $mod+9 workspace $ws9
bindsym $mod+0 workspace $ws10
# }}} ws bindings #
# move container to ws {{{ #
# move focused container to workspace
# bindsym $mod+control+1 move container to workspace $ws1
# bindsym $mod+control+2 move container to workspace $ws2
# bindsym $mod+control+3 move container to workspace $ws3
# bindsym $mod+control+4 move container to workspace $ws4
bindsym $mod+control+1 move container to workspace $ws1; workspace $ws1
bindsym $mod+control+2 move container to workspace $ws2; workspace $ws2
bindsym $mod+control+3 move container to workspace $ws3; workspace $ws3
bindsym $mod+control+4 move container to workspace $ws4; workspace $ws4
bindsym $mod+control+5 move container to workspace $ws5; workspace $ws5
bindsym $mod+control+6 move container to workspace $ws6; workspace $ws6
bindsym $mod+control+7 move container to workspace $ws7; workspace $ws7
bindsym $mod+control+8 move container to workspace $ws8; workspace $ws8
bindsym $mod+control+9 move container to workspace $ws9; workspace $ws9
bindsym $mod+control+0 move container to workspace $ws10; workspace $ws10
# }}} move container to ws #
# gaps {{{ #
# gaps inner 10
# gaps outer 20
# }}} gaps #
# }}} workspace #
# reload config/computer {{{ #
bindsym $mod+Shift+s exec systemctl suspend
# restart i3 inplace (preserves your layout/session, can be used to upgrade i3)
bindsym $mod+control+r restart
# reload the configuration file
bindsym $mod+Shift+c reload
# exit i3 (logs you out of your X session)
bindsym $mod+Shift+e exec "i3-nagbar -t warning -m 'You pressed the exit shortcut. Do you really want to exit i3? This will end your X session.' -b 'Yes, exit i3' 'i3-msg exit'"
# }}} reload config #
# resizing windows {{{ #
bindsym $mod+control+h resize grow width 10 px or 10 ppt
bindsym $mod+control+l resize shrink width 10 px or 10 ppt
bindsym $mod+control+k resize grow height 10 px or 10 ppt
bindsym $mod+control+j resize shrink height 10 px or 10 ppt
# bindsym $mod+control+k resize grow height 1 px or 1 ppt
# bindsym $mod+control+j resize shrink height 1 px or 1 ppt
# }}} resizing windows #
# gaps {{{ #
for_window [class="^.*"] border pixel 0
gaps inner 25
gaps outer -3
bindsym control+shift+plus gaps inner all plus 5;gaps outer all plus 5
bindsym control+shift+0 gaps inner all minus 5;gaps outer all minus 5
# }}} gaps #
# status bar {{{ #
# Start i3bar to display a workspace bar (plus the system information i3status
# finds out, if available)
set $sb_font Hack Bold 16
bar {
font pango:$sb_font
status_command i3blocks -c ~/.config/i3blocks/i3blocks.conf
tray_output none
}
# }}} status bar #
# mod key/font {{{ #
set $mod Mod1
# Font for window titles. Will also be used by the bar unless a different font
# is used in the bar {} block below.
font pango:Hack 10
# This font is widely installed, provides lots of unicode glyphs, right-to-left
# text rendering and scalability on retina/hidpi displays (thanks to pango).
#font pango:DejaVu Sans Mono 8
# Before i3 v4.8, we used to recommend this one as the default:
# font -misc-fixed-medium-r-normal--13-120-75-75-C-70-iso10646-1
# The font above is very space-efficient, that is, it looks good, sharp and
# clear in small sizes. However, its unicode glyph coverage is limited, the old
# X core fonts rendering does not support right-to-left and this being a bitmap
# font, it doesn’t scale on retina/hidpi displays.
# }}} mod key/font #
# function keys {{{ #
# backlight {{{ #
bindsym $mod+control+plus exec xbacklight -inc 2
bindsym $mod+control+minus exec xbacklight -dec 2
# }}} backlight #
# connect/disconnect wifi {{{ #
bindsym $mod+control+w exec nmcli radio wifi on
bindsym $mod+control+q exec nmcli radio wifi off
# }}} connect/disconnect wifi #
# volume keys {{{ #
bindsym XF86AudioRaiseVolume exec --no-startup-id amixer -c 1 sset Master 5%+
bindsym XF86AudioLowerVolume exec --no-startup-id amixer -c 1 sset Master 5%-
bindsym XF86AudioMute exec --no-startup-id amixer -D pulse set Master 2+ toggle
# bindsym XF86AudioMute exec --no-startup-id amixer -c 1 amixer -D pulse set Master 1+ toggle
# }}} volume keys #
# media keys {{{ #
bindsym XF86AudioPlay exec playerctl play
bindsym XF86AudioPause exec playerctl pause
bindsym XF86AudioNext exec playerctl next
bindsym XF86AudioPrev exec playerctl previous
# }}} media keys #
# volume keys }}} #

181
configs/X1-Carbon/i3blocks/i3blocks.conf

@ -1,181 +0,0 @@
# properties {{{ #
# i3blocks config file
#
# Please see man i3blocks for a complete reference!
# The man page is also hosted at http://vivien.github.io/i3blocks
#
# List of valid properties:
#
# align
# color
# command
# full_text
# instance
# interval
# label
# min_width
# name
# separator
# separator_block_width
# short_text
# signal
# urgent
# }}} properties #
# Global properties {{{ #
# The top properties below are applied to every block, but can be overridden.
# Each block command defaults to the script name to avoid boilerplate.
align=center
command=~/linux-config/configs/i3blocks-scripts/$BLOCK_NAME
separator=true
separator_block_width=25
markup=pango
# }}} Global properties #
# blocks {{{ #
# spotify {{{ #
[spotify]
command=python /usr/share/i3blocks/spotify.py
label=
# label=
color=#388E8E
interval=10
# }}} spotify #
# backlight {{{ #
[backlight]
command=. /usr/share/i3blocks/backlight
label=🔆
color=#EEAD0E
interval=10
# }}} backlight #
# battery {{{ #
[battery]
label=⚡
interval=60
# }}} battery #
# wifi {{{ #
[wifi]
label=
instance=wlp3s0
interval=5
# }}} wifi #
# time {{{ #
[time]
command=date '+%H:%M.%a-%m-%d'
interval=60
color=#999999
# }}} time #
# load {{{ #
[load_average]
label=🗠
interval=5
color=#990000
# }}} load #
# name {{{ #
[name]
color=#cc5490
interval=6000
# }}} name #
# blocks }}} #
# unused blocks {{{ #
# [memory]
# label=
# color=#006600
# [cpu_usage -w 50 -c 80]
# label=
# min_width=CPU: 100.00%
# color=#adeaea
# Volume indicator
#
# The first parameter sets the step (and units to display)
# The second parameter overrides the mixer selection
# See the script for details.
# [volume]
# label=VOL
# #label=♪
# instance=Master
# #instance=PCM
# interval=once
# signal=10
# [memory]
# label=SWAP
# instance=swap
# separator=false
# interval=30
# Disk usage
#
# The directory defaults to $HOME if the instance is not specified.
# The script may be called with a optional argument to set the alert
# (defaults to 10 for 10%).
# [disk]
# label=HOME
# #instance=/mnt/data
# interval=30
# Network interface monitoring
#
# If the instance is not specified, use the interface used for default route.
# The address can be forced to IPv4 or IPv6 with -4 or -6 switches.
# [iface]
# #instance=wlan0
# color=#00FF00
# interval=10
# separator=false
# [bandwidth]
# #instance=eth0
# interval=5
# Generic media player support
#
# This displays "ARTIST - SONG" if a music is playing.
# Supported players are: spotify, vlc, audacious, xmms2, mplayer, and others.
#[mediaplayer]
#instance=spotify
#interval=5
#signal=10
# OpenVPN support
#
# Support multiple VPN, with colors.
#[openvpn]
#interval=20
# Temperature
#
# Support multiple chips, though lm-sensors.
# The script may be called with -w and -c switches to specify thresholds,
# see the script for details.
# [temperature]
# label=TEMP
# interval=10
# Key indicators
#
# Add the following bindings to i3 config file:
#
# bindsym --release Caps_Lock exec pkill -SIGRTMIN+11 i3blocks
# bindsym --release Num_Lock exec pkill -SIGRTMIN+11 i3blocks
#[keyindicator]
#instance=CAPS
#interval=once
#signal=11
#[keyindicator]
#instance=NUM
#interval=once
#signal=11
# }}} unused blocks #

735
configs/X1-Carbon/neofetch/config.conf

@ -1,735 +0,0 @@
# Neofetch config file
# https://github.com/dylanaraps/neofetch
# See this wiki page for more info:
# https://github.com/dylanaraps/neofetch/wiki/Customizing-Info
print_info() {
info title
info underline
info "OS" distro
info "Shell" shell
info "Terminal" term
info "WM" wm
info "Theme" theme
info "CPU" cpu
info "CPU Usage" cpu_usage
info "Memory" memory
info "Resolution" resolution
info "Uptime" uptime
info "Install Date" install_date
# info "Font" font
# info "Song" song
# not showing up
info "Terminal Font" term_font
info "WM Theme" wm_theme
# info "GPU" gpu
# info "Users" users
# info "Host" model
# info "Kernel" kernel
# info "Packages" packages
# info "DE" de
# info "Icons" icons
# info "GPU Driver" gpu_driver # Linux only
# info "Disk" disk
# info "Battery" battery
# info "Local IP" local_ip
# info "Public IP" public_ip
# info "Locale" locale # This only works on glibc systems.
info line_break
info cols
info line_break
}
# Kernel
# Shorten the output of the kernel function.
#
# Default: 'on'
# Values: 'on', 'off'
# Flag: --kernel_shorthand
# Supports: Everything except *BSDs (except PacBSD and PC-BSD)
#
# Example:
# on: '4.8.9-1-ARCH'
# off: 'Linux 4.8.9-1-ARCH'
kernel_shorthand="on"
# Distro
# Shorten the output of the distro function
#
# Default: 'off'
# Values: 'on', 'off', 'tiny'
# Flag: --distro_shorthand
# Supports: Everything except Windows and Haiku
distro_shorthand="off"
# Show/Hide OS Architecture.
# Show 'x86_64', 'x86' and etc in 'Distro:' output.
#
# Default: 'on'
# Values: 'on', 'off'
# Flag: --os_arch
#
# Example:
# on: 'Arch Linux x86_64'
# off: 'Arch Linux'
os_arch="off"
# Uptime
# Shorten the output of the uptime function
#
# Default: 'on'
# Values: 'on', 'off', 'tiny'
# Flag: --uptime_shorthand
#
# Example:
# on: '2 days, 10 hours, 3 mins'
# off: '2 days, 10 hours, 3 minutes'
# tiny: '2d 10h 3m'
uptime_shorthand="on"
# Shell
# Show the path to $SHELL
#
# Default: 'off'
# Values: 'on', 'off'
# Flag: --shell_path
#
# Example:
# on: '/bin/bash'
# off: 'bash'
shell_path="off"
# Show $SHELL version
#
# Default: 'on'
# Values: 'on', 'off'
# Flag: --shell_version
#
# Example:
# on: 'bash 4.4.5'
# off: 'bash'
shell_version="on"
# CPU
# CPU speed type
#
# Default: 'bios_limit'
# Values: 'scaling_cur_freq', 'scaling_min_freq', 'scaling_max_freq', 'bios_limit'.
# Flag: --speed_type
# Supports: Linux with 'cpufreq'
# NOTE: Any file in '/sys/devices/system/cpu/cpu0/cpufreq' can be used as a value.
speed_type="bios_limit"
# CPU speed shorthand
#
# Default: 'off'
# Values: 'on', 'off'.
# Flag: --speed_shorthand.
# NOTE: This flag is not supported in systems with CPU speed less than 1 GHz
#
# Example:
# on: 'i7-6500U (4) @ 3.1GHz'
# off: 'i7-6500U (4) @ 3.100GHz'
speed_shorthand="on"
# Enable/Disable CPU brand in output.
#
# Default: 'on'
# Values: 'on', 'off'
# Flag: --cpu_brand
#
# Example:
# on: 'Intel i7-6500U'
# off: 'i7-6500U (4)'
cpu_brand="on"
# CPU Speed
# Hide/Show CPU speed.
#
# Default: 'on'
# Values: 'on', 'off'
# Flag: --cpu_speed
#
# Example:
# on: 'Intel i7-6500U (4) @ 3.1GHz'
# off: 'Intel i7-6500U (4)'
cpu_speed="on"
# CPU Cores
# Display CPU cores in output
#
# Default: 'logical'
# Values: 'logical', 'physical', 'off'
# Flag: --cpu_cores
# Support: 'physical' doesn't work on BSD.
#
# Example:
# logical: 'Intel i7-6500U (4) @ 3.1GHz' (All virtual cores)
# physical: 'Intel i7-6500U (2) @ 3.1GHz' (All physical cores)
# off: 'Intel i7-6500U @ 3.1GHz'
cpu_cores="logical"
# CPU Temperature
# Hide/Show CPU temperature.
# Note the temperature is added to the regular CPU function.
#
# Default: 'off'
# Values: 'C', 'F', 'off'
# Flag: --cpu_temp
# Supports: Linux, BSD
# NOTE: For FreeBSD and NetBSD-based systems, you'll need to enable
# coretemp kernel module. This only supports newer Intel processors.
#
# Example:
# C: 'Intel i7-6500U (4) @ 3.1GHz [27.2°C]'
# F: 'Intel i7-6500U (4) @ 3.1GHz [82.0°F]'
# off: 'Intel i7-6500U (4) @ 3.1GHz'
cpu_temp="off"
# GPU
# Enable/Disable GPU Brand
#
# Default: 'on'
# Values: 'on', 'off'
# Flag: --gpu_brand
#
# Example:
# on: 'AMD HD 7950'
# off: 'HD 7950'
gpu_brand="on"
# Which GPU to display
#
# Default: 'all'
# Values: 'all', 'dedicated', 'integrated'
# Flag: --gpu_type
# Supports: Linux
#
# Example:
# all:
# GPU1: AMD HD 7950
# GPU2: Intel Integrated Graphics
#
# dedicated:
# GPU1: AMD HD 7950
#
# integrated:
# GPU1: Intel Integrated Graphics
gpu_type="all"
# Resolution
# Display refresh rate next to each monitor
# Default: 'off'
# Values: 'on', 'off'
# Flag: --refresh_rate
# Supports: Doesn't work on Windows.
#
# Example:
# on: '1920x1080 @ 60Hz'
# off: '1920x1080'
refresh_rate="off"
# Gtk Theme / Icons / Font
# Shorten output of GTK Theme / Icons / Font
#
# Default: 'off'
# Values: 'on', 'off'
# Flag: --gtk_shorthand
#
# Example:
# on: 'Numix, Adwaita'
# off: 'Numix [GTK2], Adwaita [GTK3]'
gtk_shorthand="off"
# Enable/Disable gtk2 Theme / Icons / Font
#
# Default: 'on'
# Values: 'on', 'off'
# Flag: --gtk2
#
# Example:
# on: 'Numix [GTK2], Adwaita [GTK3]'
# off: 'Adwaita [GTK3]'
gtk2="on"
# Enable/Disable gtk3 Theme / Icons / Font
#
# Default: 'on'
# Values: 'on', 'off'
# Flag: --gtk3
#
# Example:
# on: 'Numix [GTK2], Adwaita [GTK3]'
# off: 'Numix [GTK2]'
gtk3="on"
# IP Address
# Website to ping for the public IP
#
# Default: 'http://ident.me'
# Values: 'url'
# Flag: --ip_host
public_ip_host="http://ident.me"
# Disk
# Which disks to display.
# The values can be any /dev/sdXX, mount point or directory.
# NOTE: By default we only show the disk info for '/'.
#
# Default: '/'
# Values: '/', '/dev/sdXX', '/path/to/drive'.
# Flag: --disk_show
#
# Example:
# disk_show=('/' '/dev/sdb1'):
# 'Disk (/): 74G / 118G (66%)'
# 'Disk (/mnt/Videos): 823G / 893G (93%)'
#
# disk_show=('/'):
# 'Disk (/): 74G / 118G (66%)'
#
disk_show=('/')
# Disk subtitle.
# What to append to the Disk subtitle.
#
# Default: 'mount'
# Values: 'mount', 'name', 'dir'
# Flag: --disk_subtitle
#
# Example:
# name: 'Disk (/dev/sda1): 74G / 118G (66%)'
# 'Disk (/dev/sdb2): 74G / 118G (66%)'
#
# mount: 'Disk (/): 74G / 118G (66%)'
# 'Disk (/mnt/Local Disk): 74G / 118G (66%)'
# 'Disk (/mnt/Videos): 74G / 118G (66%)'
#
# dir: 'Disk (/): 74G / 118G (66%)'
# 'Disk (Local Disk): 74G / 118G (66%)'
# 'Disk (Videos): 74G / 118G (66%)'
disk_subtitle="mount"
# Song
# Print the Artist and Title on separate lines
#
# Default: 'off'
# Values: 'on', 'off'
# Flag: --song_shorthand
#
# Example:
# on: 'Artist: The Fratellis'
# 'Song: Chelsea Dagger'
#
# off: 'Song: The Fratellis - Chelsea Dagger'
song_shorthand="off"
# Install Date
# Whether to show the time in the output
#
# Default: 'on'
# Values: 'on', 'off'
# Flag: --install_time
#
# Example:
# on: 'Thu 14 Apr 2016 11:50 PM'
# off: 'Thu 14 Apr 2016'
install_time="off"
# Set time format in the output
#
# Default: '24h'
# Values: '12h', '24h'
# Flag: --install_time_format
#
# Example:
# 12h: 'Thu 14 Apr 2016 11:50 PM'
# 24h: 'Thu 14 Apr 2016 23:50'
install_time_format="24h"
# Text Colors
# Text Colors
#
# Default: 'distro'
# Values: 'distro', 'num' 'num' 'num' 'num' 'num' 'num'
# Flag: --colors
#
# Each number represents a different part of the text in
# this order: 'title', '@', 'underline', 'subtitle', 'colon', 'info'
#
# Example:
# colors=(distro) - Text is colored based on Distro colors.
# colors=(4 6 1 8 8 6) - Text is colored in the order above.
colors=(distro)
# Text Options
# Toggle bold text
#
# Default: 'on'
# Values: 'on', 'off'
# Flag: --bold
bold="on"
# Enable/Disable Underline
#
# Default: 'on'
# Values: 'on', 'off'
# Flag: --underline
underline_enabled="on"
# Underline character
#
# Default: '-'
# Values: 'string'
# Flag: --underline_char
underline_char="-"
# Color Blocks
# Color block range
# The range of colors to print.
#
# Default: '0', '7'
# Values: 'num'
# Flag: --block_range
#
# Example:
#
# Display colors 0-7 in the blocks. (8 colors)
# neofetch --block_range 0 7
#
# Display colors 0-15 in the blocks. (16 colors)
# neofetch --block_range 0 15
block_range=(0 7)
# Toggle color blocks
#
# Default: 'on'
# Values: 'on', 'off'
# Flag: --color_blocks
color_blocks="on"
# Color block width in spaces
#
# Default: '3'
# Values: 'num'
# Flag: --block_width
block_width=3
# Color block height in lines
#
# Default: '1'
# Values: 'num'
# Flag: --block_height
block_height=1
# Progress Bars
# Bar characters
#
# Default: '-', '='
# Values: 'string', 'string'
# Flag: --bar_char
#
# Example:
# neofetch --bar_char 'elapsed' 'total'
# neofetch --bar_char '-' '='
bar_char_elapsed="-"
bar_char_total="="
# Toggle Bar border
#
# Default: 'on'
# Values: 'on', 'off'
# Flag: --bar_border
bar_border="on"
# Progress bar length in spaces
# Number of chars long to make the progress bars.
#
# Default: '15'
# Values: 'num'
# Flag: --bar_length
bar_length=15
# Progress bar colors
# When set to distro, uses your distro's logo colors.
#
# Default: 'distro', 'distro'
# Values: 'distro', 'num'
# Flag: --bar_colors
#
# Example:
# neofetch --bar_colors 3 4
# neofetch --bar_colors distro 5
bar_color_elapsed="distro"
bar_color_total="distro"
# Info display
# Display a bar with the info.
#
# Default: 'off'
# Values: 'bar', 'infobar', 'barinfo', 'off'
# Flags: --cpu_display
# --memory_display
# --battery_display
# --disk_display
#
# Example:
# bar: '[---=======]'
# infobar: 'info [---=======]'
# barinfo: '[---=======] info'
# off: 'info'
cpu_display="off"
memory_display="off"
battery_display="off"
disk_display="off"
# Backend Settings
# Image backend.
#
# Default: 'ascii'
# Values: 'ascii', 'caca', 'catimg', 'jp2a', 'iterm2', 'off', 'tycat', 'w3m'
# Flag: --backend
image_backend="ascii"
# Image Source
#
# Which image or ascii file to display.
#
# Default: 'auto'
# Values: 'auto', 'ascii', 'wallpaper', '/path/to/img', '/path/to/ascii', '/path/to/dir/'
# Flag: --source
#
# NOTE: 'auto' will pick the best image source for whatever image backend is used.
# In ascii mode, distro ascii art will be used and in an image mode, your
# wallpaper will be used.
image_source="auto"
# Ascii Options
# Ascii distro
# Which distro's ascii art to display.
#
# Default: 'auto'
# Values: 'auto', 'distro_name'
# Flag: --ascii_distro
#
# NOTE: Arch and Ubuntu have 'old' logo variants.
# Change this to 'arch_old' or 'ubuntu_old' to use the old logos.
# NOTE: Ubuntu has flavor variants.
# Change this to 'Lubuntu', 'Xubuntu', 'Ubuntu-GNOME' or 'Ubuntu-Budgie' to use the flavors.
# NOTE: Arch, Crux and Gentoo have a smaller logo variant.
# Change this to 'arch_small', 'crux_small' or 'gentoo_small' to use the small logos.
ascii_distro="auto"
# Ascii Colors
#
# Default: 'distro'
# Values: 'distro', 'num' 'num' 'num' 'num' 'num' 'num'
# Flag: --ascii_colors
#
# Example:
# ascii_colors=(distro) - Ascii is colored based on Distro colors.
# ascii_colors=(4 6 1 8 8 6) - Ascii is colored using these colors.
ascii_colors=(distro)
# Bold ascii logo
# Whether or not to bold the ascii logo.
#
# Default: 'on'
# Values: 'on', 'off'
# Flag: --ascii_bold
ascii_bold="on"
# Image Options
# Image loop
# Setting this to on will make neofetch redraw the image constantly until
# Ctrl+C is pressed. This fixes display issues in some terminal emulators.
#
# Default: 'off'
# Values: 'on', 'off'
# Flag: --loop
image_loop="off"
# Thumbnail directory
#
# Default: '~/.cache/thumbnails/neofetch'
# Values: 'dir'
thumbnail_dir="${XDG_CACHE_HOME:-${HOME}/.cache}/thumbnails/neofetch"
# Crop mode
#
# Default: 'normal'
# Values: 'normal', 'fit', 'fill'
# Flag: --crop_mode
#
# See this wiki page to learn about the fit and fill options.
# https://github.com/dylanaraps/neofetch/wiki/What-is-Waifu-Crop%3F
crop_mode="normal"
# Crop offset
# Note: Only affects 'normal' crop mode.
#
# Default: 'center'
# Values: 'northwest', 'north', 'northeast', 'west', 'center'
# 'east', 'southwest', 'south', 'southeast'
# Flag: --crop_offset
crop_offset="center"
# Image size
# The image is half the terminal width by default.
#
# Default: 'auto'
# Values: 'auto', '00px', '00%', 'none'
# Flags: --image_size
# --size
image_size="auto"
# Ggap between image and text
#
# Default: '3'
# Values: 'num', '-num'
# Flag: --gap
gap=3
# Image offsets
# Only works with the w3m backend.
#
# Default: '0'
# Values: 'px'
# Flags: --xoffset
# --yoffset
yoffset=0
xoffset=0
# Image background color
# Only works with the w3m backend.
#
# Default: ''
# Values: 'color', 'blue'
# Flag: --bg_color
background_color=
# Scrot Options
# Whether or not to always take a screenshot
# You can manually take a screenshot with "--scrot" or "-s"
#
# Default: 'off'
# Values: 'on', 'off'
# Flags: --scrot
# -s
scrot="off"
# Screenshot Program
# Neofetch will automatically use whatever screenshot tool
# is installed on your system.
#
# If 'neofetch -v' says that it couldn't find a screenshot
# tool or you're using a custom tool then you can change
# the option below to a custom command.
#
# Default: 'auto'
# Values: 'auto' 'cmd -flags'
# Flag: --scrot_cmd
scrot_cmd="auto"
# Screenshot Filename
# What to name the screenshots
#
# Default: 'neofetch-$(date +%F-%I-%M-%S-${RANDOM}).png'
# Values: 'string'
# Flag: --scrot_name
scrot_name="neofetch-$(date +%F-%I-%M-%S-${RANDOM}).png"
# Image upload host
# Where to upload the image.
#
# Default: 'teknik'
# Values: 'imgur', 'teknik'
# Flag: --image_host
#
# NOTE: If you'd like another image host to be added to Neofetch.
# Open an issue on github.
image_host="teknik"
# Misc Options
# Stdout mode
# Turn off all colors and disables image backend (ASCII/Image).
# Useful for piping into another command.
# Default: 'off'
# Values: 'on', 'off'
stdout="off"
# Config version.
#
# NOTE: Don't change this value, neofetch reads this to determine
# how to handle backwards compatibility.
config_version="3.3.0"

679
configs/X1-Carbon/ranger/rc.conf

@ -1,679 +0,0 @@
# default {{{ #
# ===================================================================
# This file contains the default startup commands for ranger.
# To change them, it is recommended to create the file
# ~/.config/ranger/rc.conf and add your custom commands there.
#
# If you copy this whole file there, you may want to set the environment
# variable RANGER_LOAD_DEFAULT_RC to FALSE to avoid loading it twice.
#
# The purpose of this file is mainly to define keybindings and settings.
# For running more complex python code, please create a plugin in "plugins/" or
# a command in "commands.py".
#
# Each line is a command that will be run before the user interface
# is initialized. As a result, you can not use commands which rely
# on the UI such as :delete or :mark.
# ===================================================================
# ===================================================================
# == Options
# ===================================================================
# Which viewmode should be used? Possible values are:
# miller: Use miller columns which show multiple levels of the hierarchy
# multipane: Midnight-commander like multipane view showing all tabs next
# to each other
set viewmode miller
#set viewmode multipane
# How many columns are there, and what are their relative widths?
set column_ratios 1,3,4
# Which files should be hidden? (regular expression)
set hidden_filter ^\.|\.(?:pyc|pyo|bak|swp)$|^lost\+found$|^__(py)?cache__$
# Show hidden files? You can toggle this by typing 'zh'
set show_hidden false
# Ask for a confirmation when running the "delete" command?
# Valid values are "always", "never", "multiple" (default)
# With "multiple", ranger will ask only if you delete multiple files at once.
set confirm_on_delete multiple
# Use non-default path for file preview script?
# ranger ships with scope.sh, a script that calls external programs (see
# README.md for dependencies) to preview images, archives, etc.
#set preview_script ~/.config/ranger/scope.sh
# Use the external preview script or display simple plain text or image previews?
set use_preview_script true
# Automatically count files in the directory, even before entering them?
set automatically_count_files true
# Open all images in this directory when running certain image viewers
# like feh or sxiv? You can still open selected files by marking them.
set open_all_images true
# Be aware of version control systems and display information.
set vcs_aware false
# State of the four backends git, hg, bzr, svn. The possible states are
# disabled, local (only show local info), enabled (show local and remote
# information).
set vcs_backend_git enabled
set vcs_backend_hg disabled
set vcs_backend_bzr disabled
set vcs_backend_svn disabled
# Use one of the supported image preview protocols
set preview_images false
# Set the preview image method. Supported methods:
#
# * w3m (default):
# Preview images in full color with the external command "w3mimgpreview"?
# This requires the console web browser "w3m" and a supported terminal.
# It has been successfully tested with "xterm" and "urxvt" without tmux.
#
# * iterm2:
# Preview images in full color using iTerm2 image previews
# (http://iterm2.com/images.html). This requires using iTerm2 compiled
# with image preview support.
#
# This feature relies on the dimensions of the terminal's font. By default, a
# width of 8 and height of 11 are used. To use other values, set the options
# iterm2_font_width and iterm2_font_height to the desired values.
#
# * urxvt:
# Preview images in full color using urxvt image backgrounds. This
# requires using urxvt compiled with pixbuf support.
#
# * urxvt-full:
# The same as urxvt but utilizing not only the preview pane but the
# whole terminal window.
set preview_images_method w3m
# Default iTerm2 font size (see: preview_images_method: iterm2)
set iterm2_font_width 8
set iterm2_font_height 11
# Use a unicode "..." character to mark cut-off filenames?
set unicode_ellipsis false
# Show dotfiles in the bookmark preview box?
set show_hidden_bookmarks true
# Which colorscheme to use? These colorschemes are available by default:
# default, jungle, snow, solarized
set colorscheme default
# Preview files on the rightmost column?
# And collapse (shrink) the last column if there is nothing to preview?
set preview_files true
set preview_directories true
set collapse_preview true
# Save the console history on exit?
set save_console_history true
# Draw the status bar on top of the browser window (default: bottom)
set status_bar_on_top false
# Draw a progress bar in the status bar which displays the average state of all
# currently running tasks which support progress bars?
set draw_progress_bar_in_status_bar true
# Draw borders around columns?
set draw_borders false
# Display the directory name in tabs?
set dirname_in_tabs false
# Enable the mouse support?
set mouse_enabled true
# Display the file size in the main column or status bar?
set display_size_in_main_column true
set display_size_in_status_bar true
# Display files tags in all columns or only in main column?
set display_tags_in_all_columns true
# Set a title for the window?
set update_title false
# Set the title to "ranger" in the tmux program?
set update_tmux_title false
# Shorten the title if it gets long? The number defines how many
# directories are displayed at once, 0 turns off this feature.
set shorten_title 3
# Show hostname in titlebar?
set hostname_in_titlebar true
# Abbreviate $HOME with ~ in the titlebar (first line) of ranger?
set tilde_in_titlebar false
# How many directory-changes or console-commands should be kept in history?
set max_history_size 20
set max_console_history_size 50
# Try to keep so much space between the top/bottom border when scrolling:
set scroll_offset 8
# Flush the input after each key hit? (Noticeable when ranger lags)
set flushinput true
# Padding on the right when there's no preview?
# This allows you to click into the space to run the file.
set padding_right true
# Save bookmarks (used with mX and `X) instantly?
# This helps to synchronize bookmarks between multiple ranger
# instances but leads to *slight* performance loss.
# When false, bookmarks are saved when ranger is exited.
set autosave_bookmarks true
# Save the "`" bookmark to disk. This can be used to switch to the last
# directory by typing "``".
set save_backtick_bookmark true
# You can display the "real" cumulative size of directories by using the
# command :get_cumulative_size or typing "dc". The size is expensive to
# calculate and will not be updated automatically. You can choose
# to update it automatically though by turning on this option:
set autoupdate_cumulative_size false
# Turning this on makes sense for screen readers:
set show_cursor false
# One of: size, natural, basename, atime, ctime, mtime, type, random
set sort natural
# Additional sorting options
set sort_reverse false
set sort_case_insensitive true
set sort_directories_first true
set sort_unicode false
# Enable this if key combinations with the Alt Key don't work for you.
# (Especially on xterm)
set xterm_alt_key false
# Whether to include bookmarks in cd command
set cd_bookmarks true
# Changes case sensitivity for the cd command tab completion
set cd_tab_case sensitive
# Use fuzzy tab completion with the "cd" command. For example,
# ":cd /u/lo/b<tab>" expands to ":cd /usr/local/bin".
set cd_tab_fuzzy false
# Avoid previewing files larger than this size, in bytes. Use a value of 0 to
# disable this feature.
set preview_max_size 0
# The key hint lists up to this size have their sublists expanded.
# Otherwise the submaps are replaced with "...".
set hint_collapse_threshold 10
# Add the highlighted file to the path in the titlebar
set show_selection_in_titlebar true
# The delay that ranger idly waits for user input, in milliseconds, with a
# resolution of 100ms. Lower delay reduces lag between directory updates but
# increases CPU load.
set idle_delay 2000
# When the metadata manager module looks for metadata, should it only look for
# a ".metadata.json" file in the current directory, or do a deep search and
# check all directories above the current one as well?
set metadata_deep_search false
# Clear all existing filters when leaving a directory
set clear_filters_on_dir_change false
# Disable displaying line numbers in main column
set line_numbers false
# Start line numbers from 1 instead of 0
set one_indexed false
# Save tabs on exit
set save_tabs_on_exit false
# Enable scroll wrapping - moving down while on the last item will wrap around to
# the top and vice versa.
set wrap_scroll false
# Set the global_inode_type_filter to nothing. Possible options: d, f and l for
# directories, files and symlinks respectively.
set global_inode_type_filter
# ===================================================================
# == Local Options
# ===================================================================
# You can set local options that only affect a single directory.
# Examples:
# setlocal path=~/downloads sort mtime
# ===================================================================
# == Command Aliases in the Console
# ===================================================================
alias e edit
alias q quit
alias q! quit!
alias qa quitall
alias qa! quitall!
alias qall quitall
alias qall! quitall!
alias setl setlocal
alias filter scout -prt
alias find scout -aeit
alias mark scout -mr
alias unmark scout -Mr
alias search scout -rs
alias search_inc scout -rts
alias travel scout -aefklst
# ===================================================================
# == Define keys for the browser
# ===================================================================
# Basic
map Q quitall
map q quit
copymap q ZZ ZQ
map R reload_cwd
map F set freeze_files!
map <C-r> reset
map <C-l> redraw_window
map <C-c> abort
map <esc> change_mode normal
map ~ set viewmode!
map i display_file
map ? help
map W display_log
map w taskview_open
map S shell $SHELL
map : console
map ; console
map ! console shell%space
map @ console -p6 shell %%s
map # console shell -p%space
map s console shell%space
map r chain draw_possible_programs; console open_with%%space
map f console find%space
map cd console cd%space
# Change the line mode
map Mf linemode filename
map Mi linemode fileinfo
map Mm linemode mtime
map Mp linemode permissions
map Ms linemode sizemtime
map Mt linemode metatitle
# Tagging / Marking
map t tag_toggle
map ut tag_remove
map "<any> tag_toggle tag=%any
map <Space> mark_files toggle=True
map v mark_files all=True toggle=True
map uv mark_files all=True val=False
map V toggle_visual_mode
map uV toggle_visual_mode reverse=True
# For the nostalgics: Midnight Commander bindings
map <F1> help
map <F2> rename_append
map <F3> display_file
map <F4> edit
map <F5> copy
map <F6> cut
map <F7> console mkdir%space
map <F8> console delete
map <F10> exit
# In case you work on a keyboard with dvorak layout
map <UP> move up=1
map <DOWN> move down=1
map <LEFT> move left=1
map <RIGHT> move right=1
map <HOME> move to=0
map <END> move to=-1
map <PAGEDOWN> move down=1 pages=True
map <PAGEUP> move up=1 pages=True
map <CR> move right=1
#map <DELETE> console delete
map <INSERT> console touch%space
# VIM-like
copymap <UP> k
copymap <DOWN> j
copymap <LEFT> h
copymap <RIGHT> l
copymap <HOME> gg
copymap <END> G
copymap <PAGEDOWN> <C-F>
copymap <PAGEUP> <C-B>
map J move down=0.5 pages=True
map K move up=0.5 pages=True
copymap J <C-D>
copymap K <C-U>
# Jumping around
map H history_go -1
map L history_go 1
map ] move_parent 1
map [ move_parent -1
map } traverse
map ) jump_non
map gh cd ~
map ge cd /etc
map gu cd /usr
map gd cd /dev
map gl cd -r .
map gL cd -r %f
map go cd /opt
map gv cd /var
map gm cd /media
map gM cd /mnt
map gs cd /srv
map gp cd /tmp
map gr cd /
map gR eval fm.cd(ranger.RANGERDIR)
map g/ cd /
map g? cd /usr/share/doc/ranger
# External Programs
map E edit
map du shell -p du --max-depth=1 -h --apparent-size
map dU shell -p du --max-depth=1 -h --apparent-size | sort -rh
map yp yank path
map yd yank dir
map yn yank name
# Filesystem Operations
map = chmod
map cw console rename%space
map a rename_append
map A eval fm.open_console('rename ' + fm.thisfile.relative_path.replace("%", "%%"))
map I eval fm.open_console('rename ' + fm.thisfile.relative_path.replace("%", "%%"), position=7)
map pp paste
map po paste overwrite=True
map pP paste append=True
map pO paste overwrite=True append=True
map pl paste_symlink relative=False
map pL paste_symlink relative=True
map phl paste_hardlink
map pht paste_hardlinked_subtree
map dD console delete
map dd cut
map ud uncut
map da cut mode=add
map dr cut mode=remove
map dt cut mode=toggle
map yy copy
map uy uncut
map ya copy mode=add
map yr copy mode=remove
map yt copy mode=toggle
# Temporary workarounds
map dgg eval fm.cut(dirarg=dict(to=0), narg=quantifier)
map dG eval fm.cut(dirarg=dict(to=-1), narg=quantifier)
map dj eval fm.cut(dirarg=dict(down=1), narg=quantifier)
map dk eval fm.cut(dirarg=dict(up=1), narg=quantifier)
map ygg eval fm.copy(dirarg=dict(to=0), narg=quantifier)
map yG eval fm.copy(dirarg=dict(to=-1), narg=quantifier)
map yj eval fm.copy(dirarg=dict(down=1), narg=quantifier)
map yk eval fm.copy(dirarg=dict(up=1), narg=quantifier)
# Searching
map / console search%space
map n search_next
map N search_next forward=False
map ct search_next order=tag
map cs search_next order=size
map ci search_next order=mimetype
map cc search_next order=ctime
map cm search_next order=mtime
map ca search_next order=atime
# Tabs
map <C-n> tab_new
map <C-w> tab_close
map <TAB> tab_move 1
map <S-TAB> tab_move -1
map <A-Right> tab_move 1
map <A-Left> tab_move -1
map gt tab_move 1
map gT tab_move -1
map gn tab_new
map gc tab_close
map uq tab_restore
map <a-1> tab_open 1
map <a-2> tab_open 2
map <a-3> tab_open 3
map <a-4> tab_open 4
map <a-5> tab_open 5
map <a-6> tab_open 6
map <a-7> tab_open 7
map <a-8> tab_open 8
map <a-9> tab_open 9
# Sorting
map or set sort_reverse!
map oz set sort=random
map os chain set sort=size; set sort_reverse=False
map ob chain set sort=basename; set sort_reverse=False
map on chain set sort=natural; set sort_reverse=False
map om chain set sort=mtime; set sort_reverse=False
map oc chain set sort=ctime; set sort_reverse=False
map oa chain set sort=atime; set sort_reverse=False
map ot chain set sort=type; set sort_reverse=False
map oe chain set sort=extension; set sort_reverse=False
map oS chain set sort=size; set sort_reverse=True
map oB chain set sort=basename; set sort_reverse=True
map oN chain set sort=natural; set sort_reverse=True
map oM chain set sort=mtime; set sort_reverse=True
map oC chain set sort=ctime; set sort_reverse=True
map oA chain set sort=atime; set sort_reverse=True
map oT chain set sort=type; set sort_reverse=True
map oE chain set sort=extension; set sort_reverse=True
map dc get_cumulative_size
# Settings
map zc set collapse_preview!
map zd set sort_directories_first!
map zh set show_hidden!
map <C-h> set show_hidden!
map zI set flushinput!
map zi set preview_images!
map zm set mouse_enabled!
map zp set preview_files!
map zP set preview_directories!
map zs set sort_case_insensitive!
map zu set autoupdate_cumulative_size!
map zv set use_preview_script!
map zf console filter%space
copymap zf zz
# Bookmarks
map `<any> enter_bookmark %any
map '<any> enter_bookmark %any
map m<any> set_bookmark %any
map um<any> unset_bookmark %any
map m<bg> draw_bookmarks
copymap m<bg> um<bg> `<bg> '<bg>
# Generate all the chmod bindings with some python help:
eval for arg in "rwxXst": cmd("map +u{0} shell -f chmod u+{0} %s".format(arg))
eval for arg in "rwxXst": cmd("map +g{0} shell -f chmod g+{0} %s".format(arg))
eval for arg in "rwxXst": cmd("map +o{0} shell -f chmod o+{0} %s".format(arg))
eval for arg in "rwxXst": cmd("map +a{0} shell -f chmod a+{0} %s".format(arg))
eval for arg in "rwxXst": cmd("map +{0} shell -f chmod u+{0} %s".format(arg))
eval for arg in "rwxXst": cmd("map -u{0} shell -f chmod u-{0} %s".format(arg))
eval for arg in "rwxXst": cmd("map -g{0} shell -f chmod g-{0} %s".format(arg))
eval for arg in "rwxXst": cmd("map -o{0} shell -f chmod o-{0} %s".format(arg))
eval for arg in "rwxXst": cmd("map -a{0} shell -f chmod a-{0} %s".format(arg))
eval for arg in "rwxXst": cmd("map -{0} shell -f chmod u-{0} %s".format(arg))
# ===================================================================
# == Define keys for the console
# ===================================================================
# Note: Unmapped keys are passed directly to the console.
# Basic
cmap <tab> eval fm.ui.console.tab()
cmap <s-tab> eval fm.ui.console.tab(-1)
cmap <ESC> eval fm.ui.console.close()
cmap <CR> eval fm.ui.console.execute()
cmap <C-l> redraw_window
copycmap <ESC> <C-c>
copycmap <CR> <C-j>
# Move around
cmap <up> eval fm.ui.console.history_move(-1)
cmap <down> eval fm.ui.console.history_move(1)
cmap <left> eval fm.ui.console.move(left=1)
cmap <right> eval fm.ui.console.move(right=1)
cmap <home> eval fm.ui.console.move(right=0, absolute=True)
cmap <end> eval fm.ui.console.move(right=-1, absolute=True)
cmap <a-left> eval fm.ui.console.move_word(left=1)
cmap <a-right> eval fm.ui.console.move_word(right=1)
# Line Editing
cmap <backspace> eval fm.ui.console.delete(-1)
cmap <delete> eval fm.ui.console.delete(0)
cmap <C-w> eval fm.ui.console.delete_word()
cmap <A-d> eval fm.ui.console.delete_word(backward=False)
cmap <C-k> eval fm.ui.console.delete_rest(1)
cmap <C-u> eval fm.ui.console.delete_rest(-1)
cmap <C-y> eval fm.ui.console.paste()
# And of course the emacs way
copycmap <up> <C-p>
copycmap <down> <C-n>
copycmap <left> <C-b>
copycmap <right> <C-f>
copycmap <home> <C-a>
copycmap <end> <C-e>
copycmap <delete> <C-d>
copycmap <backspace> <C-h>
# Note: There are multiple ways to express backspaces. <backspace> (code 263)
# and <backspace2> (code 127). To be sure, use both.
copycmap <backspace> <backspace2>
# This special expression allows typing in numerals:
cmap <allow_quantifiers> false
# ===================================================================
# == Pager Keybindings
# ===================================================================
# Movement
pmap <down> pager_move down=1
pmap <up> pager_move up=1
pmap <left> pager_move left=4
pmap <right> pager_move right=4
pmap <home> pager_move to=0
pmap <end> pager_move to=-1
pmap <pagedown> pager_move down=1.0 pages=True
pmap <pageup> pager_move up=1.0 pages=True
pmap <C-d> pager_move down=0.5 pages=True
pmap <C-u> pager_move up=0.5 pages=True
copypmap <UP> k <C-p>
copypmap <DOWN> j <C-n> <CR>
copypmap <LEFT> h
copypmap <RIGHT> l
copypmap <HOME> g
copypmap <END> G
copypmap <C-d> d
copypmap <C-u> u
copypmap <PAGEDOWN> n f <C-F> <Space>
copypmap <PAGEUP> p b <C-B>
# Basic
pmap <C-l> redraw_window
pmap <ESC> pager_close
copypmap <ESC> q Q i <F3>
pmap E edit_file
# ===================================================================
# == Taskview Keybindings
# ===================================================================
# Movement
tmap <up> taskview_move up=1
tmap <down> taskview_move down=1
tmap <home> taskview_move to=0
tmap <end> taskview_move to=-1
tmap <pagedown> taskview_move down=1.0 pages=True
tmap <pageup> taskview_move up=1.0 pages=True
tmap <C-d> taskview_move down=0.5 pages=True
tmap <C-u> taskview_move up=0.5 pages=True
copytmap <UP> k <C-p>
copytmap <DOWN> j <C-n> <CR>
copytmap <HOME> g
copytmap <END> G
copytmap <C-u> u
copytmap <PAGEDOWN> n f <C-F> <Space>
copytmap <PAGEUP> p b <C-B>
# Changing priority and deleting tasks
tmap J eval -q fm.ui.taskview.task_move(-1)
tmap K eval -q fm.ui.taskview.task_move(0)
tmap dd eval -q fm.ui.taskview.task_remove()
tmap <pagedown> eval -q fm.ui.taskview.task_move(-1)
tmap <pageup> eval -q fm.ui.taskview.task_move(0)
tmap <delete> eval -q fm.ui.taskview.task_remove()
# Basic
tmap <C-l> redraw_window
tmap <ESC> taskview_close
copytmap <ESC> q Q w <C-c>
# }}} default #
# preview images
set preview_images true
set preview_images_method urxvt
# editing ranger config
map R chain shell nvim -p ~/.config/ranger/rc.conf %rangerdir/config/rc.conf; source ~/.config/ranger/rc.conf
map rr source ~/.config/ranger/rc.conf
# backgrounds
map bg cd ~/Pictures/Backgrounds
map wb shell ~/.local/bin/wal -i %f
map md shell mv %f dim
map mb shell mv %f vibrant
# bulk rename
map cw eval fm.execute_console("bulkrename") if fm.thisdir.marked_items else fm.open_console("rename ")

178
configs/X1-Carbon/ranger/scope.sh

@ -1,178 +0,0 @@
#!/usr/bin/env bash
set -o noclobber -o noglob -o nounset -o pipefail
IFS=$'\n'
# If the option `use_preview_script` is set to `true`,
# then this script will be called and its output will be displayed in ranger.
# ANSI color codes are supported.
# STDIN is disabled, so interactive scripts won't work properly
# This script is considered a configuration file and must be updated manually.
# It will be left untouched if you upgrade ranger.
# Meanings of exit codes:
# code | meaning | action of ranger
# -----+------------+-------------------------------------------
# 0 | success | Display stdout as preview
# 1 | no preview | Display no preview at all
# 2 | plain text | Display the plain content of the file
# 3 | fix width | Don't reload when width changes
# 4 | fix height | Don't reload when height changes
# 5 | fix both | Don't ever reload
# 6 | image | Display the image `$IMAGE_CACHE_PATH` points to as an image preview
# 7 | image | Display the file directly as an image
# Script arguments
FILE_PATH="${1}" # Full path of the highlighted file
PV_WIDTH="${2}" # Width of the preview pane (number of fitting characters)
PV_HEIGHT="${3}" # Height of the preview pane (number of fitting characters)
IMAGE_CACHE_PATH="${4}" # Full path that should be used to cache image preview
PV_IMAGE_ENABLED="${5}" # 'True' if image previews are enabled, 'False' otherwise.
FILE_EXTENSION="${FILE_PATH##*.}"
FILE_EXTENSION_LOWER=$(echo ${FILE_EXTENSION} | tr '[:upper:]' '[:lower:]')
# Settings
HIGHLIGHT_SIZE_MAX=262143 # 256KiB
HIGHLIGHT_TABWIDTH=8
HIGHLIGHT_STYLE='pablo'
PYGMENTIZE_STYLE='autumn'
handle_extension() {
case "${FILE_EXTENSION_LOWER}" in
# Archive
a|ace|alz|arc|arj|bz|bz2|cab|cpio|deb|gz|jar|lha|lz|lzh|lzma|lzo|\
rpm|rz|t7z|tar|tbz|tbz2|tgz|tlz|txz|tZ|tzo|war|xpi|xz|Z|zip)
atool --list -- "${FILE_PATH}" && exit 5
bsdtar --list --file "${FILE_PATH}" && exit 5
exit 1;;
rar)
# Avoid password prompt by providing empty password
unrar lt -p- -- "${FILE_PATH}" && exit 5
exit 1;;
7z)
# Avoid password prompt by providing empty password
7z l -p -- "${FILE_PATH}" && exit 5
exit 1;;
# PDF
pdf)
# Preview as text conversion
pdftotext -l 10 -nopgbrk -q -- "${FILE_PATH}" - && exit 5
exiftool "${FILE_PATH}" && exit 5
exit 1;;
# BitTorrent
torrent)
transmission-show -- "${FILE_PATH}" && exit 5
exit 1;;
# OpenDocument
odt|ods|odp|sxw)
# Preview as text conversion
odt2txt "${FILE_PATH}" && exit 5
exit 1;;
# HTML
htm|html|xhtml)
# Preview as text conversion
w3m -dump "${FILE_PATH}" && exit 5
lynx -dump -- "${FILE_PATH}" && exit 5
elinks -dump "${FILE_PATH}" && exit 5
;; # Continue with next handler on failure
esac
}
handle_image() {
local mimetype="${1}"
case "${mimetype}" in
# SVG
# image/svg+xml)
# convert "${FILE_PATH}" "${IMAGE_CACHE_PATH}" && exit 6
# exit 1;;
# Image
image/*)
local orientation
orientation="$( identify -format '%[EXIF:Orientation]\n' -- "${FILE_PATH}" )"
# If orientation data is present and the image actually
# needs rotating ("1" means no rotation)...
if [[ -n "$orientation" && "$orientation" != 1 ]]; then
# ...auto-rotate the image according to the EXIF data.
convert -- "${FILE_PATH}" -auto-orient "${IMAGE_CACHE_PATH}" && exit 6
fi
# `w3mimgdisplay` will be called for all images (unless overriden as above),
# but might fail for unsupported types.
exit 7;;
# Video
# video/*)
# # Thumbnail
# ffmpegthumbnailer -i "${FILE_PATH}" -o "${IMAGE_CACHE_PATH}" -s 0 && exit 6
# exit 1;;
# PDF
# application/pdf)
# pdftoppm -f 1 -l 1 \
# -scale-to-x 1920 \
# -scale-to-y -1 \
# -singlefile \
# -jpeg -tiffcompression jpeg \
# -- "${FILE_PATH}" "${IMAGE_CACHE_PATH%.*}" \
# && exit 6 || exit 1;;
esac
}
handle_mime() {
local mimetype="${1}"
case "${mimetype}" in
# Text
text/* | */xml)
# Syntax highlight
if [[ "$( stat --printf='%s' -- "${FILE_PATH}" )" -gt "${HIGHLIGHT_SIZE_MAX}" ]]; then
exit 2
fi
if [[ "$( tput colors )" -ge 256 ]]; then
local pygmentize_format='terminal256'
local highlight_format='xterm256'
else
local pygmentize_format='terminal'
local highlight_format='ansi'
fi
highlight --replace-tabs="${HIGHLIGHT_TABWIDTH}" --out-format="${highlight_format}" \
--style="${HIGHLIGHT_STYLE}" --force -- "${FILE_PATH}" && exit 5
# pygmentize -f "${pygmentize_format}" -O "style=${PYGMENTIZE_STYLE}" -- "${FILE_PATH}" && exit 5
exit 2;;
# Image
image/*)
# Preview as text conversion
# img2txt --gamma=0.6 --width="${PV_WIDTH}" -- "${FILE_PATH}" && exit 4
exiftool "${FILE_PATH}" && exit 5
exit 1;;
# Video and audio
video/* | audio/*)
mediainfo "${FILE_PATH}" && exit 5
exiftool "${FILE_PATH}" && exit 5
exit 1;;
esac
}
handle_fallback() {
echo '----- File Type Classification -----' && file --dereference --brief -- "${FILE_PATH}" && exit 5
exit 1
}
MIMETYPE="$( file --dereference --brief --mime-type -- "${FILE_PATH}" )"
if [[ "${PV_IMAGE_ENABLED}" == 'True' ]]; then
handle_image "${MIMETYPE}"
fi
handle_extension
handle_mime "${MIMETYPE}"
handle_fallback
exit 1

45
configs/X1-Carbon/terminator.conf

@ -1,45 +0,0 @@
[global_config]
borderless = True
focus = mouse
hide_from_taskbar = True
inactive_color_offset = 1.0
title_font = Hack 10
title_transmit_bg_color = "#3d3d3d"
title_use_system_font = False
[keybindings]
[layouts]
[[default]]
[[[child1]]]
parent = window0
type = Terminal
[[[window0]]]
parent = ""
type = Window
[plugins]
[profiles]
[[default]]
background_darkness = 0.79
background_image = None
background_type = transparent
copy_on_selection = True
cursor_color = "#b9b9b9"
custom_command = env TERM=xterm-256color bash
font = Hack 10
foreground_color = "#0077ff"
palette = "#000000:#aa0000:#00aa00:#aa5500:#0000aa:#aa00aa:#00aaaa:#aaaaaa:#555555:#ff5555:#55ff55:#ffff55:#5555ff:#ff55ff:#55ffff:#ffffff"
scrollback_infinite = True
scrollbar_position = hidden
show_titlebar = False
use_system_font = False
[[light]]
background_color = "#fdf6e3"
background_darkness = 0.89
background_image = None
background_type = transparent
font = Hack 10
foreground_color = "#657b83"
palette = "#073642:#dc322f:#859900:#b58900:#268bd2:#d33682:#2aa198:#eee8d5:#002b36:#cb4b16:#586e75:#657b83:#839496:#6c71c4:#93a1a1:#fdf6e3"
scrollback_infinite = True
scrollbar_position = hidden
show_titlebar = False
use_system_font = False

57
configs/nzxt/i3/config → configs/i3/config

@ -1,21 +1,20 @@
# applications {{{ #
set $mod Mod1
# startup {{{ # # startup {{{ #
set $browser "firefox" set $browser "firefox"
set $def_term "urxvt" set $def_term "urxvt"
exec redshift -O 4000
exec redshift -O 3000
# random bg # random bg
exec wal -i "$HOME/Pictures/bg/mountains.jpg"
# exec_always ~/.local/bin/wal -i "$HOME/Pictures/Backgrounds/retro-mountains-pink.jpg"
exec wal -i "$HOME/Pictures/Backgrounds/dim"
exec imwheel exec imwheel
exec --no-startup-id start-pulseaudio-x11 exec --no-startup-id start-pulseaudio-x11
# exec --no-startup-id i3-msg 'workspace 1 ; exec $def_term' # exec --no-startup-id i3-msg 'workspace 1 ; exec $def_term'
exec --no-startup-id i3-msg 'workspace 2 ; exec $def_term' exec --no-startup-id i3-msg 'workspace 2 ; exec $def_term'
exec --no-startup-id i3-msg 'workspace 3 ; exec $browser' exec --no-startup-id i3-msg 'workspace 3 ; exec $browser'
exec_always --no-startup-id numlockx on
# }}} startup # # }}} startup #
# applications {{{ #
set $mod Mod1
set $sch_dir "$HOME/Documents/School" set $sch_dir "$HOME/Documents/School"
# app shortcuts {{{ # # app shortcuts {{{ #
@ -30,7 +29,8 @@ bindsym Mod4+f exec firefox
bindsym Mod4+o exec okular bindsym Mod4+o exec okular
bindsym Mod4+m exec okular $sch_dir/calc-textbook.pdf bindsym Mod4+m exec okular $sch_dir/calc-textbook.pdf
bindsym Mod4+n exec nemo bindsym Mod4+n exec nemo
bindsym Mod4+p exec pycharm
bindsym Mod4+p workspace $ws4; exec pgadmin3
# bindsym Mod4+p exec pycharm
bindsym Mod4+r exec urxvt -e ranger bindsym Mod4+r exec urxvt -e ranger
bindsym Print exec ksnapshot bindsym Print exec ksnapshot
# }}} app shortcuts # # }}} app shortcuts #
@ -136,7 +136,7 @@ workspace $ws2 output $samsung
bindsym $mod+F2 workspace $ws2; exec $def_term bindsym $mod+F2 workspace $ws2; exec $def_term
set $ws3 "3 " set $ws3 "3 "
workspace $ws3 output $benq
workspace $ws3 output $samsung
bindsym $mod+F3 workspace $ws3; exec $browser bindsym $mod+F3 workspace $ws3; exec $browser
set $ws4 "4 " set $ws4 "4 "
@ -158,20 +158,30 @@ workspace $ws7 output $samsung
bindsym $mod+F7 workspace $ws7; exec $def_term bindsym $mod+F7 workspace $ws7; exec $def_term
set $ws8 "8 " set $ws8 "8 "
assign [class="jetbrains-"] $ws8
# assign [class="jetbrains-"] $ws8
bindsym $mod+F8 workspace $ws8; exec $def_term
set $ws9 "9 " set $ws9 "9 "
workspace $ws9 output $samsung workspace $ws9 output $samsung
bindsym $mod+F9 workspace $ws9; exec $def_term bindsym $mod+F9 workspace $ws9; exec $def_term
set $ws10 "10 "
set $ws10 "10 🎵"
assign [class="VirtualBox"] $ws10 assign [class="VirtualBox"] $ws10
workspace $ws10 output $samsung workspace $ws10 output $samsung
bindsym $mod+F10 workspace $ws10; exec $def_term
bindsym Mod4+s workspace $ws10; exec spotify bindsym Mod4+s workspace $ws10; exec spotify
set $ws11 "11 "
set $ws11 "11 "
workspace $ws11 output $benq workspace $ws11 output $benq
bindsym $mod+F11 workspace $ws11; exec $def_term bindsym $mod+F11 workspace $ws11; exec $def_term
set $ws12 "12 "
bindsym $mod+F12 workspace $ws12; exec $def_term
set $ws13 "13"
set $ws14 "14"
set $ws15 "15"
# }}} ws names # # }}} ws names #
# ws bindings {{{ # # ws bindings {{{ #
@ -189,15 +199,16 @@ bindsym $mod+7 workspace $ws7
bindsym $mod+8 workspace $ws8 bindsym $mod+8 workspace $ws8
bindsym $mod+9 workspace $ws9 bindsym $mod+9 workspace $ws9
bindsym $mod+0 workspace $ws10 bindsym $mod+0 workspace $ws10
bindsym $mod+Shift+1 workspace $ws11
bindsym Mod4+F1 workspace $ws11
bindsym Mod4+F2 workspace $ws12
bindsym Mod4+F3 workspace $ws13
bindsym Mod4+F4 workspace $ws14
bindsym Mod4+F5 workspace $ws15
# }}} ws bindings # # }}} ws bindings #
# move container to ws {{{ # # move container to ws {{{ #
# move focused container to workspace # move focused container to workspace
# bindsym $mod+control+1 move container to workspace $ws1 # bindsym $mod+control+1 move container to workspace $ws1
# bindsym $mod+control+2 move container to workspace $ws2
# bindsym $mod+control+3 move container to workspace $ws3
# bindsym $mod+control+4 move container to workspace $ws4
bindsym $mod+control+1 move container to workspace $ws1; workspace $ws1 bindsym $mod+control+1 move container to workspace $ws1; workspace $ws1
bindsym $mod+control+2 move container to workspace $ws2; workspace $ws2 bindsym $mod+control+2 move container to workspace $ws2; workspace $ws2
bindsym $mod+control+3 move container to workspace $ws3; workspace $ws3 bindsym $mod+control+3 move container to workspace $ws3; workspace $ws3
@ -208,7 +219,11 @@ bindsym $mod+control+7 move container to workspace $ws7; workspace $ws7
bindsym $mod+control+8 move container to workspace $ws8; workspace $ws8 bindsym $mod+control+8 move container to workspace $ws8; workspace $ws8
bindsym $mod+control+9 move container to workspace $ws9; workspace $ws9 bindsym $mod+control+9 move container to workspace $ws9; workspace $ws9
bindsym $mod+control+0 move container to workspace $ws10; workspace $ws10 bindsym $mod+control+0 move container to workspace $ws10; workspace $ws10
bindsym $mod+control+Shift+1 move container to workspace $ws11
bindsym $mod+Shift+1 move container to workspace $ws11
bindsym $mod+Shift+2 move container to workspace $ws12
bindsym $mod+Shift+3 move container to workspace $ws13
bindsym $mod+Shift+4 move container to workspace $ws14
bindsym $mod+Shift+5 move container to workspace $ws15
# }}} move container to ws # # }}} move container to ws #
# }}} workspace # # }}} workspace #
@ -231,7 +246,7 @@ bindsym $mod+control+l resize shrink width 3 px or 3 ppt
# gaps {{{ # # gaps {{{ #
# remove window titlebars # remove window titlebars
for_window [class="^.*"] border pixel 2
for_window [class="^.*"] border pixel 5
# default gaps # default gaps
# gaps inner 25 # gaps inner 25
gaps inner 0 gaps inner 0
@ -250,14 +265,18 @@ bar {
tray_output none tray_output none
status_command i3blocks -c ~/.config/i3blocks/i3blocks.conf status_command i3blocks -c ~/.config/i3blocks/i3blocks.conf
output HDMI-0 output HDMI-0
wheel_up_cmd nop
wheel_down_cmd nop
} }
bar { bar {
output $samsung output $samsung
# status_command i3blocks -c ~/.config/sam-i3blocks/sam-i3blocks.conf
status_command i3blocks -c ~/.config/sam-i3blocks/sam-i3blocks.conf
tray_output none tray_output none
font pango:$sb_font 22 font pango:$sb_font 22
# font pango:monospace 22, FontAwesome 22 # font pango:monospace 22, FontAwesome 22
wheel_up_cmd nop
wheel_down_cmd nop
} }
# }}} status bar # # }}} status bar #

0
configs/nzxt/i3blocks/i3blocks.conf → configs/i3blocks/i3blocks.conf

0
configs/nzxt/neofetch/config.conf → configs/neofetch/config.conf

1
configs/nzxt-ubuntu

@ -1 +0,0 @@
/home/kevin/linux-config/configs/nzxt

62
configs/nzxt/ranger/commands.py

@ -1,62 +0,0 @@
# This is a sample commands.py. You can add your own commands here.
#
# Please refer to commands_full.py for all the default commands and a complete
# documentation. Do NOT add them all here, or you may end up with defunct
# commands when upgrading ranger.
# A simple command for demonstration purposes follows.
# -----------------------------------------------------------------------------
from __future__ import (absolute_import, division, print_function)
# You can import any python module as needed.
import os
# You always need to import ranger.api.commands here to get the Command class:
from ranger.api.commands import Command
# Any class that is a subclass of "Command" will be integrated into ranger as a
# command. Try typing ":my_edit<ENTER>" in ranger!
class my_edit(Command):
# The so-called doc-string of the class will be visible in the built-in
# help that is accessible by typing "?c" inside ranger.
""":my_edit <filename>
A sample command for demonstration purposes that opens a file in an editor.
"""
# The execute method is called when you run this command in ranger.
def execute(self):
# self.arg(1) is the first (space-separated) argument to the function.
# This way you can write ":my_edit somefilename<ENTER>".
if self.arg(1):
# self.rest(1) contains self.arg(1) and everything that follows
target_filename = self.rest(1)
else:
# self.fm is a ranger.core.filemanager.FileManager object and gives
# you access to internals of ranger.
# self.fm.thisfile is a ranger.container.file.File object and is a
# reference to the currently selected file.
target_filename = self.fm.thisfile.path
# This is a generic function to print text in ranger.
self.fm.notify("Let's edit the file " + target_filename + "!")
# Using bad=True in fm.notify allows you to print error messages:
if not os.path.exists(target_filename):
self.fm.notify("The given file does not exist!", bad=True)
return
# This executes a function from ranger.core.acitons, a module with a
# variety of subroutines that can help you construct commands.
# Check out the source, or run "pydoc ranger.core.actions" for a list.
self.fm.edit_file(target_filename)
# The tab method is called when you press tab, and should return a list of
# suggestions that the user will tab through.
# tabnum is 1 for <TAB> and -1 for <S-TAB> by default
def tab(self, tabnum):
# This is a generic tab-completion function that iterates through the
# content of the current directory.
return self._tab_directory_content()

1769
configs/nzxt/ranger/commands_full.py
File diff suppressed because it is too large
View File

226
configs/nzxt/ranger/rifle.conf

@ -1,226 +0,0 @@
# vim: ft=cfg
#
# This is the configuration file of "rifle", ranger's file executor/opener.
# Each line consists of conditions and a command. For each line the conditions
# are checked and if they are met, the respective command is run.
#
# Syntax:
# <condition1> , <condition2> , ... = command
#
# The command can contain these environment variables:
# $1-$9 | The n-th selected file
# $@ | All selected files
#
# If you use the special command "ask", rifle will ask you what program to run.
#
# Prefixing a condition with "!" will negate its result.
# These conditions are currently supported:
# match <regexp> | The regexp matches $1
# ext <regexp> | The regexp matches the extension of $1
# mime <regexp> | The regexp matches the mime type of $1
# name <regexp> | The regexp matches the basename of $1
# path <regexp> | The regexp matches the absolute path of $1
# has <program> | The program is installed (i.e. located in $PATH)
# env <variable> | The environment variable "variable" is non-empty
# file | $1 is a file
# directory | $1 is a directory
# number <n> | change the number of this command to n
# terminal | stdin, stderr and stdout are connected to a terminal
# X | $DISPLAY is not empty (i.e. Xorg runs)
#
# There are also pseudo-conditions which have a "side effect":
# flag <flags> | Change how the program is run. See below.
# label <label> | Assign a label or name to the command so it can
# | be started with :open_with <label> in ranger
# | or `rifle -p <label>` in the standalone executable.
# else | Always true.
#
# Flags are single characters which slightly transform the command:
# f | Fork the program, make it run in the background.
# | New command = setsid $command >& /dev/null &
# r | Execute the command with root permissions
# | New command = sudo $command
# t | Run the program in a new terminal. If $TERMCMD is not defined,
# | rifle will attempt to extract it from $TERM.
# | New command = $TERMCMD -e $command
# Note: The "New command" serves only as an illustration, the exact
# implementation may differ.
# Note: When using rifle in ranger, there is an additional flag "c" for
# only running the current file even if you have marked multiple files.
#-------------------------------------------
# Websites
#-------------------------------------------
# Rarely installed browsers get higher priority; It is assumed that if you
# install a rare browser, you probably use it. Firefox/konqueror/w3m on the
# other hand are often only installed as fallback browsers.
ext x?html?, has surf, X, flag f = surf -- file://"$1"
ext x?html?, has vimprobable, X, flag f = vimprobable -- "$@"
ext x?html?, has vimprobable2, X, flag f = vimprobable2 -- "$@"
ext x?html?, has qutebrowser, X, flag f = qutebrowser -- "$@"
ext x?html?, has dwb, X, flag f = dwb -- "$@"
ext x?html?, has jumanji, X, flag f = jumanji -- "$@"
ext x?html?, has luakit, X, flag f = luakit -- "$@"
ext x?html?, has uzbl, X, flag f = uzbl -- "$@"
ext x?html?, has uzbl-tabbed, X, flag f = uzbl-tabbed -- "$@"
ext x?html?, has uzbl-browser, X, flag f = uzbl-browser -- "$@"
ext x?html?, has uzbl-core, X, flag f = uzbl-core -- "$@"
ext x?html?, has midori, X, flag f = midori -- "$@"
ext x?html?, has chromium-browser, X, flag f = chromium-browser -- "$@"
ext x?html?, has chromium, X, flag f = chromium -- "$@"
ext x?html?, has google-chrome, X, flag f = google-chrome -- "$@"
ext x?html?, has opera, X, flag f = opera -- "$@"
ext x?html?, has firefox, X, flag f = firefox -- "$@"
ext x?html?, has seamonkey, X, flag f = seamonkey -- "$@"
ext x?html?, has iceweasel, X, flag f = iceweasel -- "$@"
ext x?html?, has epiphany, X, flag f = epiphany -- "$@"
ext x?html?, has konqueror, X, flag f = konqueror -- "$@"
ext x?html?, has elinks, terminal = elinks "$@"
ext x?html?, has links2, terminal = links2 "$@"
ext x?html?, has links, terminal = links "$@"
ext x?html?, has lynx, terminal = lynx -- "$@"
ext x?html?, has w3m, terminal = w3m "$@"
#-------------------------------------------
# Misc
#-------------------------------------------
# Define the "editor" for text files as first action
mime ^text, label editor = ${VISUAL:-$EDITOR} -- "$@"
mime ^text, label pager = "$PAGER" -- "$@"
!mime ^text, label editor, ext xml|json|csv|tex|py|pl|rb|js|sh|php = ${VISUAL:-$EDITOR} -- "$@"
!mime ^text, label pager, ext xml|json|csv|tex|py|pl|rb|js|sh|php = "$PAGER" -- "$@"
ext 1 = man "$1"
ext s[wmf]c, has zsnes, X = zsnes "$1"
ext s[wmf]c, has snes9x-gtk,X = snes9x-gtk "$1"
ext nes, has fceux, X = fceux "$1"
ext exe = wine "$1"
name ^[mM]akefile$ = make
#--------------------------------------------
# Code
#-------------------------------------------
ext py = python -- "$1"
ext pl = perl -- "$1"
ext rb = ruby -- "$1"
ext js = node -- "$1"
ext sh = sh -- "$1"
ext php = php -- "$1"
#--------------------------------------------
# Audio without X
#-------------------------------------------
mime ^audio|ogg$, terminal, has mpv = mpv -- "$@"
mime ^audio|ogg$, terminal, has mplayer2 = mplayer2 -- "$@"
mime ^audio|ogg$, terminal, has mplayer = mplayer -- "$@"
ext midi?, terminal, has wildmidi = wildmidi -- "$@"
#--------------------------------------------
# Video/Audio with a GUI
#-------------------------------------------
mime ^video|audio, has gmplayer, X, flag f = gmplayer -- "$@"
mime ^video|audio, has smplayer, X, flag f = smplayer "$@"
mime ^video, has mpv, X, flag f = mpv -- "$@"
mime ^video, has mpv, X, flag f = mpv --fs -- "$@"
mime ^video, has mplayer2, X, flag f = mplayer2 -- "$@"
mime ^video, has mplayer2, X, flag f = mplayer2 -fs -- "$@"
mime ^video, has mplayer, X, flag f = mplayer -- "$@"
mime ^video, has mplayer, X, flag f = mplayer -fs -- "$@"
mime ^video|audio, has vlc, X, flag f = vlc -- "$@"
mime ^video|audio, has totem, X, flag f = totem -- "$@"
mime ^video|audio, has totem, X, flag f = totem --fullscreen -- "$@"
#--------------------------------------------
# Video without X:
#-------------------------------------------
mime ^video, terminal, !X, has mpv = mpv -- "$@"
mime ^video, terminal, !X, has mplayer2 = mplayer2 -- "$@"
mime ^video, terminal, !X, has mplayer = mplayer -- "$@"
#-------------------------------------------
# Documents
#-------------------------------------------
ext pdf, has llpp, X, flag f = llpp "$@"
ext pdf, has zathura, X, flag f = zathura -- "$@"
ext pdf, has mupdf, X, flag f = mupdf "$@"
ext pdf, has mupdf-x11,X, flag f = mupdf-x11 "$@"
ext pdf, has apvlv, X, flag f = apvlv -- "$@"
ext pdf, has xpdf, X, flag f = xpdf -- "$@"
ext pdf, has evince, X, flag f = evince -- "$@"
ext pdf, has atril, X, flag f = atril -- "$@"
ext pdf, has okular, X, flag f = okular -- "$@"
ext pdf, has epdfview, X, flag f = epdfview -- "$@"
ext pdf, has qpdfview, X, flag f = qpdfview "$@"
ext pdf, has open, X, flat f = open "$@"
ext docx?, has catdoc, terminal = catdoc -- "$@" | "$PAGER"
ext sxc|xlsx?|xlt|xlw|gnm|gnumeric, has gnumeric, X, flag f = gnumeric -- "$@"
ext sxc|xlsx?|xlt|xlw|gnm|gnumeric, has kspread, X, flag f = kspread -- "$@"
ext pptx?|od[dfgpst]|docx?|sxc|xlsx?|xlt|xlw|gnm|gnumeric, has libreoffice, X, flag f = libreoffice "$@"
ext pptx?|od[dfgpst]|docx?|sxc|xlsx?|xlt|xlw|gnm|gnumeric, has soffice, X, flag f = soffice "$@"
ext pptx?|od[dfgpst]|docx?|sxc|xlsx?|xlt|xlw|gnm|gnumeric, has ooffice, X, flag f = ooffice "$@"
ext djvu, has zathura,X, flag f = zathura -- "$@"
ext djvu, has evince, X, flag f = evince -- "$@"
ext djvu, has atril, X, flag f = atril -- "$@"
ext epub, has ebook-viewer, X, flag f = ebook-viewer -- "$@"
ext mobi, has ebook-viewer, X, flag f = ebook-viewer -- "$@"
#-------------------------------------------
# Image Viewing:
#-------------------------------------------
mime ^image/svg, has inkscape, X, flag f = inkscape -- "$@"
mime ^image/svg, has display, X, flag f = display -- "$@"
mime ^image, has pqiv, X, flag f = pqiv -- "$@"
mime ^image, has sxiv, X, flag f = sxiv -- "$@"
mime ^image, has feh, X, flag f = feh -- "$@"
mime ^image, has mirage, X, flag f = mirage -- "$@"
mime ^image, has ristretto, X, flag f = ristretto "$@"
mime ^image, has eog, X, flag f = eog -- "$@"
mime ^image, has eom, X, flag f = eom -- "$@"
mime ^image, has nomacs, X, flag f = nomacs -- "$@"
mime ^image, has geeqie, X, flag f = geeqie -- "$@"
mime ^image, has gimp, X, flag f = gimp -- "$@"
ext xcf, X, flag f = gimp -- "$@"
#-------------------------------------------
# Archives
#-------------------------------------------
# avoid password prompt by providing empty password
ext 7z, has 7z = 7z -p l "$@" | "$PAGER"
# This requires atool
ext ace|ar|arc|bz2?|cab|cpio|cpt|deb|dgc|dmg|gz, has atool = atool --list --each -- "$@" | "$PAGER"
ext iso|jar|msi|pkg|rar|shar|tar|tgz|xar|xpi|xz|zip, has atool = atool --list --each -- "$@" | "$PAGER"
ext 7z|ace|ar|arc|bz2?|cab|cpio|cpt|deb|dgc|dmg|gz, has atool = atool --extract --each -- "$@"
ext iso|jar|msi|pkg|rar|shar|tar|tgz|xar|xpi|xz|zip, has atool = atool --extract --each -- "$@"
# Listing and extracting archives without atool:
ext tar|gz|bz2|xz, has tar = tar vvtf "$1" | "$PAGER"
ext tar|gz|bz2|xz, has tar = for file in "$@"; do tar vvxf "$file"; done
ext bz2, has bzip2 = for file in "$@"; do bzip2 -dk "$file"; done
ext zip, has unzip = unzip -l "$1" | less
ext zip, has unzip = for file in "$@"; do unzip -d "${file%.*}" "$file"; done
ext ace, has unace = unace l "$1" | less
ext ace, has unace = for file in "$@"; do unace e "$file"; done
ext rar, has unrar = unrar l "$1" | less
ext rar, has unrar = for file in "$@"; do unrar x "$file"; done
#-------------------------------------------
# Misc
#-------------------------------------------
label wallpaper, number 11, mime ^image, has feh, X = feh --bg-scale "$1"
label wallpaper, number 12, mime ^image, has feh, X = feh --bg-tile "$1"
label wallpaper, number 13, mime ^image, has feh, X = feh --bg-center "$1"
label wallpaper, number 14, mime ^image, has feh, X = feh --bg-fill "$1"
# Define the editor for non-text files + pager as last action
!mime ^text, !ext xml|json|csv|tex|py|pl|rb|js|sh|php = ask
label editor, !mime ^text, !ext xml|json|csv|tex|py|pl|rb|js|sh|php = ${VISUAL:-$EDITOR} -- "$@"
label pager, !mime ^text, !ext xml|json|csv|tex|py|pl|rb|js|sh|php = "$PAGER" -- "$@"
# The very last action, so that it's never triggered accidentally, is to execute a program:
mime application/x-executable = "$1"

41
configs/nzxt/terminator

@ -1,41 +0,0 @@
[global_config]
borderless = True
focus = mouse
inactive_color_offset = 1.0
tab_position = hidden
title_font = Hack 10
title_hide_sizetext = True
title_transmit_bg_color = "#3d3d3d"
title_use_system_font = False
[keybindings]
[layouts]
[[default]]
[[[child1]]]
parent = window0
type = Terminal
[[[window0]]]
parent = ""
type = Window
[plugins]
[profiles]
[[default]]
background_darkness = 0.94
background_image = None
background_type = transparent
copy_on_selection = True
cursor_color = "#b9b9b9"
custom_command = env TERM=xterm-256color bash
font = Hack 11
foreground_color = "#0077ff"
icon_bell = False
palette = "#000000:#aa0000:#00aa00:#aa5500:#0000aa:#aa00aa:#00aaaa:#aaaaaa:#555555:#ff5555:#55ff55:#ffff55:#5555ff:#ff55ff:#55ffff:#ffffff"
scrollback_infinite = True
scrollbar_position = hidden
show_titlebar = False
use_custom_command = True
use_system_font = False
[[light]]
background_color = "#fdf6e3"
background_image = None
foreground_color = "#657b83"
palette = "#073642:#dc322f:#859900:#b58900:#268bd2:#d33682:#2aa198:#eee8d5:#002b36:#cb4b16:#586e75:#657b83:#839496:#6c71c4:#93a1a1:#fdf6e3"

1
configs/ranger/bookmarks

@ -0,0 +1 @@
':/home/kevin/Pictures/Backgrounds

0
configs/X1-Carbon/ranger/commands.py → configs/ranger/commands.py

0
configs/X1-Carbon/ranger/commands_full.py → configs/ranger/commands_full.py

2
configs/ranger/history

@ -0,0 +1,2 @@
rename rocket-league
rename rocket-league.png

0
configs/nzxt/ranger/rc.conf → configs/ranger/rc.conf

0
configs/X1-Carbon/ranger/rifle.conf → configs/ranger/rifle.conf

0
configs/nzxt/ranger/scope.sh → configs/ranger/scope.sh

0
configs/ranger/tagged

15
configs/nzxt/sam-i3blocks/sam-i3blocks.conf → configs/sam-i3blocks/sam-i3blocks.conf

@ -9,8 +9,13 @@ markup=pango
# }}} Global properties # # }}} Global properties #
[spotify] [spotify]
command=python /usr/share/i3blocks/spotify.py
label=
# label=
color=#006600
interval=10
command=python ~/linux-config/configs/i3blocks-scripts/spotify.py
label=
# color=#006600
color=#388E8E
interval=5
[time]
command=date '+%H:%M'
interval=30
color=#cccccc

6
configs/set-configs.sh

@ -1,11 +1,11 @@
# Get directory variables from script. # Get directory variables from script.
. ../dirs.sh . ../dirs.sh
# List of config dirs in system config dir that I want to link to. # List of config dirs in system config dir that I want to link to.
# config_dirs=(neofetch i3 i3blocks sam-i3blocks ranger)
config_dirs=(neofetch i3 i3blocks ranger)
config_dirs=(neofetch i3 i3blocks sam-i3blocks ranger)
# config_dirs=(neofetch i3 i3blocks ranger)
for cur_dir in $config_dirs; do for cur_dir in $config_dirs; do
# Remove system file. # Remove system file.
rm -rf "$sys_config_dir"/"$cur_dir" rm -rf "$sys_config_dir"/"$cur_dir"
# Link config file in repository to system config location. # Link config file in repository to system config location.
ln -s "$config_dir"/"$pc"/"$cur_dir" "$sys_config_dir"/"$cur_dir"
ln -s "$config_dir"/"$cur_dir" "$sys_config_dir"/"$cur_dir"
done done

9
configs/terminator-cp.sh

@ -1,9 +0,0 @@
# Get directory variables from script.
. ../dirs.sh
# The name of my Terminator config file in the repository.
my_terminator_conf_name=terminator.conf
# Remove currently existing config file in the repository.
rm "$config_dir"/"$pc"/"$my_terminator_conf_name"
# Copy system Terminator config file to repository.
cp "$sys_config_dir"/terminator/config \
"$config_dir"/"$pc"/"$my_terminator_conf_name"

43
dotfiles/vimrc

@ -98,8 +98,8 @@ Plug 'tpope/vim-surround'
Plug 'easymotion/vim-easymotion' Plug 'easymotion/vim-easymotion'
" status bar displaying various info about the current buffer " status bar displaying various info about the current buffer
" Plug 'vim-airline/vim-airline'
" Plug 'vim-airline/vim-airline-themes'
Plug 'vim-airline/vim-airline'
Plug 'vim-airline/vim-airline-themes'
" continue Markdown lists when started " continue Markdown lists when started
Plug 'dkarter/bullets.vim' Plug 'dkarter/bullets.vim'
@ -110,6 +110,9 @@ Plug 'dylanaraps/wal.vim'
" repeat plugin commands " repeat plugin commands
Plug 'tpope/vim-repeat' Plug 'tpope/vim-repeat'
" better Django support
Plug 'tweekmonster/django-plus.vim'
call plug#end() call plug#end()
" colorscheme gotham256 " colorscheme gotham256
@ -160,6 +163,7 @@ nnoremap <leader>ff :set foldmethod=marker<CR> zM
nnoremap <leader>h :set hlsearch! hlsearch?<CR> nnoremap <leader>h :set hlsearch! hlsearch?<CR>
" help " help
nnoremap <leader>he :help nnoremap <leader>he :help
nnoremap <leader>ht :set tabstop=2 shiftwidth=2 expandtab<CR>
nnoremap <leader>vhe :vert help nnoremap <leader>vhe :vert help
" move cursor to middle of line " move cursor to middle of line
nnoremap <leader>m :call cursor(0, len(getline('.'))/2)<CR> nnoremap <leader>m :call cursor(0, len(getline('.'))/2)<CR>
@ -172,7 +176,7 @@ nnoremap <leader>pli :PlugInstall<CR>
nnoremap <leader>plc :PlugClean<CR> nnoremap <leader>plc :PlugClean<CR>
nnoremap <leader>plu :PlugUpdate<CR> nnoremap <leader>plu :PlugUpdate<CR>
" don't break lines " don't break lines
nnoremap <leader>py :set tw=200<CR>
nnoremap <leader>py :set tw=0<CR>
" replace in next x lines " replace in next x lines
nnoremap <leader>r q:i.,.+s///g<ESC>Fsi nnoremap <leader>r q:i.,.+s///g<ESC>Fsi
" replace in line " replace in line
@ -230,36 +234,3 @@ autocmd Filetype tex inoremap <localleader>tx $t(x)$
" }}} tex " " }}} tex "
" }}} Local Mappings " " }}} Local Mappings "
" format XML {{{
function! DoPrettyXML()
" save the filetype so we can restore it later
let l:origft = &ft
set ft=
" delete the xml header if it exists. This will
" permit us to surround the document with fake tags
" without creating invalid xml.
1s/<?xml .*?>//e
" insert fake tags around the entire document.
" This will permit us to pretty-format excerpts of
" XML that may contain multiple top-level elements.
0put ='<PrettyXML>'
$put ='</PrettyXML>'
silent %!xmllint --format -
" xmllint will insert an <?xml?> header. it's easy enough to delete
" if you don't want it.
" delete the fake tags
2d
$d
" restore the 'normal' indentation, which is one extra level
" too deep due to the extra tags we wrapped around the document.
silent %<
" back to home
1
" restore the filetype
exe "set ft=" . l:origft
endfunction
command! PrettyXML call DoPrettyXML()
" format XML }}}
Loading…
Cancel
Save