diff options
-rw-r--r-- | TMV/.bashrc | 23 | ||||
-rw-r--r-- | TMV/.config/aliasrc | 27 | ||||
-rw-r--r-- | TMV/.config/directories | 10 | ||||
-rw-r--r-- | TMV/.config/i3/config | 217 | ||||
-rw-r--r-- | TMV/.config/i3/config.bak | 215 | ||||
-rw-r--r-- | TMV/.config/shortcutrc | 24 | ||||
-rw-r--r-- | TMV/.profile | 44 | ||||
-rw-r--r-- | TMV/.vimrc | 103 | ||||
-rw-r--r-- | TMV/Pictures/icons/firefox.png | bin | 0 -> 128934 bytes | |||
-rw-r--r-- | TMV/Pictures/icons/tor.png | bin | 0 -> 44535 bytes | |||
-rw-r--r-- | TMV/Pictures/retrowave-pyramid.png | bin | 0 -> 371063 bytes | |||
-rw-r--r-- | TMV/i3status.conf | 72 |
12 files changed, 735 insertions, 0 deletions
diff --git a/TMV/.bashrc b/TMV/.bashrc new file mode 100644 index 0000000..1dad37a --- /dev/null +++ b/TMV/.bashrc @@ -0,0 +1,23 @@ +stty -ixon # Disable ctrl-s and ctrl-q. +shopt -s autocd #Allows you to cd into directory merely by typing the directory name. +HISTSIZE= HISTFILESIZE= # Infinite history. + +export PS1="\[$(tput bold)\]\[$(tput setaf 1)\][\[$(tput setaf 0)\]\t \[$(tput setaf 3)\]\u\[$(tput setaf 2)\]@\[$(tput setaf 4)\]\h \[$(tput setaf 5)\]\W\[$(tput setaf 1)\]]\[$(tput setaf 7)\]\\$ \[$(tput sgr0)\]" + +[ -f "$HOME/.config/shortcutrc" ] && source "$HOME/.config/shortcutrc" # Load shortcut aliases +[ -f "$HOME/.config/aliasrc" ] && source "$HOME/.config/aliasrc" + +#PERSONAL EDITS +alias cat='lolcat' +alias bat_pow='sudo upower -i /org/freedesktop/UPower/devices/battery_BAT0' +alias la='ls -A' +alias l='ls' +alias ll='ls -l' +alias display='sxiv' +alias xbacklight='sudo xbacklight' +export WINDOWS='/mnt/windows' +export PATH=$PATH:/home/mas/py/:/home/linuxbrew/.linuxbrew/bin/ +alias nox='sudo user_nox.py' +alias incendio='user_incendio.py' +alias imperio='sudo user_imperio.py' +TERMINAL='xterm' diff --git a/TMV/.config/aliasrc b/TMV/.config/aliasrc new file mode 100644 index 0000000..52e19ba --- /dev/null +++ b/TMV/.config/aliasrc @@ -0,0 +1,27 @@ +#!/bin/sh +alias ka="killall" \ + mkd="mkdir -pv" \ + mpv="mpv --input-ipc-server=/tmp/mpvsoc$(date +%s)" \ + calcurse="calcurse -D ~/.config/calcurse" \ + magit="nvim -c MagitOnly" \ + xi="sudo xbps-install" \ + xr="sudo xbps-remove" \ + xq="xbps-query" \ + f="$FILE" \ + g="git" \ + trem="transmission-remote" \ + e="$EDITOR" \ + v="$EDITOR" \ + x="sxiv -ft *" \ + sdn="sudo shutdown -h now" \ + gua="git remote | xargs -L1 git push --all" \ + ls="ls -hN --color=auto --group-directories-first" \ + grep="grep --color=auto" \ + diff="diff --color=auto" \ + yt="youtube-dl --add-metadata -i -o '%(upload_date)s-%(title)s.%(ext)s'" \ + yta="yt -x -f bestaudio/best" \ + YT="youtube-viewer" \ + ref="shortcuts >/dev/null; source ~/.config/shortcutrc" \ + ffmpeg="ffmpeg -hide_banner" + +command -v nvim >/dev/null && alias vim="nvim" vimdiff="nvim -d" # Use neovim for vim if present. diff --git a/TMV/.config/directories b/TMV/.config/directories new file mode 100644 index 0000000..24bdd21 --- /dev/null +++ b/TMV/.config/directories @@ -0,0 +1,10 @@ +# You can add comments to these files with # +h ~/ +d ~/Documents +D ~/Downloads +m ~/Music +pp ~/Pictures +vv ~/Videos +cf ~/.config +sc ~/.local/bin +mn /mnt diff --git a/TMV/.config/i3/config b/TMV/.config/i3/config new file mode 100644 index 0000000..3c99fce --- /dev/null +++ b/TMV/.config/i3/config @@ -0,0 +1,217 @@ +# This file has been auto-generated by i3-config-wizard(1). +# It will not be overwritten, so edit it as you like. +# +# Should you change your keyboard layout some time, delete +# this file and re-run i3-config-wizard(1). +# + +# i3 config file (v4) +# +# Please see https://i3wm.org/docs/userguide.html for a complete reference! + +set $mod Mod4 + +# Font for window titles. Will also be used by the bar unless a different font +# is used in the bar {} block below. +font pango:monospace 8 + +# 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 + +# The combination of xss-lock, nm-applet and pactl is a popular choice, so +# they are included here as an example. Modify as you see fit. + +# xss-lock grabs a logind suspend inhibit lock and will use i3lock to lock the +# screen before suspend. Use loginctl lock-session to lock your screen. +exec --no-startup-id xss-lock --transfer-sleep-lock -- i3lock --nofork + +# NetworkManager is the most popular way to manage wireless networks on Linux, +# and nm-applet is a desktop environment-independent system tray GUI for it. +exec --no-startup-id nm-applet + +# Use pactl to adjust volume in PulseAudio. +set $refresh_i3status killall -SIGUSR1 i3status +bindsym XF86AudioRaiseVolume exec --no-startup-id pactl set-sink-volume @DEFAULT_SINK@ +5% && $refresh_i3status +bindsym XF86AudioLowerVolume exec --no-startup-id pactl set-sink-volume @DEFAULT_SINK@ -5% && $refresh_i3status +bindsym XF86AudioMute exec --no-startup-id pactl set-sink-mute @DEFAULT_SINK@ toggle && $refresh_i3status +bindsym XF86AudioMicMute exec --no-startup-id pactl set-source-mute @DEFAULT_SOURCE@ toggle && $refresh_i3status + +# Use Mouse+$mod to drag floating windows to their wanted position +floating_modifier $mod + +# start a terminal +bindsym $mod+Return exec xterm + +# kill focused window +bindsym $mod+Shift+q kill + +# start dmenu (a program launcher) +bindsym $mod+d 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 + +# change focus +bindsym $mod+j focus left +bindsym $mod+k focus down +bindsym $mod+l focus up +bindsym $mod+semicolon focus right + +# alternatively, you can use the cursor keys: +bindsym $mod+Left focus left +bindsym $mod+Down focus down +bindsym $mod+Up focus up +bindsym $mod+Right focus right + +# move focused window +bindsym $mod+Shift+j move left +bindsym $mod+Shift+k move down +bindsym $mod+Shift+l move up +bindsym $mod+Shift+semicolon 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+h split h + +# split in vertical orientation +bindsym $mod+v split v + +# 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+w 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 + +# Define names for default workspaces for which we configure key bindings later on. +# We use variables to avoid repeating the names in multiple places. +set $ws1 "1" +set $ws2 "2" +set $ws3 "3" +set $ws4 "4" +set $ws5 "5" +set $ws6 "6" +set $ws7 "7" +set $ws8 "8" +set $ws9 "9" +set $ws10 "10" + +# switch to workspace +bindsym $mod+1 workspace number $ws1 +bindsym $mod+2 workspace number $ws2 +bindsym $mod+3 workspace number $ws3 +bindsym $mod+4 workspace number $ws4 +bindsym $mod+5 workspace number $ws5 +bindsym $mod+6 workspace number $ws6 +bindsym $mod+7 workspace number $ws7 +bindsym $mod+8 workspace number $ws8 +bindsym $mod+9 workspace number $ws9 +bindsym $mod+0 workspace number $ws10 + +# move focused container to workspace +bindsym $mod+Shift+1 move container to workspace number $ws1 +bindsym $mod+Shift+2 move container to workspace number $ws2 +bindsym $mod+Shift+3 move container to workspace number $ws3 +bindsym $mod+Shift+4 move container to workspace number $ws4 +bindsym $mod+Shift+5 move container to workspace number $ws5 +bindsym $mod+Shift+6 move container to workspace number $ws6 +bindsym $mod+Shift+7 move container to workspace number $ws7 +bindsym $mod+Shift+8 move container to workspace number $ws8 +bindsym $mod+Shift+9 move container to workspace number $ws9 +bindsym $mod+Shift+0 move container to workspace number $ws10 + +# reload the configuration file +bindsym $mod+Shift+c reload +# restart i3 inplace (preserves your layout/session, can be used to upgrade i3) +bindsym $mod+Shift+r restart +# 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'" + +# resize window (you can also use the mouse for that) +mode "resize" { + # These bindings trigger as soon as you enter the resize mode + + # Pressing left will shrink the window’s width. + # Pressing right will grow the window’s width. + # Pressing up will shrink the window’s height. + # Pressing down will grow the window’s height. + bindsym j resize shrink width 10 px or 10 ppt + bindsym k resize grow height 10 px or 10 ppt + bindsym l resize shrink height 10 px or 10 ppt + bindsym semicolon resize grow width 10 px or 10 ppt + + # same bindings, but for the arrow keys + bindsym Left resize shrink width 10 px or 10 ppt + bindsym Down resize grow height 10 px or 10 ppt + bindsym Up resize shrink height 10 px or 10 ppt + bindsym Right resize grow width 10 px or 10 ppt + + # back to normal: Enter or Escape or $mod+r + bindsym Return mode "default" + bindsym Escape mode "default" + bindsym $mod+r mode "default" +} + +bindsym $mod+r mode "resize" + +# Start i3bar to display a workspace bar (plus the system information i3status +# finds out, if available) +bar { + colors { + background #2a2a3c + statusline #D52C70 + separator #ffffff + + focused_workspace #D52C70 #000000 #00ffff + active_workspace #20202D #20202D #D52C70 + inactive_workspace #814db3 #000000 #D52C70 + urgent_workspace #20202D #F54A94 #FFFFFF + binding_mode #20202D #F54A94 #FFFFFF + } + separator_symbol ":|:" + font pango: 11 + status_command i3status +} + +###PERSONAL EDITS### + +bindsym $mod+Shift+W exec notify-send -t 5000 -i /home/mas/Pictures/icons/firefox.png "Opening" "<span color='#ff6600' font='26px'><b>firefox</b></span>" ; exec firefox +bindsym $mod+Shift+X exec sudo poweroff +bindsym $mod+Shift+BackSpace exec sudo reboot +bindsym $mod+Shift+T exec notify-send -t 5000 -i /home/mas/Pictures/icons/tor.png "Opening" "<span color='#40ff00' font='26px'><b>tor</b></span>" ; exec tor + + +exec --no-startup-id feh --bg-scale /home/mas/Pictures/retrowave-pyramid.png + +# Sreen brightness controls +bindsym XF86MonBrightnessUp exec sudo xbacklight -inc 10 # increase screen brightness +bindsym XF86MonBrightnessDown exec sudo xbacklight -dec 10 # decrease screen brightness + +# class border backgr. text indicator child_border +client.focused #D52C70 #000000 #00ffff #F54A94 #814db3 +client.focused_inactive #814db3 #000000 #004d4d #0C1746 #3C3C54 +client.unfocused #814db3 #000000 #D52C70 #0C1746 #3C3C54 +client.urgent #F54A94 #20202D #FFFFFF #0C1746 #F54A94 +client.placeholder #20202D #20202D #FFFFFF #0C1746 #3C3C54 + +client.background #D52C70 diff --git a/TMV/.config/i3/config.bak b/TMV/.config/i3/config.bak new file mode 100644 index 0000000..c566eaf --- /dev/null +++ b/TMV/.config/i3/config.bak @@ -0,0 +1,215 @@ +# This file has been auto-generated by i3-config-wizard(1). +# It will not be overwritten, so edit it as you like. +# +# Should you change your keyboard layout some time, delete +# this file and re-run i3-config-wizard(1). +# + +# i3 config file (v4) +# +# Please see https://i3wm.org/docs/userguide.html for a complete reference! + +set $mod Mod4 + +# Font for window titles. Will also be used by the bar unless a different font +# is used in the bar {} block below. +font pango:monospace 8 + +# 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 + +# The combination of xss-lock, nm-applet and pactl is a popular choice, so +# they are included here as an example. Modify as you see fit. + +# xss-lock grabs a logind suspend inhibit lock and will use i3lock to lock the +# screen before suspend. Use loginctl lock-session to lock your screen. +exec --no-startup-id xss-lock --transfer-sleep-lock -- i3lock --nofork + +# NetworkManager is the most popular way to manage wireless networks on Linux, +# and nm-applet is a desktop environment-independent system tray GUI for it. +exec --no-startup-id nm-applet + +# Use pactl to adjust volume in PulseAudio. +set $refresh_i3status killall -SIGUSR1 i3status +bindsym XF86AudioRaiseVolume exec --no-startup-id pactl set-sink-volume @DEFAULT_SINK@ +10% && $refresh_i3status +bindsym XF86AudioLowerVolume exec --no-startup-id pactl set-sink-volume @DEFAULT_SINK@ -10% && $refresh_i3status +bindsym XF86AudioMute exec --no-startup-id pactl set-sink-mute @DEFAULT_SINK@ toggle && $refresh_i3status +bindsym XF86AudioMicMute exec --no-startup-id pactl set-source-mute @DEFAULT_SOURCE@ toggle && $refresh_i3status + +# Use Mouse+$mod to drag floating windows to their wanted position +floating_modifier $mod + +# start a terminal +bindsym $mod+Return exec xterm + +# kill focused window +bindsym $mod+Shift+q kill + +# start dmenu (a program launcher) +bindsym $mod+d 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 + +# change focus +bindsym $mod+j focus left +bindsym $mod+k focus down +bindsym $mod+l focus up +bindsym $mod+semicolon focus right + +# alternatively, you can use the cursor keys: +bindsym $mod+Left focus left +bindsym $mod+Down focus down +bindsym $mod+Up focus up +bindsym $mod+Right focus right + +# move focused window +bindsym $mod+Shift+j move left +bindsym $mod+Shift+k move down +bindsym $mod+Shift+l move up +bindsym $mod+Shift+semicolon 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+h split h + +# split in vertical orientation +bindsym $mod+v split v + +# 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+w 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 + +# Define names for default workspaces for which we configure key bindings later on. +# We use variables to avoid repeating the names in multiple places. +set $ws1 "1" +set $ws2 "2" +set $ws3 "3" +set $ws4 "4" +set $ws5 "5" +set $ws6 "6" +set $ws7 "7" +set $ws8 "8" +set $ws9 "9" +set $ws10 "10" + +# switch to workspace +bindsym $mod+1 workspace number $ws1 +bindsym $mod+2 workspace number $ws2 +bindsym $mod+3 workspace number $ws3 +bindsym $mod+4 workspace number $ws4 +bindsym $mod+5 workspace number $ws5 +bindsym $mod+6 workspace number $ws6 +bindsym $mod+7 workspace number $ws7 +bindsym $mod+8 workspace number $ws8 +bindsym $mod+9 workspace number $ws9 +bindsym $mod+0 workspace number $ws10 + +# move focused container to workspace +bindsym $mod+Shift+1 move container to workspace number $ws1 +bindsym $mod+Shift+2 move container to workspace number $ws2 +bindsym $mod+Shift+3 move container to workspace number $ws3 +bindsym $mod+Shift+4 move container to workspace number $ws4 +bindsym $mod+Shift+5 move container to workspace number $ws5 +bindsym $mod+Shift+6 move container to workspace number $ws6 +bindsym $mod+Shift+7 move container to workspace number $ws7 +bindsym $mod+Shift+8 move container to workspace number $ws8 +bindsym $mod+Shift+9 move container to workspace number $ws9 +bindsym $mod+Shift+0 move container to workspace number $ws10 + +# reload the configuration file +bindsym $mod+Shift+c reload +# restart i3 inplace (preserves your layout/session, can be used to upgrade i3) +bindsym $mod+Shift+r restart +# 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'" + +# resize window (you can also use the mouse for that) +mode "resize" { + # These bindings trigger as soon as you enter the resize mode + + # Pressing left will shrink the window’s width. + # Pressing right will grow the window’s width. + # Pressing up will shrink the window’s height. + # Pressing down will grow the window’s height. + bindsym j resize shrink width 10 px or 10 ppt + bindsym k resize grow height 10 px or 10 ppt + bindsym l resize shrink height 10 px or 10 ppt + bindsym semicolon resize grow width 10 px or 10 ppt + + # same bindings, but for the arrow keys + bindsym Left resize shrink width 10 px or 10 ppt + bindsym Down resize grow height 10 px or 10 ppt + bindsym Up resize shrink height 10 px or 10 ppt + bindsym Right resize grow width 10 px or 10 ppt + + # back to normal: Enter or Escape or $mod+r + bindsym Return mode "default" + bindsym Escape mode "default" + bindsym $mod+r mode "default" +} + +bindsym $mod+r mode "resize" + +# Start i3bar to display a workspace bar (plus the system information i3status +# finds out, if available) +bar { + colors { + background #000000 + statusline #FFFFFF + separator #FFFFFF + +# <colorclass> <border> <background> <text> + focused_workspace #ff00ff #000000 #ffffff + active_workspace #333333 #5f676a #ffffff + inactive_workspace #333333 #222222 #888888 + urgent_workspace #2f343a #900000 #ffffff + binding_mode #2f343a #900000 #ffffff + + } + status_command i3status +} + +###PERSONAL EDITS### + +bindsym $mod+Shift+W exec "notify-send Opening firefox" ; exec firefox +bindsym $mod+Shift+X exec sudo poweroff +bindsym $mod+Shift+BackSpace exec sudo reboot + +exec --no-startup-id feh --bg-scale /home/mas/Pictures/retrowave-pyramid.png + +# Sreen brightness controls +bindsym XF86MonBrightnessUp exec sudo xbacklight -inc 10 # increase screen brightness +bindsym XF86MonBrightnessDown exec sudo xbacklight -dec 10 # decrease screen brightness + +# class border backgr. text indicator child_border +client.focused #ff00ff #000000 #00ffff #2e9ef4 #285577 +client.focused_inactive #333333 #5f676a #ffffff #484e50 #5f676a +client.unfocused #333333 #222222 #888888 #292d2e #222222 +client.urgent #2f343a #900000 #ffffff #900000 #900000 +client.placeholder #000000 #0c0c0c #ffffff #000000 #0c0c0c + +client.background #fffff0 diff --git a/TMV/.config/shortcutrc b/TMV/.config/shortcutrc new file mode 100644 index 0000000..89ce5c4 --- /dev/null +++ b/TMV/.config/shortcutrc @@ -0,0 +1,24 @@ +# vim: filetype=sh +alias h="cd ~/ && ls -a" \ +d="cd ~/Documents && ls -a" \ +D="cd ~/Downloads && ls -a" \ +m="cd ~/Music && ls -a" \ +pp="cd ~/Pictures && ls -a" \ +vv="cd ~/Videos && ls -a" \ +cf="cd ~/.config && ls -a" \ +sc="cd ~/.local/bin && ls -a" \ +mn="cd /mnt && ls -a" \ +bf="$EDITOR ~/.config/files" \ +bd="$EDITOR ~/.config/directories" \ +bw="$EDITOR ~/.config/bookmarks" \ +cfb="$EDITOR ~/.bashrc" \ +cfa="$EDITOR ~/.config/aliasrc" \ +cfz="$EDITOR ~/.zshrc" \ +cfv="$EDITOR ~/.config/nvim/init.vim" \ +cfm="$EDITOR ~/.config/mutt/muttrc" \ +cfd="$EDITOR ~/.Xdefaults" \ +cfu="$EDITOR ~/.config/newsboat/urls" \ +cfn="$EDITOR ~/.config/newsboat/config" \ +cfmb="$EDITOR ~/.config/ncmpcpp/bindings" \ +cfmc="$EDITOR ~/.config/ncmpcpp/config" \ +cfk="$EDITOR ~/.config/sxhkd/sxhkdrc" \ diff --git a/TMV/.profile b/TMV/.profile new file mode 100644 index 0000000..aacc2e4 --- /dev/null +++ b/TMV/.profile @@ -0,0 +1,44 @@ +#!/bin/sh + +# Profile file. Runs on login. Environmental variables are set here. + +# Adds `~/.local/bin` to $PATH +export PATH="$PATH:$HOME/.local/bin/" + +# Default programs: +export EDITOR="nvim" +export TERMINAL="st" +export BROWSER="firefox" +export READER="zathura" +export FILE="lf" + +# ~/ Clean-up: +export NOTMUCH_CONFIG="$HOME/.config/notmuch-config" +export GTK2_RC_FILES="$HOME/.config/gtk-2.0/gtkrc-2.0" +export LESSHISTFILE="-" +export INPUTRC="$HOME/.config/inputrc" +export ZDOTDIR="$HOME/.config/zsh" +export PASSWORD_STORE_DIR="$HOME/.local/share/password-store" + +# Other program settings: +export SUDO_ASKPASS="$HOME/.local/bin/dmenupass" +export LESS=-R +export LESS_TERMCAP_mb="$(printf '%b' '[1;31m')" +export LESS_TERMCAP_md="$(printf '%b' '[1;36m')" +export LESS_TERMCAP_me="$(printf '%b' '[0m')" +export LESS_TERMCAP_so="$(printf '%b' '[01;44;33m')" +export LESS_TERMCAP_se="$(printf '%b' '[0m')" +export LESS_TERMCAP_us="$(printf '%b' '[1;32m')" +export LESS_TERMCAP_ue="$(printf '%b' '[0m')" + +[ ! -f ~/.config/shortcutrc ] && shortcuts >/dev/null 2>&1 + +echo "$0" | grep "bash$" >/dev/null && [ -f ~/.bashrc ] && source "$HOME/.bashrc" + +# Start graphical server if i3 not already running. +[ "$(tty)" = "/dev/tty1" ] && ! pgrep -x Xorg >/dev/null && exec startx + +# Switch escape and caps if tty: +sudo -n loadkeys ~/.local/share/larbs/ttymaps.kmap 2>/dev/null +eval $(/home/linuxbrew/.linuxbrew/bin/brew shellenv) +eval $(/home/linuxbrew/.linuxbrew/bin/brew shellenv) diff --git a/TMV/.vimrc b/TMV/.vimrc new file mode 100644 index 0000000..0e545b6 --- /dev/null +++ b/TMV/.vimrc @@ -0,0 +1,103 @@ +let mapleader ="," + +if ! filereadable(expand('~/.config/nvim/autoload/plug.vim')) + echo "Downloading junegunn/vim-plug to manage plugins..." + silent !mkdir -p ~/.config/nvim/autoload/ + silent !curl "https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim" > ~/.config/nvim/autoload/plug.vim + autocmd VimEnter * PlugInstall +endif + + +set bg=dark +set go=a +set mouse=a +set nohlsearch +set clipboard=unnamedplus + +" Some basics: + nnoremap c "_c + set nocompatible + filetype plugin on + syntax on + set encoding=utf-8 + set number relativenumber +" Enable autocompletion: + set wildmode=longest,list,full +" Disables automatic commenting on newline: + autocmd FileType * setlocal formatoptions-=c formatoptions-=r formatoptions-=o + +" Goyo plugin makes text more readable when writing prose: + map <leader>f :Goyo \| set bg=light \| set linebreak<CR> + +" Spell-check set to <leader>o, 'o' for 'orthography': + map <leader>o :setlocal spell! spelllang=en_us<CR> + +" Splits open at the bottom and right, which is non-retarded, unlike vim defaults. + set splitbelow splitright + +" Nerd tree + map <leader>n :NERDTreeToggle<CR> + autocmd bufenter * if (winnr("$") == 1 && exists("b:NERDTree") && b:NERDTree.isTabTree()) | q | endif + +" vimling: + nm <leader>d :call ToggleDeadKeys()<CR> + imap <leader>d <esc>:call ToggleDeadKeys()<CR>a + nm <leader>i :call ToggleIPA()<CR> + imap <leader>i <esc>:call ToggleIPA()<CR>a + nm <leader>q :call ToggleProse()<CR> + +" Shortcutting split navigation, saving a keypress: + map <C-h> <C-w>h + map <C-j> <C-w>j + map <C-k> <C-w>k + map <C-l> <C-w>l + +" Check file in shellcheck: + map <leader>s :!clear && shellcheck %<CR> + +" Open my bibliography file in split + map <leader>b :vsp<space>$BIB<CR> + map <leader>r :vsp<space>$REFER<CR> + +" Replace all is aliased to S. + nnoremap S :%s//g<Left><Left> + +" Compile document, be it groff/LaTeX/markdown/etc. + map <leader>c :w! \| !compiler <c-r>%<CR> + +" Open corresponding .pdf/.html or preview + map <leader>p :!opout <c-r>%<CR><CR> + +" Runs a script that cleans out tex build files whenever I close out of a .tex file. + autocmd VimLeave *.tex !texclear % + +" Ensure files are read as what I want: + let g:vimwiki_ext2syntax = {'.Rmd': 'markdown', '.rmd': 'markdown','.md': 'markdown', '.markdown': 'markdown', '.mdown': 'markdown'} + map <leader>v :VimwikiIndex + let g:vimwiki_list = [{'path': '~/repos/writings', 'syntax': 'markdown', 'ext': '.md'}] + autocmd BufRead,BufNewFile /tmp/calcurse*,~/.calcurse/notes/* set filetype=markdown + autocmd BufRead,BufNewFile *.ms,*.me,*.mom,*.man set filetype=groff + autocmd BufRead,BufNewFile *.tex set filetype=tex + +" Copy selected text to system clipboard (requires gvim/nvim/vim-x11 installed): + vnoremap <C-c> "+y + map <C-p> "+P + +" Enable Goyo by default for mutt writting + autocmd BufRead,BufNewFile /tmp/neomutt* let g:goyo_width=80 + autocmd BufRead,BufNewFile /tmp/neomutt* :Goyo | set bg=light + +" Automatically deletes all trailing whitespace on save. + autocmd BufWritePre * %s/\s\+$//e + +" When shortcut files are updated, renew bash and ranger configs with new material: + autocmd BufWritePost *bmdirs,*bmfiles !shortcuts +" Run xrdb whenever Xdefaults or Xresources are updated. + autocmd BufWritePost *Xresources,*Xdefaults !xrdb % +" Update binds when sxhkdrc is updated. + autocmd BufWritePost *sxhkdrc !pkill -USR1 sxhkd +" Update dwmbar when changed. + autocmd BufWritePost *dwmbar !killall dwmbar; setsid dwmbar & + + +colo delek diff --git a/TMV/Pictures/icons/firefox.png b/TMV/Pictures/icons/firefox.png Binary files differnew file mode 100644 index 0000000..93541eb --- /dev/null +++ b/TMV/Pictures/icons/firefox.png diff --git a/TMV/Pictures/icons/tor.png b/TMV/Pictures/icons/tor.png Binary files differnew file mode 100644 index 0000000..d4a0dc0 --- /dev/null +++ b/TMV/Pictures/icons/tor.png diff --git a/TMV/Pictures/retrowave-pyramid.png b/TMV/Pictures/retrowave-pyramid.png Binary files differnew file mode 100644 index 0000000..e8d572e --- /dev/null +++ b/TMV/Pictures/retrowave-pyramid.png diff --git a/TMV/i3status.conf b/TMV/i3status.conf new file mode 100644 index 0000000..c33e7ac --- /dev/null +++ b/TMV/i3status.conf @@ -0,0 +1,72 @@ +# i3status configuration file. +# see "man i3status" for documentation. + +# It is important that this file is edited as UTF-8. +# The following line should contain a sharp s: +# ß +# If the above line is not correctly displayed, fix your editor first! + +general { + colors = true + color_good="#00FFFF" + color_bad="#ff0000" + color_degraded="#ffff00" + interval = 1 +} + +#order += "ipv6" +order += "wireless _first_" +order += "ethernet _first_" +order += "battery all" +#order += "disk /" +#order += "load" +#order += "memory" +order += "volume master" +order += "tztime local" + +wireless _first_ { + format_up = "W: (%quality at %essid) %ip" + format_down = "W: down" +} + +ethernet _first_ { + format_up = "E: %ip (%speed)" + format_down = "E: down" +} + +battery all { + format = "%status %percentage %remaining %emptytime" + format_down = "No battery" + status_chr = "⚡ CHR" + status_bat = "🔋 BAT" + status_unk = "? UNK" + status_full = "☻ FULL" + path = "/sys/class/power_supply/BAT%d/uevent" + low_threshold = 10 +} + +disk "/" { + format = "%avail / %total" +} + +load { + format = "%1min" +} + +memory { + format = "%used / %available" + threshold_degraded = "1G" + format_degraded = "MEMORY < %available" +} + +tztime local { + format = "%a %d %b %Y %H:%M:%S" +} + +volume master { + format = "♪: %volume" + format_muted = "♪: muted (%volume)" + device = "default" + mixer = "Master" + mixer_idx = 0 +} |