Prechádzať zdrojové kódy

Merge branch 'master' of 192.168.0.5:~/dotfiles

Frans Bergman 5 rokov pred
rodič
commit
2885a71d0c
8 zmenil súbory, kde vykonal 60 pridanie a 12 odobranie
  1. 6 0
      .aliases
  2. 28 0
      .profile
  3. 14 0
      .scripts/bibtorefer
  4. 1 1
      .scripts/lock.sh
  5. 7 3
      .scripts/screenconf.sh
  6. 2 2
      .scripts/screenshot.sh
  7. 1 1
      .scripts/set_background.sh
  8. 1 5
      .zshrc

+ 6 - 0
.aliases

@@ -0,0 +1,6 @@
+alias ccat="highlight --out-format=ansi"
+alias ytdl="youtube-dl"
+alias r="ranger"
+alias v="vim"
+alias m="mutt"
+alias h="htop"

+ 28 - 0
.profile

@@ -0,0 +1,28 @@
+# ~/.profile: executed by the command interpreter for login shells.
+
+# the default umask is set in /etc/profile; for setting the umask
+# for ssh logins, install and configure the libpam-umask package.
+#umask 022
+
+export PATH="$PATH:$HOME/.cargo/bin:$HOME/.scripts:$HOME/bin"
+export BROWSER="firefox"
+export READER="zathura"
+export MAKEFLAGS="-j$(nproc)"
+export EDITOR="vim"
+export LESSOPEN="|lesspipe.sh %s"
+
+# less colors
+export LESS=-R
+export LESS_TERMCAP_mb=$(tput bold; tput setaf 2) # green
+export LESS_TERMCAP_md=$(tput bold; tput setaf 6) # cyan
+export LESS_TERMCAP_me=$(tput sgr0)
+export LESS_TERMCAP_so=$(tput bold; tput setaf 3; tput setab 4) # yellow on blue
+export LESS_TERMCAP_se=$(tput rmso; tput sgr0)
+export LESS_TERMCAP_us=$(tput smul; tput bold; tput setaf 7) # white
+export LESS_TERMCAP_ue=$(tput rmul; tput sgr0)
+export LESS_TERMCAP_mr=$(tput rev)
+export LESS_TERMCAP_mh=$(tput dim)
+export LESS_TERMCAP_ZN=$(tput ssubm)
+export LESS_TERMCAP_ZV=$(tput rsubm)
+export LESS_TERMCAP_ZO=$(tput ssupm)
+export LESS_TERMCAP_ZW=$(tput rsupm)

+ 14 - 0
.scripts/bibtorefer

@@ -0,0 +1,14 @@
+#!/bin/sed -f
+
+s/title\s*=\s*{\(.*\)},*/%T \1/I
+s/author\s*=\s*{\(.*\)},*/%A \1/I
+s/publisher\s*=\s*{\(.*\)},*/%I \1/I
+s/doi\s*=\s*{\(.*\)},*/%K \1/I
+s/journal\s*=\s*{\(.*\)},*/%J \1/I
+s/volume\s*=\s*{\(.*\)},*/%V \1/I
+s/number\s*=\s*{\(.*\)},*/%N \1/I
+s/pages\s*=\s*{\(.*\)},*/%P \1/I
+s/year\s*=\s*\([0-9]*\),*/%D \1/I
+s/^\s*//g
+/^[^%]/d
+s/\({\|}\)//g

+ 1 - 1
.scripts/lock.sh

@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/bin/sh
 
 playerctl pause
 

+ 7 - 3
.scripts/screenconf.sh

@@ -1,7 +1,11 @@
-#!/bin/bash
+#!/bin/sh
 
-CHOICE=$(echo -e "left-of\nbelow" | dmenu)
+CHOICE=$(dmenu -i -b << EOF
+left-of
+below
+EOF
+)
 
-xrandr --output HDMI-0 --auto --$CHOICE DP-2
+xrandr --output HDMI-0 --auto --"$CHOICE" DP-2
 
 ~/.scripts/set_background.sh

+ 2 - 2
.scripts/screenshot.sh

@@ -1,8 +1,8 @@
-#!/bin/bash
+#!/bin/sh
 maim -us screenshot.png
 
 UUID=$(uuidgen)
-UUID="${UUID[@]:0:5}"
+UUID="${UUID[*]:0:5}"
 
 scp screenshot.png "frans@tankernn.eu:/srv/www/scr/$UUID.png"
 

+ 1 - 1
.scripts/set_background.sh

@@ -1,2 +1,2 @@
-#!/bin/bash
+#!/bin/sh
 feh --bg-fill ~/desktop_background.png

+ 1 - 5
.zshrc

@@ -98,11 +98,7 @@ source $ZSH/oh-my-zsh.sh
 # alias zshconfig="mate ~/.zshrc"
 # alias ohmyzsh="mate ~/.oh-my-zsh"
 
-alias ccat="highlight --out-format=ansi"
-
-export MAKEFLAGS="-j$(nproc)"
-export EDITOR="vim"
-LESSOPEN="|lesspipe.sh %s"; export LESSOPEN
+source ~/.aliases
 
 bindkey -v