diff --git a/.bashrc b/.bashrc index e1a7fb8..6cfeaed 100755 --- a/.bashrc +++ b/.bashrc @@ -23,7 +23,35 @@ alias graphs="ssh net@192.168.1.137" alias installed_packages="comm -23 <(pacman -Qeq | sort) <(pacman -Qgq base base-devel | sort)" alias unused_packages="pacman -Qtdq" -alias piavpn="sh /opt/pia/ruby/ruby.sh /opt/pia/pia_manager/run.rb /dev/null&" +alias piavpn="sh /opt/pia/run.sh > /dev/null 2>&1 &" + +bind_amd() { + modprobe vfio + modprobe vfio_pci + + # VGA + echo '0000:01:00.0' > /sys/bus/pci/devices/0000:01:00.0/driver/unbind + echo '1002 67b1' > /sys/bus/pci/drivers/vfio-pci/new_id + echo '0000:01:00.0' > /sys/bus/pci/devices/0000:01:00.0/driver/bind + echo '1002 67b1' > /sys/bus/pci/drivers/vfio-pci/remove_id + + # Audio + echo '0000:01:00.1' > /sys/bus/pci/devices/0000:01:00.1/driver/unbind + echo '1002 aac8' > /sys/bus/pci/drivers/vfio-pci/new_id + echo '0000:01:00.1' > /sys/bus/pci/devices/0000:01:00.1/driver/bind + echo '1002 aac8' > /sys/bus/pci/drivers/vfio-pci/remove_id + + sleep 1 +} + + +unbind_amd() { + echo 1 > /sys/bus/pci/devices/0000:01:00.0/remove + echo 1 > /sys/bus/pci/devices/0000:01:00.1/remove + echo 1 > /sys/bus/pci/rescan + + sleep 1 +} PS1="\u@\h:\w \$ " diff --git a/.config/i3/config b/.config/i3/config index 27615c4..4c4c5b5 100755 --- a/.config/i3/config +++ b/.config/i3/config @@ -2,7 +2,11 @@ set $mod Mod4 font pango:DejaVu Sans Mono 9 exec_always setxkbmap ee -exec_always "xrandr --output HDMI1 --mode 2560x1440 --rate 59.95 --output HDMI2 --mode 1920x1080 --rate 59.93 --left-of HDMI1" + +# ovmf +#exec_always "xrandr --output HDMI1 --mode 2560x1440 --rate 59.95 --output HDMI2 --mode 1920x1080 --rate 59.93 --left-of HDMI1" +# normal +exec_always "xrandr --output HDMI-3 --mode 2560x1440 --rate 59.95 --output DVI-D-1 --mode 1920x1080 --rate 59.93 --left-of HDMI-3" exec_always ~/.scripts/daemons.sh @@ -29,23 +33,24 @@ default_border pixel 1 bindsym $mod+Ctrl+r restart bindsym $mod+Ctrl+q kill -bindsym $mod+s exec ~/.scripts/dmen_run.sh +bindsym $mod+s exec ~/.scripts/dmenu-run.sh bindsym $mod+Return exec urxvt -bindsym $mod+F1 exec ~/.scripts/audio.sh toggle_mute +bindsym $mod+F1 exec ~/.scripts/audio.sh toggle-mute bindsym $mod+F2 exec ~/.scripts/audio.sh lower bindsym $mod+F3 exec ~/.scripts/audio.sh raise -bindsym $mod+F4 exec ~/.scripts/wal.sh +bindsym $mod+F4 exec ~/.scripts/dmenu-wal.sh +bindsym $mod+Shift+F4 exec ~/.scripts/wal.sh -bindsym $mod+F5 exec ~/.scripts/music.sh toggle +bindsym $mod+F5 exec ~/.scripts/music.sh toggle-playback bindsym $mod+Shift+F2 exec ~/.scripts/music.sh lower bindsym $mod+Shift+F3 exec ~/.scripts/music.sh raise bindsym $mod+F7 exec ~/.scripts/music.sh prev bindsym $mod+F8 exec ~/.scripts/music.sh next -bindsym $mod+F9 exec ~/.scripts/mount.sh -bindsym $mod+F10 exec ~/.scripts/umount.sh +bindsym $mod+F9 exec ~/.scripts/dmenu-mount.sh +bindsym $mod+F10 exec ~/.scripts/dmenu-umount.sh bindsym $mod+h focus left bindsym $mod+j focus down diff --git a/.config/mpd/database b/.config/mpd/database index d334197..9131895 100644 Binary files a/.config/mpd/database and b/.config/mpd/database differ diff --git a/.config/mpd/pid b/.config/mpd/pid index 8766d8a..9beea1f 100644 --- a/.config/mpd/pid +++ b/.config/mpd/pid @@ -1 +1 @@ -732 +750 diff --git a/.config/mpd/playlists/Nujabes Revelation.m3u b/.config/mpd/playlists/Nujabes Revelation.m3u new file mode 100644 index 0000000..56ea62e --- /dev/null +++ b/.config/mpd/playlists/Nujabes Revelation.m3u @@ -0,0 +1,52 @@ +Nujabes/Samurai Champloo Music Record/Departure/17. MINMI - 四季ノ唄.mp3 +Nujabes/Samurai Champloo Music Record/Impression/23. MINMI - Who's Theme.mp3 +Nujabes/Methaphorical Music/01. Blessing It (remix) (ft. Substantial & Pase Rock).mp3 +Nujabes/Methaphorical Music/02. Horn in the Middle.mp3 +Nujabes/Methaphorical Music/03. Lady Brown (ft. Cise Starr).mp3 +Nujabes/Methaphorical Music/04. Kumomi.mp3 +Nujabes/Methaphorical Music/05. Highs 2 Lows (ft. Cise Starr).mp3 +Nujabes/Methaphorical Music/06. Beat Laments the World.mp3 +Nujabes/Methaphorical Music/07. Letter From Yokosuka.mp3 +Nujabes/Methaphorical Music/08. Think Different (ft. Substantial).mp3 +Nujabes/Methaphorical Music/09. A Day by Atmosphere Supreme.mp3 +Nujabes/Methaphorical Music/10. Next View (ft. Uyama Hiroto).mp3 +Nujabes/Methaphorical Music/11. Latitude (remix) (ft. Five Deez).mp3 +Nujabes/Methaphorical Music/12. F.I.L.O. (ft. Shing02).mp3 +Nujabes/Methaphorical Music/13. Summer Gypsy.mp3 +Nujabes/Methaphorical Music/14. The Final View.mp3 +Nujabes/Methaphorical Music/15. Peaceland.mp3 +Nujabes/Samurai Champloo Music Record/Departure/01. Nujabes - Battlecry (feat. Shing02).mp3 +Nujabes/Samurai Champloo Music Record/Departure/02. Nujabes - The Space Between Two World.mp3 +Nujabes/Samurai Champloo Music Record/Departure/03. Nujabes - Aruarian Dance.mp3 +Nujabes/Samurai Champloo Music Record/Departure/04. Nujabes - Kujaku.mp3 +Nujabes/Samurai Champloo Music Record/Departure/05. Nujabes - Mystline.mp3 +Nujabes/Samurai Champloo Music Record/Departure/06. Nujabes - 1st. Samurai.mp3 +Nujabes/Samurai Champloo Music Record/Impression/08. Nujabes - A Space in Air in Space in Air (interlude).mp3 +Nujabes/Samurai Champloo Music Record/Impression/09. Nujabes - Sanctuary Ship.mp3 +Nujabes/Samurai Champloo Music Record/Impression/10. Nujabes - Haiku (interlude).mp3 +Nujabes/Samurai Champloo Music Record/Impression/11. Nujabes - Tsurugi No Mai.mp3 +Nujabes/Samurai Champloo Music Record/Impression/12. Nujabes - Dead Season.mp3 +Nujabes/Samurai Champloo Music Record/Impression/13. Nujabes - Decade (interlude).mp3 +Nujabes/Samurai Champloo Music Record/Impression/14. Nujabes - World Without Words.mp3 +Nujabes/Samurai Champloo Music Record/Impression/15. Nujabes - Kodama (interlude).mp3 +Nujabes/Samurai Champloo Music Record/Impression/16. Nujabes - Silver Morning.mp3 +Nujabes/Modal Soul/01. Feather (ft. Cise Starr & Akin).mp3 +Nujabes/Modal Soul/02. Ordinary Joe (ft. Terry Callier).mp3 +Nujabes/Modal Soul/03. Reflection Eternal.mp3 +Nujabes/Modal Soul/04. Luv (sic.), Part 3 (ft. Shing02).mp3 +Nujabes/Modal Soul/05. Music Is Mine.mp3 +Nujabes/Modal Soul/06. Eclipse (ft. Substantial).mp3 +Nujabes/Modal Soul/07. The Sign (ft. Pase Rock).mp3 +Nujabes/Modal Soul/08. Thank You (ft. Apani B).mp3 +Nujabes/Modal Soul/09. World's End Rhapsody.mp3 +Nujabes/Modal Soul/10. Modal Soul (ft. Uyama Hiroto).mp3 +Nujabes/Modal Soul/11. Flowers.mp3 +Nujabes/Modal Soul/12. Sea of Cloud.mp3 +Nujabes/Modal Soul/13. Light on the Land.mp3 +Nujabes/Modal Soul/14. Horizon.mp3 +Nujabes/Luv(sic) (ft. Shing02)/Part 1.mp3 +Nujabes/Luv(sic) (ft. Shing02)/Part 2.mp3 +Nujabes/Luv(sic) (ft. Shing02)/Part 3.mp3 +Nujabes/Luv(sic) (ft. Shing02)/Part 4.mp3 +Nujabes/Luv(sic) (ft. Shing02)/Part 5.mp3 +Nujabes/Luv(sic) (ft. Shing02)/Part 6.mp3 diff --git a/.config/mpv/input.conf b/.config/mpv/input.conf new file mode 100755 index 0000000..2d976f3 --- /dev/null +++ b/.config/mpv/input.conf @@ -0,0 +1,86 @@ +MBTN_LEFT ignore +MBTN_LEFT_DBL cycle fullscreen +MBTN_RIGHT cycle pause +WHEEL_UP seek +0.5 +WHEEL_DOWN seek -0.5 + +j add volume -2 +k add volume +2 +Shift+j add volume -10 +Shift+k add volume +10 +Ctrl+j add volume -1 +Ctrl+k add volume +1 + +h seek -5 +l seek +5 +Shift+h seek -15 +Shift+l seek +15 +Ctrl+h seek -1 +Ctrl+l seek +1 + +Shift+y loop + +PGUP add chapter +1 +PGDWN add chapter -1 +Shift+PGUP seek +600 +Shift+PGDWN seek -600 + +. frame-step +, frame-back-step + +[ multiply speed 0.9 +] multiply speed 1.1 +{ multiply speed 0.5 +} multiply speed 2.0 +BS set speed 1.0 + +q quit + +ESC set fullscreen no +f cycle fullscreen + +p cycle pause +SPACE cycle pause +m cycle mute + +Ctrl+a cycle audio +Ctrl+s cycle sub + +s async screenshot +S async screenshot video + +> playlist-next +< playlist-prev + +o show-progress +P show-progress + +1 add contrast -1 +2 add contrast +1 +3 add brightness -1 +4 add brightness +1 +5 add gamma -1 +6 add gamma +1 +7 add saturation -1 +8 add saturation +1 + +Alt+1 set window-scale 0.25 +Alt+2 set window-scale 0.5 +Alt+3 set window-scale 1.0 +Shift+WHEEL_UP no-osd cycle-values video-rotate "90" "180" "270" "0" +Shift+WHEEL_DOWN no-osd cycle-values video-rotate "270" "180" "90" "0" + +POWER quit +STOP quit +CLOSE_WIN quit +MUTE cycle mute +PLAY cycle pause +PAUSE cycle pause +PLAYPAUSE cycle pause +FORWARD seek +30 +REWIND seek -30 +NEXT playlist-next +PREV playlist-prev +VOLUME_UP add volume +2 +VOLUME_DOWN add volume -2 + diff --git a/.config/mpv/mpv.conf b/.config/mpv/mpv.conf old mode 100644 new mode 100755 index 9611910..4caaf82 --- a/.config/mpv/mpv.conf +++ b/.config/mpv/mpv.conf @@ -1,14 +1,16 @@ -no-input-default-bindings - -#profile=gpu-hq -deband=no - -#scale=ewa_lanczossharp -#cscale=ewa_lanczossharp - -alang=jpn,jp -slang=eng,en - -#video-sync=display-resample -#interpolation - +z add sub-delay -0.1 +x add sub-delay +0.1 + +profile=gpu-hq +vo=gpu + +scale=ewa_lanczossharp +cscale=ewa_lanczossharp + +alang=jpn,jp +slang=eng,en + +video-sync=display-resample +interpolation +tscale=oversample +volume=70 \ No newline at end of file diff --git a/.config/ncmpcpp/bindings b/.config/ncmpcpp/bindings index f1494b3..e22229f 100755 --- a/.config/ncmpcpp/bindings +++ b/.config/ncmpcpp/bindings @@ -1,11 +1,21 @@ def_key "j" - scroll_down + scroll_down def_key "k" - scroll_up + scroll_up def_key "h" - previous_column + previous_column def_key "l" - next_column + next_column + +def_key "l" + play_item + +def_key "H" + previous + +def_key "L" + next + diff --git a/.config/ranger/rc.conf b/.config/ranger/rc.conf index 4946ea3..d24149b 100644 --- a/.config/ranger/rc.conf +++ b/.config/ranger/rc.conf @@ -1,5 +1,12 @@ -#set show_hidden true set preview_images true set use_preview_script true set preview_script=~/.config/ranger/scope.sh +map bw shell ~/.scripts/wal.sh %f +map cW bulkrename %s +map mkd console mkdir%space +map D console delete + +map ytv console shell youtube-dl -ic%space +map yta console shell youtube-dl -xic%space + diff --git a/.config/tremc/settings.cfg b/.config/tremc/settings.cfg new file mode 100644 index 0000000..6921aef --- /dev/null +++ b/.config/tremc/settings.cfg @@ -0,0 +1,41 @@ +[Connection] +password = +username = +port = 9091 +host = localhost +path = /transmission/rpc +ssl = False + +[Sorting] +order = name + +[Filtering] +filter = +invert = False + +[Misc] +compact_list = False +torrentname_is_progressbar = True +file_viewer = xdg-open %%s +file_open_in_terminal = True + +[Colors] +title_seed = bg:green,fg:black +title_download = bg:blue,fg:black +title_idle = bg:cyan,fg:black +title_verify = bg:magenta,fg:black +title_paused = bg:black,fg:white +title_error = bg:red,fg:white +download_rate = bg:blue,fg:white +upload_rate = bg:blue,fg:white +eta+ratio = bg:black,fg:white +filter_status = bg:red,fg:black +dialog = bg:black,fg:white +dialog_important = bg:red,fg:black +button = bg:white,fg:black +button_focused = bg:black,fg:white +file_prio_high = bg:red,fg:black +file_prio_normal = bg:white,fg:black +file_prio_low = bg:yellow,fg:black +file_prio_off = bg:blue,fg:black + diff --git a/.scripts/audio.sh b/.scripts/audio.sh index 26b39fe..43e46c5 100755 --- a/.scripts/audio.sh +++ b/.scripts/audio.sh @@ -1,27 +1,19 @@ #!/bin/bash -current_volume=$(pamixer --get-volume) - case $1 in "raise") - (( current_volume += 5 )) - [[ current_volume -gt 100 ]] && current_volume=100 - - pamixer --set-volume $current_volume - notify-send -t 250 "VOL: $current_volume" + pamixer -i 2 + notify-send -t 250 "VOL: $(pamixer --get-volume)" pkill -RTMIN+1 i3blocks ;; "lower") - (( current_volume -= 5 )) - [[ current_volume -lt 0 ]] && current_volume=0 - - pamixer --set-volume $current_volume - notify-send -t 250 "VOL: $current_volume" + pamixer -d 2 + notify-send -t 250 "VOL: $(pamixer --get-volume)" pkill -RTMIN+1 i3blocks ;; "toggle_mute") pamixer --toggle-mute - notify-send -t 300 "MUTE: $(pamixer --get-mute)" + notify-send -t 250 "MUTE: $(pamixer --get-mute)" ;; esac diff --git a/.scripts/mount.sh b/.scripts/dmenu-mount.sh similarity index 79% rename from .scripts/mount.sh rename to .scripts/dmenu-mount.sh index d751d8d..aa6f51a 100755 --- a/.scripts/mount.sh +++ b/.scripts/dmenu-mount.sh @@ -7,16 +7,16 @@ COLS="name,type,size,mountpoint" drives="$(lsblk -rpo "$COLS" | awk '$2=="part"&&$4==""{printf "%s (%s)\n",$1,$3}')" [ -z "$drives" ] && exit 1 -chosen="$(echo "$drives" | ~/.scripts/dmen.sh -i -p "Mount which drive?" | awk '{print $1}')" +chosen="$(echo "$drives" | ~/.scripts/dmenu.sh -i -p "Choose drive to mount:" | awk '{print $1}')" [ -z "$chosen" ] && exit 1 sudo -A mount "$chosen" && exit 0 # You may want to change the line below for more suggestions for mounting. # I.e. you can increase the depth of the search, or add directories. # This will increase the load time briefly though. -mp="$(find /mnt /media /mount /home -type d -maxdepth 5 2>/dev/null | ~/.scripts/dmen.sh -i -p "Type in mount point.")" +mp="$(find /mnt /media /mount /home -type d -maxdepth 5 2>/dev/null | ~/.scripts/dmen.sh -i -p "Mount point:")" [ "$mp" = "" ] && exit 1 if [ ! -d "$mp" ]; then - mkdiryn=$(printf "No\\nYes" | ~/.scripts/dmen.sh -i -p "$mp does not exist. Create it?") + mkdiryn=$(printf "No\\nYes" | ~/.scripts/dmenu.sh -i -p "$mp does not exist. Create it?") [ "$mkdiryn" = "Yes" ] && sudo -A mkdir -p "$mp" fi sudo -A mount "$chosen" "$mp" && pgrep -x dunst && notify-send "$chosen mounted to $mp." diff --git a/dotfiles/.scripts/dmen_run.sh b/.scripts/dmenu-run.sh similarity index 100% rename from dotfiles/.scripts/dmen_run.sh rename to .scripts/dmenu-run.sh diff --git a/dotfiles/.scripts/umount.sh b/.scripts/dmenu-umount.sh similarity index 82% rename from dotfiles/.scripts/umount.sh rename to .scripts/dmenu-umount.sh index 1f2a47d..7353af6 100755 --- a/dotfiles/.scripts/umount.sh +++ b/.scripts/dmenu-umount.sh @@ -5,7 +5,7 @@ drives=$(lsblk -nrpo "name,type,size,mountpoint" | awk '$2=="part"&&$4!~/\/boot|\/home$|SWAP/&&length($4)>1{printf "%s (%s) on %s\n",$1,$3,$4}') [ -z "$drives" ] && exit -chosen=$(echo "$drives" | ~/.scripts/dmen.sh -i -p "Unmount which drive?" | awk '{print $1}') +chosen=$(echo "$drives" | ~/.scripts/dmenu.sh -i -p "Choose drive to unmount:" | awk '{print $1}') [ -z "$chosen" ] && exit sudo -A umount "$chosen" && pgrep -x dunst && notify-send "$chosen unmounted." diff --git a/.scripts/dmenu-wal.sh b/.scripts/dmenu-wal.sh new file mode 100755 index 0000000..3cb3a04 --- /dev/null +++ b/.scripts/dmenu-wal.sh @@ -0,0 +1,8 @@ +#!/bin/bash + +wallpapers=(~/.wallpapers/*) +[ -z "$wallpapers" ] && exit +chosen=$(printf "%s\n" "${wallpapers[@]}" | cut -c24-80 | ~/.scripts/dmenu.sh -i -p "Choose wallpaper:") +[ -z "$chosen" ] && exit +~/.scripts/wal.sh ~/.wallpapers/$chosen + diff --git a/dotfiles/.scripts/dmen.sh b/.scripts/dmenu.sh similarity index 100% rename from dotfiles/.scripts/dmen.sh rename to .scripts/dmenu.sh diff --git a/.scripts/music.sh b/.scripts/music.sh index 2bbd073..4439c16 100755 --- a/.scripts/music.sh +++ b/.scripts/music.sh @@ -13,12 +13,12 @@ case $1 in pkill -RTMIN+2 i3blocks ;; "lower") - mpc volume -5 + mpc volume -2 notify-send -t 250 "VOL: $(mpc volume | awk '{match($2,"[0-9]*",a)}END{print a[0]}')" pkill -RTMIN+2 i3blocks ;; "raise") - mpc volume +5 + mpc volume +2 notify-send -t 250 "VOL: $(mpc volume | awk '{match($2,"[0-9]*",a)}END{print a[0]}')" pkill -RTMIN+2 i3blocks ;; diff --git a/.scripts/umount.sh b/.scripts/umount.sh deleted file mode 100755 index 1f2a47d..0000000 --- a/.scripts/umount.sh +++ /dev/null @@ -1,11 +0,0 @@ -#!/bin/sh -# A dmenu prompt to unmount drives. -# Provides you with mounted partitions, select one to unmount. -# Drives mounted at /, /boot and /home will not be options to unmount. - -drives=$(lsblk -nrpo "name,type,size,mountpoint" | awk '$2=="part"&&$4!~/\/boot|\/home$|SWAP/&&length($4)>1{printf "%s (%s) on %s\n",$1,$3,$4}') -[ -z "$drives" ] && exit -chosen=$(echo "$drives" | ~/.scripts/dmen.sh -i -p "Unmount which drive?" | awk '{print $1}') -[ -z "$chosen" ] && exit -sudo -A umount "$chosen" && pgrep -x dunst && notify-send "$chosen unmounted." - diff --git a/.scripts/vfioswap.sh b/.scripts/vfioswap.sh new file mode 100755 index 0000000..e9f237d --- /dev/null +++ b/.scripts/vfioswap.sh @@ -0,0 +1,35 @@ +#!/bin/bash + +if [[ $EUID -ne 0 ]]; then + echo "this program requires root access" + exit +fi + +kernel_modules="vfio_pci vfio vfio_iommu_type1 vfio_virqfd" + +select choice1 in "enable vfio" "disable vfio" "exit"; do + case $choice1 in + "enable vfio") + sudo echo "options vfio-pci ids=1002:67b1,1002:aac8" >> /etc/modprobe.d/vfio.conf + sudo sed -i -e "s/MODULES=()/MODULES=($kernel_modules)/g" /etc/mkinitcpio.conf + break;; + "disable vfio") + sudo rm /etc/modprobe.d/vfio.conf + sudo sed -i -e "s/MODULES=($kernel_modules)/MODULES=()/g" /etc/mkinitcpio.conf + break;; + "exit") + exit;; + esac +done + +echo "regenerate the initramfs?" +select choice2 in "yes" "no"; do + case $choice2 in + "yes") + sudo mkinitcpio -p linux + break;; + "no") + exit;; + esac +done + diff --git a/.scripts/wal.sh b/.scripts/wal.sh new file mode 100755 index 0000000..80d5be0 --- /dev/null +++ b/.scripts/wal.sh @@ -0,0 +1,9 @@ +#!/bin/bash + +if [ $# -eq 0 ]; then + files=(~/.wallpapers/*) + wal -i ${files[RANDOM % ${#files[@]}]} -a 80 +else + wal -i $1 -a 80 +fi + diff --git a/dotfiles/.wallpapers/1516222861474.jpg b/.wallpapers/corridor_red_blue.jpg similarity index 100% rename from dotfiles/.wallpapers/1516222861474.jpg rename to .wallpapers/corridor_red_blue.jpg diff --git a/.wallpapers/current b/.wallpapers/current deleted file mode 120000 index b3096b1..0000000 --- a/.wallpapers/current +++ /dev/null @@ -1 +0,0 @@ -mountains.jpg \ No newline at end of file diff --git a/dotfiles/.wallpapers/1523617710354.jpg b/.wallpapers/fog_pebbles.jpg similarity index 100% rename from dotfiles/.wallpapers/1523617710354.jpg rename to .wallpapers/fog_pebbles.jpg diff --git a/dotfiles/.wallpapers/IwucZ6x.png b/.wallpapers/galaxy_humanoid.jpg similarity index 100% rename from dotfiles/.wallpapers/IwucZ6x.png rename to .wallpapers/galaxy_humanoid.jpg diff --git a/dotfiles/.wallpapers/pnt.png b/.wallpapers/japan_arcade.png similarity index 100% rename from dotfiles/.wallpapers/pnt.png rename to .wallpapers/japan_arcade.png diff --git a/dotfiles/.wallpapers/1524886878826.jpg b/.wallpapers/japan_bike.jpg similarity index 100% rename from dotfiles/.wallpapers/1524886878826.jpg rename to .wallpapers/japan_bike.jpg diff --git a/dotfiles/.wallpapers/1534670157528.jpg b/.wallpapers/japan_fog_building.jpg similarity index 100% rename from dotfiles/.wallpapers/1534670157528.jpg rename to .wallpapers/japan_fog_building.jpg diff --git a/.wallpapers/japan_smile.jpg b/.wallpapers/japan_smile.jpg new file mode 100755 index 0000000..be12bc4 Binary files /dev/null and b/.wallpapers/japan_smile.jpg differ diff --git a/dotfiles/.wallpapers/lnftnh36f3611.png b/.wallpapers/japan_street_glitch.jpg similarity index 100% rename from dotfiles/.wallpapers/lnftnh36f3611.png rename to .wallpapers/japan_street_glitch.jpg diff --git a/dotfiles/.wallpapers/1523616998292.jpg b/.wallpapers/japan_street_gumball.jpg similarity index 100% rename from dotfiles/.wallpapers/1523616998292.jpg rename to .wallpapers/japan_street_gumball.jpg diff --git a/dotfiles/.wallpapers/1516483994513.jpg b/.wallpapers/japan_torii.png similarity index 100% rename from dotfiles/.wallpapers/1516483994513.jpg rename to .wallpapers/japan_torii.png diff --git a/dotfiles/.wallpapers/mnt.png b/.wallpapers/mountain_clouds.png similarity index 100% rename from dotfiles/.wallpapers/mnt.png rename to .wallpapers/mountain_clouds.png diff --git a/dotfiles/.wallpapers/1517866302374.jpg b/.wallpapers/mountain_galaxy.jpg similarity index 100% rename from dotfiles/.wallpapers/1517866302374.jpg rename to .wallpapers/mountain_galaxy.jpg diff --git a/.wallpapers/mountains.jpg b/.wallpapers/mountains.jpg deleted file mode 100755 index da4037e..0000000 Binary files a/.wallpapers/mountains.jpg and /dev/null differ diff --git a/dotfiles/.wallpapers/1517868623351.jpg b/.wallpapers/nature_river_sun.jpg similarity index 100% rename from dotfiles/.wallpapers/1517868623351.jpg rename to .wallpapers/nature_river_sun.jpg diff --git a/dotfiles/.wallpapers/1516880635864.png b/.wallpapers/vapor_dragon.jpg similarity index 100% rename from dotfiles/.wallpapers/1516880635864.png rename to .wallpapers/vapor_dragon.jpg diff --git a/dotfiles/.wallpapers/1516222899450.jpg b/.wallpapers/vapor_post.jpg similarity index 100% rename from dotfiles/.wallpapers/1516222899450.jpg rename to .wallpapers/vapor_post.jpg diff --git a/dotfiles/.wallpapers/1516159335711.jpg b/.wallpapers/vapor_room.jpg similarity index 100% rename from dotfiles/.wallpapers/1516159335711.jpg rename to .wallpapers/vapor_room.jpg diff --git a/.wallpapers/vapor_sky.jpg b/.wallpapers/vapor_sky.jpg new file mode 100755 index 0000000..8a66fcb Binary files /dev/null and b/.wallpapers/vapor_sky.jpg differ diff --git a/dotfiles/.wallpapers/1518551953878.jpg b/.wallpapers/winter_forrest_lake.jpg similarity index 100% rename from dotfiles/.wallpapers/1518551953878.jpg rename to .wallpapers/winter_forrest_lake.jpg diff --git a/dotfiles/.Xresources b/dotfiles/.Xresources deleted file mode 100755 index ffe83b6..0000000 --- a/dotfiles/.Xresources +++ /dev/null @@ -1,10 +0,0 @@ -urxvt.scrollBar: false -urxvt.letterSpace: -1 -urxvt.depth: 32 -!urxvt.background: rgba:2800/2A00/3600/F000 - -urxvt.font: xft:DejaVu Sans Mono:size=9 -urxvt.italicFont: xft:DejaVu Sans Mono:size=9:italic -urxvt.boldFont: xft:DejaVu Sans Mono:size=9:bold -urxvt.boldItalicFont: xft:DejaVu Sans Mono:size=9:bold:italic - diff --git a/dotfiles/.bash_logout b/dotfiles/.bash_logout deleted file mode 100755 index efa6e54..0000000 --- a/dotfiles/.bash_logout +++ /dev/null @@ -1,2 +0,0 @@ -clear - diff --git a/dotfiles/.bash_profile b/dotfiles/.bash_profile deleted file mode 100755 index fbf2f40..0000000 --- a/dotfiles/.bash_profile +++ /dev/null @@ -1,2 +0,0 @@ -[[ -f ~/.bashrc ]] && . ~/.bashrc - diff --git a/dotfiles/.bashrc b/dotfiles/.bashrc deleted file mode 100755 index e1a7fb8..0000000 --- a/dotfiles/.bashrc +++ /dev/null @@ -1,29 +0,0 @@ -[[ $- != *i* ]] && return - -set -o vi - -unset HISTFILE -export LESSHISTFILE=- -export PYTHONSTARTUP=~/.pythonrc -export XAUTHORITY=~/.cache/.Xauthority - -# Import colorscheme from "wal" asynchronously -# & # Run the process in the background. -# ( ) # Hide shell job control messages. -(cat ~/.cache/wal/sequences &) - -# Alternative (blocks terminal for 0-3ms) -cat ~/.cache/wal/sequences - -alias ls="ls --color=auto" -alias diff="diff --color=auto" -alias grep="grep --color=auto" -alias graphs="ssh net@192.168.1.137" - -alias installed_packages="comm -23 <(pacman -Qeq | sort) <(pacman -Qgq base base-devel | sort)" -alias unused_packages="pacman -Qtdq" - -alias piavpn="sh /opt/pia/ruby/ruby.sh /opt/pia/pia_manager/run.rb /dev/null&" - -PS1="\u@\h:\w \$ " - diff --git a/dotfiles/.config/compton.conf b/dotfiles/.config/compton.conf deleted file mode 100755 index aca14d9..0000000 --- a/dotfiles/.config/compton.conf +++ /dev/null @@ -1,2 +0,0 @@ -shadow = false; -fading = false; diff --git a/dotfiles/.config/htop/htoprc b/dotfiles/.config/htop/htoprc deleted file mode 100755 index ef911da..0000000 --- a/dotfiles/.config/htop/htoprc +++ /dev/null @@ -1,26 +0,0 @@ -# Beware! This file is rewritten by htop when settings are changed in the interface. -# The parser is also very primitive, and not human-friendly. -fields=0 46 39 109 110 1 -sort_key=46 -sort_direction=1 -hide_threads=1 -hide_kernel_threads=1 -hide_userland_threads=1 -shadow_other_users=0 -show_thread_names=0 -show_program_path=1 -highlight_base_name=1 -highlight_megabytes=1 -highlight_threads=1 -tree_view=0 -header_margin=1 -detailed_cpu_time=0 -cpu_count_from_zero=1 -update_process_names=0 -account_guest_in_cpu_meter=0 -color_scheme=0 -delay=15 -left_meters=Hostname CPU Memory -left_meter_modes=2 1 1 -right_meters=Uptime Tasks Swap -right_meter_modes=2 2 2 diff --git a/dotfiles/.config/i3/config b/dotfiles/.config/i3/config deleted file mode 100755 index 27615c4..0000000 --- a/dotfiles/.config/i3/config +++ /dev/null @@ -1,117 +0,0 @@ -set $mod Mod4 -font pango:DejaVu Sans Mono 9 - -exec_always setxkbmap ee -exec_always "xrandr --output HDMI1 --mode 2560x1440 --rate 59.95 --output HDMI2 --mode 1920x1080 --rate 59.93 --left-of HDMI1" - -exec_always ~/.scripts/daemons.sh - -# NOTE: The '#f0f0f0' in the lines below is the color i3 will use if -# it fails to get colors from Xresources. -set_from_resource $fg color7 #f0f0f0 -set_from_resource $bg color2 #f0f0f0 - -#class border backgr. text indicator child_border -client.focused $bg $bg $fg $bg $bg -client.focused_inactive $bg $bg $fg $bg $bg -client.unfocused $bg $bg $fg $bg $bg -client.urgent $bg $bg $fg $bg $bg -client.placeholder $bg $bg $fg $bg $bg - -client.background $bg - -exec_always xrdb ~/.Xresources -exec_always ~/.scripts/wal.sh - -gaps inner 10 -default_border pixel 1 - -bindsym $mod+Ctrl+r restart -bindsym $mod+Ctrl+q kill - -bindsym $mod+s exec ~/.scripts/dmen_run.sh -bindsym $mod+Return exec urxvt - -bindsym $mod+F1 exec ~/.scripts/audio.sh toggle_mute -bindsym $mod+F2 exec ~/.scripts/audio.sh lower -bindsym $mod+F3 exec ~/.scripts/audio.sh raise - -bindsym $mod+F4 exec ~/.scripts/wal.sh - -bindsym $mod+F5 exec ~/.scripts/music.sh toggle -bindsym $mod+Shift+F2 exec ~/.scripts/music.sh lower -bindsym $mod+Shift+F3 exec ~/.scripts/music.sh raise -bindsym $mod+F7 exec ~/.scripts/music.sh prev -bindsym $mod+F8 exec ~/.scripts/music.sh next - -bindsym $mod+F9 exec ~/.scripts/mount.sh -bindsym $mod+F10 exec ~/.scripts/umount.sh - -bindsym $mod+h focus left -bindsym $mod+j focus down -bindsym $mod+k focus up -bindsym $mod+l focus right - -bindsym $mod+Control+h move left -bindsym $mod+Control+j move down -bindsym $mod+Control+k move up -bindsym $mod+Control+l move right - -bindsym $mod+Control+y resize shrink width 10 px or 1 ppt -bindsym $mod+Control+u resize grow height 10 px or 1 ppt -bindsym $mod+Control+i resize shrink height 10 px or 1 ppt -bindsym $mod+Control+o resize grow width 10 px or 1 ppt - -bindsym $mod+Ctrl+w split h -bindsym $mod+Ctrl+s split v - -bindsym $mod+Ctrl+f fullscreen toggle -bindsym $mod+Ctrl+space floating toggle - -bindsym $mod+1 workspace 1 -bindsym $mod+2 workspace 2 -bindsym $mod+3 workspace 3 -bindsym $mod+4 workspace 4 -bindsym $mod+5 workspace 5 -bindsym $mod+6 workspace 6 - -bindsym $mod+Ctrl+1 move container to workspace 1 -bindsym $mod+Ctrl+2 move container to workspace 2 -bindsym $mod+Ctrl+3 move container to workspace 3 -bindsym $mod+Ctrl+4 move container to workspace 4 -bindsym $mod+Ctrl+5 move container to workspace 5 -bindsym $mod+Ctrl+6 move container to workspace 6 - -set_from_resource $darkblack color0 -set_from_resource $black color8 -set_from_resource $darkred color1 -set_from_resource $red color9 -set_from_resource $darkgreen color2 -set_from_resource $green color10 -set_from_resource $darkyellow color3 -set_from_resource $yellow color11 -set_from_resource $darkblue color4 -set_from_resource $blue color12 -set_from_resource $darkmagenta color5 -set_from_resource $magenta color13 -set_from_resource $darkcyan color6 -set_from_resource $cyan color14 -set_from_resource $darkwhite color7 -set_from_resource $white color15 - -bar { - font pango:DejaVu Sans Mono 9 - colors { - statusline $fg - separator $darkblue - - focused_workspace $darkblack $darkblack $fg - active_workspace $darkblack $darkblack $fg - inactive_workspace $darkblack $darkblack $black - urgent_workspace $darkblue $bg $fg - } - - position top - status_command i3blocks -} - diff --git a/dotfiles/.config/i3blocks/config b/dotfiles/.config/i3blocks/config deleted file mode 100755 index e41f20a..0000000 --- a/dotfiles/.config/i3blocks/config +++ /dev/null @@ -1,14 +0,0 @@ -[mpd] -command=echo "$(mpc current)" $(mpc volume | awk '{match($2,"[0-9]*",a)}END{print a[0]"%"}') -interval=5 -signal=2 - -[volume] -command=echo "$(pamixer --get-volume)%" -interval=once -signal=1 - -[time] -command=echo "$(date '+%d.%m %H:%M')" -interval=1 - diff --git a/dotfiles/.config/mpd/database b/dotfiles/.config/mpd/database deleted file mode 100644 index d334197..0000000 Binary files a/dotfiles/.config/mpd/database and /dev/null differ diff --git a/dotfiles/.config/mpd/mpd.conf b/dotfiles/.config/mpd/mpd.conf deleted file mode 100644 index fa0cc3f..0000000 --- a/dotfiles/.config/mpd/mpd.conf +++ /dev/null @@ -1,14 +0,0 @@ -music_directory "~/Music" -auto_update "yes" - -playlist_directory "~/.config/mpd/playlists" -sticker_file "~/.config/mpd/sticker.sql" -db_file "~/.config/mpd/database" -pid_file "~/.config/mpd/pid" -log_file "syslog" - -audio_output { - type "pulse" - name "pulse audio" -} - diff --git a/dotfiles/.config/mpd/pid b/dotfiles/.config/mpd/pid deleted file mode 100644 index 8766d8a..0000000 --- a/dotfiles/.config/mpd/pid +++ /dev/null @@ -1 +0,0 @@ -732 diff --git a/dotfiles/.config/mpd/sticker.sql b/dotfiles/.config/mpd/sticker.sql deleted file mode 100644 index fdf3cd1..0000000 Binary files a/dotfiles/.config/mpd/sticker.sql and /dev/null differ diff --git a/dotfiles/.config/mpv/mpv.conf b/dotfiles/.config/mpv/mpv.conf deleted file mode 100644 index 9611910..0000000 --- a/dotfiles/.config/mpv/mpv.conf +++ /dev/null @@ -1,14 +0,0 @@ -no-input-default-bindings - -#profile=gpu-hq -deband=no - -#scale=ewa_lanczossharp -#cscale=ewa_lanczossharp - -alang=jpn,jp -slang=eng,en - -#video-sync=display-resample -#interpolation - diff --git a/dotfiles/.config/ncmpcpp/bindings b/dotfiles/.config/ncmpcpp/bindings deleted file mode 100755 index f1494b3..0000000 --- a/dotfiles/.config/ncmpcpp/bindings +++ /dev/null @@ -1,11 +0,0 @@ -def_key "j" - scroll_down - -def_key "k" - scroll_up - -def_key "h" - previous_column - -def_key "l" - next_column diff --git a/dotfiles/.config/ncmpcpp/config b/dotfiles/.config/ncmpcpp/config deleted file mode 100755 index 9ac8d81..0000000 --- a/dotfiles/.config/ncmpcpp/config +++ /dev/null @@ -1,11 +0,0 @@ -mouse_support = no - -user_interface = alternative -header_visibility = no - -playlist_display_mode = columns -browser_display_mode = columns -search_engine_display_mode = columns -playlist_editor_display_mode = columns - -progressbar_look = -| diff --git a/dotfiles/.config/neofetch/config.conf b/dotfiles/.config/neofetch/config.conf deleted file mode 100644 index 035f6c4..0000000 --- a/dotfiles/.config/neofetch/config.conf +++ /dev/null @@ -1,719 +0,0 @@ -# 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 "Host" model - info "Kernel" kernel - info "Uptime" uptime - info "Packages" packages - info "Terminal" term - info "CPU" cpu - info "GPU" gpu - info "Memory" memory - - # info "GPU Driver" gpu_driver # Linux/macOS only - # info "Disk" disk - # info "Battery" battery - # info "Font" font - # info "Song" song - # info "Local IP" local_ip - # info "Public IP" public_ip - # info "Users" users - # 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="on" - - -# 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" - - -# Packages - - -# Show/Hide Package Manager names. -# -# Default: 'tiny' -# Values: 'on', 'tiny' 'off' -# Flag: --package_managers -# -# Example: -# on: '998 (pacman), 8 (flatpak), 4 (snap)' -# tiny: '908 (pacman, flatpak, snap)' -# off: '908' -package_managers="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 - - -# Manually specify a music player. -# -# Default: 'auto' -# Values: 'auto', 'player-name' -# Flag: --music_player -# -# Available values for 'player-name': -# -# amarok -# audacious -# banshee -# bluemindo -# clementine -# cmus -# deadbeef -# deepin-music -# dragon -# elisa -# exaile -# gnome-music -# gmusicbrowser -# Google Play -# guayadeque -# iTunes -# juk -# lollypop -# mocp -# mopidy -# mpd -# pogo -# pragha -# qmmp -# quodlibet -# rhythmbox -# sayonara -# smplayer -# spotify -# Spotify -# tomahawk -# vlc -# xmms2d -# yarock -music_player="auto" - -# Format to display song information. -# -# Default: '%artist% - %album% - %title%' -# Values: '%artist%', '%album%', '%title%' -# Flag: --song_format -# -# Example: -# default: 'Song: Jet - Get Born - Sgt Major' -song_format="%artist% - %album% - %title%" - -# Print the Artist, Album and Title on separate lines -# -# Default: 'off' -# Values: 'on', 'off' -# Flag: --song_shorthand -# -# Example: -# on: 'Artist: The Fratellis' -# 'Album: Costello Music' -# 'Song: Chelsea Dagger' -# -# off: 'Song: The Fratellis - Costello Music - Chelsea Dagger' -song_shorthand="off" - -# 'mpc' arguments (specify a host, password etc). -# -# Default: '' -# Example: mpc_args=(-h HOST -P PASSWORD) -mpc_args=() - - -# 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', 'jp2a', 'iterm2', 'off', 'termpix', 'pixterm', '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" - -# Gap 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= - - -# 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" diff --git a/dotfiles/.config/ranger/rc.conf b/dotfiles/.config/ranger/rc.conf deleted file mode 100644 index 4946ea3..0000000 --- a/dotfiles/.config/ranger/rc.conf +++ /dev/null @@ -1,5 +0,0 @@ -#set show_hidden true -set preview_images true -set use_preview_script true -set preview_script=~/.config/ranger/scope.sh - diff --git a/dotfiles/.config/ranger/scope.sh b/dotfiles/.config/ranger/scope.sh deleted file mode 100755 index 52c7ffb..0000000 --- a/dotfiles/.config/ranger/scope.sh +++ /dev/null @@ -1,179 +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/dotfiles/.gtkrc-2.0 b/dotfiles/.gtkrc-2.0 deleted file mode 100644 index b34eed6..0000000 --- a/dotfiles/.gtkrc-2.0 +++ /dev/null @@ -1,19 +0,0 @@ -# DO NOT EDIT! This file will be overwritten by LXAppearance. -# Any customization should be done in ~/.gtkrc-2.0.mine instead. - -include "/home/josh/.gtkrc-2.0.mine" -gtk-theme-name="Arc-Dark" -gtk-icon-theme-name="Papirus-Dark" -gtk-font-name="DejaVu Sans 9" -gtk-cursor-theme-name="Adwaita" -gtk-cursor-theme-size=0 -gtk-toolbar-style=GTK_TOOLBAR_BOTH_HORIZ -gtk-toolbar-icon-size=GTK_ICON_SIZE_MENU -gtk-button-images=1 -gtk-menu-images=1 -gtk-enable-event-sounds=0 -gtk-enable-input-feedback-sounds=0 -gtk-xft-antialias=1 -gtk-xft-hinting=1 -gtk-xft-hintstyle="hintfull" - diff --git a/dotfiles/.pythonrc b/dotfiles/.pythonrc deleted file mode 100755 index 6f8b5e1..0000000 --- a/dotfiles/.pythonrc +++ /dev/null @@ -1,3 +0,0 @@ -import readline -readline.write_history_file = lambda *args: None - diff --git a/dotfiles/.scripts/audio.sh b/dotfiles/.scripts/audio.sh deleted file mode 100755 index 26b39fe..0000000 --- a/dotfiles/.scripts/audio.sh +++ /dev/null @@ -1,27 +0,0 @@ -#!/bin/bash - -current_volume=$(pamixer --get-volume) - -case $1 in -"raise") - (( current_volume += 5 )) - [[ current_volume -gt 100 ]] && current_volume=100 - - pamixer --set-volume $current_volume - notify-send -t 250 "VOL: $current_volume" - pkill -RTMIN+1 i3blocks -;; -"lower") - (( current_volume -= 5 )) - [[ current_volume -lt 0 ]] && current_volume=0 - - pamixer --set-volume $current_volume - notify-send -t 250 "VOL: $current_volume" - pkill -RTMIN+1 i3blocks -;; -"toggle_mute") - pamixer --toggle-mute - notify-send -t 300 "MUTE: $(pamixer --get-mute)" -;; -esac - diff --git a/dotfiles/.scripts/daemons.sh b/dotfiles/.scripts/daemons.sh deleted file mode 100755 index 4055cd9..0000000 --- a/dotfiles/.scripts/daemons.sh +++ /dev/null @@ -1,8 +0,0 @@ -#!/bin/bash - -[[ ! $(pidof compton) ]] && compton & -[[ ! $(pidof unclutter) ]] && unclutter & -[[ ! $(pidof mpd) ]] && mpd & -[[ ! $(pidof transmission-daemon) ]] && transmission-daemon & -[[ ! $(pidof dunst) ]] && dunst & - diff --git a/dotfiles/.scripts/mount.sh b/dotfiles/.scripts/mount.sh deleted file mode 100755 index d751d8d..0000000 --- a/dotfiles/.scripts/mount.sh +++ /dev/null @@ -1,23 +0,0 @@ -#!/bin/sh -# Gives a dmenu prompt to mount unmounted drives. -# If they're in /etc/fstab, they'll be mounted automatically. -# Otherwise, you'll be prompted to give a mountpoint from already existsing directories. -# If you input a novel directory, it will prompt you to create that directory. -COLS="name,type,size,mountpoint" - -drives="$(lsblk -rpo "$COLS" | awk '$2=="part"&&$4==""{printf "%s (%s)\n",$1,$3}')" -[ -z "$drives" ] && exit 1 -chosen="$(echo "$drives" | ~/.scripts/dmen.sh -i -p "Mount which drive?" | awk '{print $1}')" -[ -z "$chosen" ] && exit 1 -sudo -A mount "$chosen" && exit 0 -# You may want to change the line below for more suggestions for mounting. -# I.e. you can increase the depth of the search, or add directories. -# This will increase the load time briefly though. -mp="$(find /mnt /media /mount /home -type d -maxdepth 5 2>/dev/null | ~/.scripts/dmen.sh -i -p "Type in mount point.")" -[ "$mp" = "" ] && exit 1 -if [ ! -d "$mp" ]; then - mkdiryn=$(printf "No\\nYes" | ~/.scripts/dmen.sh -i -p "$mp does not exist. Create it?") - [ "$mkdiryn" = "Yes" ] && sudo -A mkdir -p "$mp" -fi -sudo -A mount "$chosen" "$mp" && pgrep -x dunst && notify-send "$chosen mounted to $mp." - diff --git a/dotfiles/.scripts/music.sh b/dotfiles/.scripts/music.sh deleted file mode 100755 index 2bbd073..0000000 --- a/dotfiles/.scripts/music.sh +++ /dev/null @@ -1,26 +0,0 @@ -#!/bin/bash - -case $1 in -"toggle") - mpc toggle -;; -"prev") - mpc prev & - pkill -RTMIN+2 i3blocks -;; -"next") - mpc next & - pkill -RTMIN+2 i3blocks -;; -"lower") - mpc volume -5 - notify-send -t 250 "VOL: $(mpc volume | awk '{match($2,"[0-9]*",a)}END{print a[0]}')" - pkill -RTMIN+2 i3blocks -;; -"raise") - mpc volume +5 - notify-send -t 250 "VOL: $(mpc volume | awk '{match($2,"[0-9]*",a)}END{print a[0]}')" - pkill -RTMIN+2 i3blocks -;; -esac - diff --git a/dotfiles/.scripts/wal.sh b/dotfiles/.scripts/wal.sh deleted file mode 100755 index 70ccb83..0000000 --- a/dotfiles/.scripts/wal.sh +++ /dev/null @@ -1,5 +0,0 @@ -#!/bin/bash - -files=(~/.wallpapers/*) -wal -i ${files[RANDOM % ${#files[@]}]} -a 80 - diff --git a/dotfiles/.vimrc b/dotfiles/.vimrc deleted file mode 100755 index e9b4df2..0000000 --- a/dotfiles/.vimrc +++ /dev/null @@ -1,7 +0,0 @@ -syntax on -set number -set tabstop=4 -set autoindent -set viminfo= -let g:netrw_dirhistmax = 0 - diff --git a/dotfiles/.wallpapers/1516159288959.jpg b/dotfiles/.wallpapers/1516159288959.jpg deleted file mode 100755 index 96b7f6a..0000000 Binary files a/dotfiles/.wallpapers/1516159288959.jpg and /dev/null differ diff --git a/dotfiles/.wallpapers/1522357017213.jpg b/dotfiles/.wallpapers/1522357017213.jpg deleted file mode 100755 index 0f76fe0..0000000 Binary files a/dotfiles/.wallpapers/1522357017213.jpg and /dev/null differ diff --git a/dotfiles/.wallpapers/t0hf8g63uz511.jpg b/dotfiles/.wallpapers/t0hf8g63uz511.jpg deleted file mode 100755 index d298b3d..0000000 Binary files a/dotfiles/.wallpapers/t0hf8g63uz511.jpg and /dev/null differ diff --git a/dotfiles/.xinitrc b/dotfiles/.xinitrc deleted file mode 100755 index f82a046..0000000 --- a/dotfiles/.xinitrc +++ /dev/null @@ -1,2 +0,0 @@ -exec i3 -