From 9fcf0867a6bfd115aa80f669b6091e7b6e47349e Mon Sep 17 00:00:00 2001 From: Kevin Mok Date: Thu, 14 Jun 2018 02:17:02 -0400 Subject: [PATCH] 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. --- aliases/zsh_aliases | 239 +-- configs/X1-Carbon/i3/config | 256 --- configs/X1-Carbon/i3blocks/i3blocks.conf | 181 -- configs/X1-Carbon/neofetch/config.conf | 735 ------- configs/X1-Carbon/ranger/rc.conf | 679 ------- configs/X1-Carbon/ranger/scope.sh | 178 -- configs/X1-Carbon/terminator.conf | 45 - configs/{nzxt => }/i3/config | 57 +- configs/{nzxt => }/i3blocks/i3blocks.conf | 0 configs/{nzxt => }/neofetch/config.conf | 0 configs/nzxt-ubuntu | 1 - configs/nzxt/ranger/commands.py | 62 - configs/nzxt/ranger/commands_full.py | 1769 ----------------- configs/nzxt/ranger/rifle.conf | 226 --- configs/nzxt/terminator | 41 - configs/ranger/bookmarks | 1 + configs/{X1-Carbon => }/ranger/commands.py | 0 .../{X1-Carbon => }/ranger/commands_full.py | 0 configs/ranger/history | 2 + configs/{nzxt => }/ranger/rc.conf | 0 configs/{X1-Carbon => }/ranger/rifle.conf | 0 configs/{nzxt => }/ranger/scope.sh | 0 configs/ranger/tagged | 0 .../{nzxt => }/sam-i3blocks/sam-i3blocks.conf | 15 +- configs/set-configs.sh | 6 +- configs/terminator-cp.sh | 9 - dotfiles/vimrc | 43 +- 27 files changed, 97 insertions(+), 4448 deletions(-) delete mode 100644 configs/X1-Carbon/i3/config delete mode 100644 configs/X1-Carbon/i3blocks/i3blocks.conf delete mode 100644 configs/X1-Carbon/neofetch/config.conf delete mode 100644 configs/X1-Carbon/ranger/rc.conf delete mode 100755 configs/X1-Carbon/ranger/scope.sh delete mode 100644 configs/X1-Carbon/terminator.conf rename configs/{nzxt => }/i3/config (89%) rename configs/{nzxt => }/i3blocks/i3blocks.conf (100%) rename configs/{nzxt => }/neofetch/config.conf (100%) delete mode 120000 configs/nzxt-ubuntu delete mode 100644 configs/nzxt/ranger/commands.py delete mode 100644 configs/nzxt/ranger/commands_full.py delete mode 100644 configs/nzxt/ranger/rifle.conf delete mode 100644 configs/nzxt/terminator create mode 100644 configs/ranger/bookmarks rename configs/{X1-Carbon => }/ranger/commands.py (100%) rename configs/{X1-Carbon => }/ranger/commands_full.py (100%) create mode 100644 configs/ranger/history rename configs/{nzxt => }/ranger/rc.conf (100%) rename configs/{X1-Carbon => }/ranger/rifle.conf (100%) rename configs/{nzxt => }/ranger/scope.sh (100%) create mode 100644 configs/ranger/tagged rename configs/{nzxt => }/sam-i3blocks/sam-i3blocks.conf (65%) delete mode 100755 configs/terminator-cp.sh diff --git a/aliases/zsh_aliases b/aliases/zsh_aliases index d95c66a..0397350 100644 --- a/aliases/zsh_aliases +++ b/aliases/zsh_aliases @@ -27,12 +27,6 @@ function gvx() { urxvt --help 2>&1 | grep $1 ; } # list file sizes in megabytes with depth 1 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" # install deb files @@ -43,7 +37,7 @@ alias grep='grep --color=auto' # for finding files by name function rfnd() { find . -name "$1" ; } # find text inside files -function rgrp() { grep -r $1 * ; } +function rgrp() { grep -nr $1 * ; } function cpd() { cp -avr $1 $2 ; } # extract tar archive @@ -112,6 +106,7 @@ function aptr() { sudo apt remove $1 ; } # config files {{{ # alias lc="f ~/linux-config/" +function rlc() { grep -nr $1 ~/linux-config ; } alias lca="f ~/linux-config/aliases" 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 ; } 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 vlm="alsamixer -c 0" @@ -172,100 +167,6 @@ function py() { python $1 ; } # }}} 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 {{{ # # aliases {{{ alias gstr="git config credential.helper store" @@ -286,7 +187,7 @@ alias gsl="git shortlog" # update {{{ # alias gs="git status -u" -alias gchm="git checkout master" +alias gchom="git checkout master" alias gchnw="git checkout -b wip" alias gchw="git checkout wip" alias gheadm1="git reset --hard HEAD~1" @@ -357,7 +258,7 @@ function gmrgr() { # assume file unchanged function gunc() { git update-index --assume-unchanged $1 ; } # 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 }}} @@ -368,14 +269,20 @@ coding_dir="~/coding" cd_coding_dir="f $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 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 {{{ # alias tb="$cd_coding_dir/trapbot" @@ -389,102 +296,28 @@ alias tb="$cd_coding_dir/trapbot" spv_dir="$coding_dir""/spotify-lib-vis" alias spv="f $spv_dir/src/spotifyvis" alias spvd="f $spv_dir/src" +alias spvt="f $spv_dir/src/spotifyvis/templates/spotifyvis" function sspv() { source api-keys.sh source ../bin/activate 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 -} -# }}} 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 +alias spvdb="psql -d spotifyvis -U django" +function mig() { + python manage.py makemigrations + python manage.py migrate } -# }}} 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 # diff --git a/configs/X1-Carbon/i3/config b/configs/X1-Carbon/i3/config deleted file mode 100644 index fbe0ce3..0000000 --- a/configs/X1-Carbon/i3/config +++ /dev/null @@ -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 }}} # diff --git a/configs/X1-Carbon/i3blocks/i3blocks.conf b/configs/X1-Carbon/i3blocks/i3blocks.conf deleted file mode 100644 index 471f5fa..0000000 --- a/configs/X1-Carbon/i3blocks/i3blocks.conf +++ /dev/null @@ -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 # diff --git a/configs/X1-Carbon/neofetch/config.conf b/configs/X1-Carbon/neofetch/config.conf deleted file mode 100644 index a0c1726..0000000 --- a/configs/X1-Carbon/neofetch/config.conf +++ /dev/null @@ -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" diff --git a/configs/X1-Carbon/ranger/rc.conf b/configs/X1-Carbon/ranger/rc.conf deleted file mode 100644 index cecde56..0000000 --- a/configs/X1-Carbon/ranger/rc.conf +++ /dev/null @@ -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" 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 reset -map redraw_window -map abort -map 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 " tag_toggle tag=%any -map 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 help -map rename_append -map display_file -map edit -map copy -map cut -map console mkdir%space -map console delete -map exit - -# In case you work on a keyboard with dvorak layout -map move up=1 -map move down=1 -map move left=1 -map move right=1 -map move to=0 -map move to=-1 -map move down=1 pages=True -map move up=1 pages=True -map move right=1 -#map console delete -map console touch%space - -# VIM-like -copymap k -copymap j -copymap h -copymap l -copymap gg -copymap G -copymap -copymap - -map J move down=0.5 pages=True -map K move up=0.5 pages=True -copymap J -copymap K - -# 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 tab_new -map tab_close -map tab_move 1 -map tab_move -1 -map tab_move 1 -map 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 tab_open 1 -map tab_open 2 -map tab_open 3 -map tab_open 4 -map tab_open 5 -map tab_open 6 -map tab_open 7 -map tab_open 8 -map 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 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 ` enter_bookmark %any -map ' enter_bookmark %any -map m set_bookmark %any -map um unset_bookmark %any - -map m draw_bookmarks -copymap m um ` ' - -# 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 eval fm.ui.console.tab() -cmap eval fm.ui.console.tab(-1) -cmap eval fm.ui.console.close() -cmap eval fm.ui.console.execute() -cmap redraw_window - -copycmap -copycmap - -# Move around -cmap eval fm.ui.console.history_move(-1) -cmap eval fm.ui.console.history_move(1) -cmap eval fm.ui.console.move(left=1) -cmap eval fm.ui.console.move(right=1) -cmap eval fm.ui.console.move(right=0, absolute=True) -cmap eval fm.ui.console.move(right=-1, absolute=True) -cmap eval fm.ui.console.move_word(left=1) -cmap eval fm.ui.console.move_word(right=1) - -# Line Editing -cmap eval fm.ui.console.delete(-1) -cmap eval fm.ui.console.delete(0) -cmap eval fm.ui.console.delete_word() -cmap eval fm.ui.console.delete_word(backward=False) -cmap eval fm.ui.console.delete_rest(1) -cmap eval fm.ui.console.delete_rest(-1) -cmap eval fm.ui.console.paste() - -# And of course the emacs way -copycmap -copycmap -copycmap -copycmap -copycmap -copycmap -copycmap -copycmap - -# Note: There are multiple ways to express backspaces. (code 263) -# and (code 127). To be sure, use both. -copycmap - -# This special expression allows typing in numerals: -cmap false - -# =================================================================== -# == Pager Keybindings -# =================================================================== - -# Movement -pmap pager_move down=1 -pmap pager_move up=1 -pmap pager_move left=4 -pmap pager_move right=4 -pmap pager_move to=0 -pmap pager_move to=-1 -pmap pager_move down=1.0 pages=True -pmap pager_move up=1.0 pages=True -pmap pager_move down=0.5 pages=True -pmap pager_move up=0.5 pages=True - -copypmap k -copypmap j -copypmap h -copypmap l -copypmap g -copypmap G -copypmap d -copypmap u -copypmap n f -copypmap p b - -# Basic -pmap redraw_window -pmap pager_close -copypmap q Q i -pmap E edit_file - -# =================================================================== -# == Taskview Keybindings -# =================================================================== - -# Movement -tmap taskview_move up=1 -tmap taskview_move down=1 -tmap taskview_move to=0 -tmap taskview_move to=-1 -tmap taskview_move down=1.0 pages=True -tmap taskview_move up=1.0 pages=True -tmap taskview_move down=0.5 pages=True -tmap taskview_move up=0.5 pages=True - -copytmap k -copytmap j -copytmap g -copytmap G -copytmap u -copytmap n f -copytmap p 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 eval -q fm.ui.taskview.task_move(-1) -tmap eval -q fm.ui.taskview.task_move(0) -tmap eval -q fm.ui.taskview.task_remove() - -# Basic -tmap redraw_window -tmap taskview_close -copytmap q Q w -# }}} 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 ") diff --git a/configs/X1-Carbon/ranger/scope.sh b/configs/X1-Carbon/ranger/scope.sh deleted file mode 100755 index 540a910..0000000 --- a/configs/X1-Carbon/ranger/scope.sh +++ /dev/null @@ -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 diff --git a/configs/X1-Carbon/terminator.conf b/configs/X1-Carbon/terminator.conf deleted file mode 100644 index e0391f4..0000000 --- a/configs/X1-Carbon/terminator.conf +++ /dev/null @@ -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 diff --git a/configs/nzxt/i3/config b/configs/i3/config similarity index 89% rename from configs/nzxt/i3/config rename to configs/i3/config index 34488f1..7d32a34 100644 --- a/configs/nzxt/i3/config +++ b/configs/i3/config @@ -1,21 +1,20 @@ -# applications {{{ # - -set $mod Mod1 - # startup {{{ # set $browser "firefox" set $def_term "urxvt" -exec redshift -O 4000 +exec redshift -O 3000 # 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 --no-startup-id start-pulseaudio-x11 # 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 3 ; exec $browser' +exec_always --no-startup-id numlockx on # }}} startup # +# applications {{{ # + +set $mod Mod1 set $sch_dir "$HOME/Documents/School" # app shortcuts {{{ # @@ -30,7 +29,8 @@ bindsym Mod4+f exec firefox bindsym Mod4+o exec okular bindsym Mod4+m exec okular $sch_dir/calc-textbook.pdf 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 Print exec ksnapshot # }}} app shortcuts # @@ -136,7 +136,7 @@ workspace $ws2 output $samsung bindsym $mod+F2 workspace $ws2; exec $def_term set $ws3 "3 " -workspace $ws3 output $benq +workspace $ws3 output $samsung bindsym $mod+F3 workspace $ws3; exec $browser set $ws4 "4 " @@ -158,20 +158,30 @@ workspace $ws7 output $samsung bindsym $mod+F7 workspace $ws7; exec $def_term set $ws8 "8 " -assign [class="jetbrains-"] $ws8 +# assign [class="jetbrains-"] $ws8 +bindsym $mod+F8 workspace $ws8; exec $def_term set $ws9 "9 " workspace $ws9 output $samsung bindsym $mod+F9 workspace $ws9; exec $def_term -set $ws10 "10 " +set $ws10 "10 🎵" assign [class="VirtualBox"] $ws10 workspace $ws10 output $samsung +bindsym $mod+F10 workspace $ws10; exec $def_term bindsym Mod4+s workspace $ws10; exec spotify -set $ws11 "11 " +set $ws11 "11 " workspace $ws11 output $benq 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 bindings {{{ # @@ -189,15 +199,16 @@ bindsym $mod+7 workspace $ws7 bindsym $mod+8 workspace $ws8 bindsym $mod+9 workspace $ws9 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 # # 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 @@ -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+9 move container to workspace $ws9; workspace $ws9 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 # # }}} workspace # @@ -231,7 +246,7 @@ bindsym $mod+control+l resize shrink width 3 px or 3 ppt # gaps {{{ # # remove window titlebars -for_window [class="^.*"] border pixel 2 +for_window [class="^.*"] border pixel 5 # default gaps # gaps inner 25 gaps inner 0 @@ -250,14 +265,18 @@ bar { tray_output none status_command i3blocks -c ~/.config/i3blocks/i3blocks.conf output HDMI-0 + wheel_up_cmd nop + wheel_down_cmd nop } bar { 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 font pango:$sb_font 22 # font pango:monospace 22, FontAwesome 22 + wheel_up_cmd nop + wheel_down_cmd nop } # }}} status bar # diff --git a/configs/nzxt/i3blocks/i3blocks.conf b/configs/i3blocks/i3blocks.conf similarity index 100% rename from configs/nzxt/i3blocks/i3blocks.conf rename to configs/i3blocks/i3blocks.conf diff --git a/configs/nzxt/neofetch/config.conf b/configs/neofetch/config.conf similarity index 100% rename from configs/nzxt/neofetch/config.conf rename to configs/neofetch/config.conf diff --git a/configs/nzxt-ubuntu b/configs/nzxt-ubuntu deleted file mode 120000 index 9a50384..0000000 --- a/configs/nzxt-ubuntu +++ /dev/null @@ -1 +0,0 @@ -/home/kevin/linux-config/configs/nzxt \ No newline at end of file diff --git a/configs/nzxt/ranger/commands.py b/configs/nzxt/ranger/commands.py deleted file mode 100644 index 97b7909..0000000 --- a/configs/nzxt/ranger/commands.py +++ /dev/null @@ -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" 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 - - 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". - 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 and -1 for 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() diff --git a/configs/nzxt/ranger/commands_full.py b/configs/nzxt/ranger/commands_full.py deleted file mode 100644 index a3837d8..0000000 --- a/configs/nzxt/ranger/commands_full.py +++ /dev/null @@ -1,1769 +0,0 @@ -# -*- coding: utf-8 -*- -# This file is part of ranger, the console file manager. -# This configuration file is licensed under the same terms as ranger. -# =================================================================== -# -# NOTE: If you copied this file to ~/.config/ranger/commands_full.py, -# then it will NOT be loaded by ranger, and only serve as a reference. -# -# =================================================================== -# This file contains ranger's commands. -# It's all in python; lines beginning with # are comments. -# -# Note that additional commands are automatically generated from the methods -# of the class ranger.core.actions.Actions. -# -# You can customize commands in the file ~/.config/ranger/commands.py. -# It has the same syntax as this file. In fact, you can just copy this -# file there with `ranger --copy-config=commands' and make your modifications. -# But make sure you update your configs when you update ranger. -# -# =================================================================== -# Every class defined here which is a subclass of `Command' will be used as a -# command in ranger. Several methods are defined to interface with ranger: -# execute(): called when the command is executed. -# cancel(): called when closing the console. -# tab(tabnum): called when is pressed. -# quick(): called after each keypress. -# -# tab() argument tabnum is 1 for and -1 for by default -# -# The return values for tab() can be either: -# None: There is no tab completion -# A string: Change the console to this string -# A list/tuple/generator: cycle through every item in it -# -# The return value for quick() can be: -# False: Nothing happens -# True: Execute the command afterwards -# -# The return value for execute() and cancel() doesn't matter. -# -# =================================================================== -# Commands have certain attributes and methods that facilitate parsing of -# the arguments: -# -# self.line: The whole line that was written in the console. -# self.args: A list of all (space-separated) arguments to the command. -# self.quantifier: If this command was mapped to the key "X" and -# the user pressed 6X, self.quantifier will be 6. -# self.arg(n): The n-th argument, or an empty string if it doesn't exist. -# self.rest(n): The n-th argument plus everything that followed. For example, -# if the command was "search foo bar a b c", rest(2) will be "bar a b c" -# self.start(n): Anything before the n-th argument. For example, if the -# command was "search foo bar a b c", start(2) will be "search foo" -# -# =================================================================== -# And this is a little reference for common ranger functions and objects: -# -# self.fm: A reference to the "fm" object which contains most information -# about ranger. -# self.fm.notify(string): Print the given string on the screen. -# self.fm.notify(string, bad=True): Print the given string in RED. -# self.fm.reload_cwd(): Reload the current working directory. -# self.fm.thisdir: The current working directory. (A File object.) -# self.fm.thisfile: The current file. (A File object too.) -# self.fm.thistab.get_selection(): A list of all selected files. -# self.fm.execute_console(string): Execute the string as a ranger command. -# self.fm.open_console(string): Open the console with the given string -# already typed in for you. -# self.fm.move(direction): Moves the cursor in the given direction, which -# can be something like down=3, up=5, right=1, left=1, to=6, ... -# -# File objects (for example self.fm.thisfile) have these useful attributes and -# methods: -# -# tfile.path: The path to the file. -# tfile.basename: The base name only. -# tfile.load_content(): Force a loading of the directories content (which -# obviously works with directories only) -# tfile.is_directory: True/False depending on whether it's a directory. -# -# For advanced commands it is unavoidable to dive a bit into the source code -# of ranger. -# =================================================================== - -from __future__ import (absolute_import, division, print_function) - -from collections import deque -import os -import re - -from ranger.api.commands import Command - - -class alias(Command): - """:alias - - Copies the oldcommand as newcommand. - """ - - context = 'browser' - resolve_macros = False - - def execute(self): - if not self.arg(1) or not self.arg(2): - self.fm.notify('Syntax: alias ', bad=True) - return - - self.fm.commands.alias(self.arg(1), self.rest(2)) - - -class echo(Command): - """:echo - - Display the text in the statusbar. - """ - - def execute(self): - self.fm.notify(self.rest(1)) - - -class cd(Command): - """:cd [-r] - - The cd command changes the directory. - The command 'cd -' is equivalent to typing ``. - Using the option "-r" will get you to the real path. - """ - - def execute(self): - if self.arg(1) == '-r': - self.shift() - destination = os.path.realpath(self.rest(1)) - if os.path.isfile(destination): - self.fm.select_file(destination) - return - else: - destination = self.rest(1) - - if not destination: - destination = '~' - - if destination == '-': - self.fm.enter_bookmark('`') - else: - self.fm.cd(destination) - - def _tab_args(self): - # dest must be rest because path could contain spaces - if self.arg(1) == '-r': - start = self.start(2) - dest = self.rest(2) - else: - start = self.start(1) - dest = self.rest(1) - - if dest: - head, tail = os.path.split(os.path.expanduser(dest)) - if head: - dest_exp = os.path.join(os.path.normpath(head), tail) - else: - dest_exp = tail - else: - dest_exp = '' - return (start, dest_exp, os.path.join(self.fm.thisdir.path, dest_exp), - dest.endswith(os.path.sep)) - - @staticmethod - def _tab_paths(dest, dest_abs, ends_with_sep): - if not dest: - try: - return next(os.walk(dest_abs))[1], dest_abs - except (OSError, StopIteration): - return [], '' - - if ends_with_sep: - try: - return [os.path.join(dest, path) for path in next(os.walk(dest_abs))[1]], '' - except (OSError, StopIteration): - return [], '' - - return None, None - - def _tab_match(self, path_user, path_file): - if self.fm.settings.cd_tab_case == 'insensitive': - path_user = path_user.lower() - path_file = path_file.lower() - elif self.fm.settings.cd_tab_case == 'smart' and path_user.islower(): - path_file = path_file.lower() - return path_file.startswith(path_user) - - def _tab_normal(self, dest, dest_abs): - dest_dir = os.path.dirname(dest) - dest_base = os.path.basename(dest) - - try: - dirnames = next(os.walk(os.path.dirname(dest_abs)))[1] - except (OSError, StopIteration): - return [], '' - - return [os.path.join(dest_dir, d) for d in dirnames if self._tab_match(dest_base, d)], '' - - def _tab_fuzzy_match(self, basepath, tokens): - """ Find directories matching tokens recursively """ - if not tokens: - tokens = [''] - paths = [basepath] - while True: - token = tokens.pop() - matches = [] - for path in paths: - try: - directories = next(os.walk(path))[1] - except (OSError, StopIteration): - continue - matches += [os.path.join(path, d) for d in directories - if self._tab_match(token, d)] - if not tokens or not matches: - return matches - paths = matches - - return None - - def _tab_fuzzy(self, dest, dest_abs): - tokens = [] - basepath = dest_abs - while True: - basepath_old = basepath - basepath, token = os.path.split(basepath) - if basepath == basepath_old: - break - if os.path.isdir(basepath_old) and not token.startswith('.'): - basepath = basepath_old - break - tokens.append(token) - - paths = self._tab_fuzzy_match(basepath, tokens) - if not os.path.isabs(dest): - paths_rel = basepath - paths = [os.path.relpath(path, paths_rel) for path in paths] - else: - paths_rel = '' - return paths, paths_rel - - def tab(self, tabnum): - from os.path import sep - - start, dest, dest_abs, ends_with_sep = self._tab_args() - - paths, paths_rel = self._tab_paths(dest, dest_abs, ends_with_sep) - if paths is None: - if self.fm.settings.cd_tab_fuzzy: - paths, paths_rel = self._tab_fuzzy(dest, dest_abs) - else: - paths, paths_rel = self._tab_normal(dest, dest_abs) - - paths.sort() - - if self.fm.settings.cd_bookmarks: - paths[0:0] = [ - os.path.relpath(v.path, paths_rel) if paths_rel else v.path - for v in self.fm.bookmarks.dct.values() for path in paths - if v.path.startswith(os.path.join(paths_rel, path) + sep) - ] - - if not paths: - return None - if len(paths) == 1: - return start + paths[0] + sep - return [start + dirname for dirname in paths] - - -class chain(Command): - """:chain ; ; ... - - Calls multiple commands at once, separated by semicolons. - """ - - def execute(self): - if not self.rest(1).strip(): - self.fm.notify('Syntax: chain ; ; ...', bad=True) - return - for command in [s.strip() for s in self.rest(1).split(";")]: - self.fm.execute_console(command) - - -class shell(Command): - escape_macros_for_shell = True - - def execute(self): - if self.arg(1) and self.arg(1)[0] == '-': - flags = self.arg(1)[1:] - command = self.rest(2) - else: - flags = '' - command = self.rest(1) - - if command: - self.fm.execute_command(command, flags=flags) - - def tab(self, tabnum): - from ranger.ext.get_executables import get_executables - if self.arg(1) and self.arg(1)[0] == '-': - command = self.rest(2) - else: - command = self.rest(1) - start = self.line[0:len(self.line) - len(command)] - - try: - position_of_last_space = command.rindex(" ") - except ValueError: - return (start + program + ' ' for program - in get_executables() if program.startswith(command)) - if position_of_last_space == len(command) - 1: - selection = self.fm.thistab.get_selection() - if len(selection) == 1: - return self.line + selection[0].shell_escaped_basename + ' ' - return self.line + '%s ' - - before_word, start_of_word = self.line.rsplit(' ', 1) - return (before_word + ' ' + file.shell_escaped_basename - for file in self.fm.thisdir.files or [] - if file.shell_escaped_basename.startswith(start_of_word)) - - -class open_with(Command): - - def execute(self): - app, flags, mode = self._get_app_flags_mode(self.rest(1)) - self.fm.execute_file( - files=[f for f in self.fm.thistab.get_selection()], - app=app, - flags=flags, - mode=mode) - - def tab(self, tabnum): - return self._tab_through_executables() - - def _get_app_flags_mode(self, string): # pylint: disable=too-many-branches,too-many-statements - """Extracts the application, flags and mode from a string. - - examples: - "mplayer f 1" => ("mplayer", "f", 1) - "atool 4" => ("atool", "", 4) - "p" => ("", "p", 0) - "" => None - """ - - app = '' - flags = '' - mode = 0 - split = string.split() - - if len(split) == 1: - part = split[0] - if self._is_app(part): - app = part - elif self._is_flags(part): - flags = part - elif self._is_mode(part): - mode = part - - elif len(split) == 2: - part0 = split[0] - part1 = split[1] - - if self._is_app(part0): - app = part0 - if self._is_flags(part1): - flags = part1 - elif self._is_mode(part1): - mode = part1 - elif self._is_flags(part0): - flags = part0 - if self._is_mode(part1): - mode = part1 - elif self._is_mode(part0): - mode = part0 - if self._is_flags(part1): - flags = part1 - - elif len(split) >= 3: - part0 = split[0] - part1 = split[1] - part2 = split[2] - - if self._is_app(part0): - app = part0 - if self._is_flags(part1): - flags = part1 - if self._is_mode(part2): - mode = part2 - elif self._is_mode(part1): - mode = part1 - if self._is_flags(part2): - flags = part2 - elif self._is_flags(part0): - flags = part0 - if self._is_mode(part1): - mode = part1 - elif self._is_mode(part0): - mode = part0 - if self._is_flags(part1): - flags = part1 - - return app, flags, int(mode) - - def _is_app(self, arg): - return not self._is_flags(arg) and not arg.isdigit() - - @staticmethod - def _is_flags(arg): - from ranger.core.runner import ALLOWED_FLAGS - return all(x in ALLOWED_FLAGS for x in arg) - - @staticmethod - def _is_mode(arg): - return all(x in '0123456789' for x in arg) - - -class set_(Command): - """:set