Off to a new start

clean_emacs
Tuan-Dat Tran 2019-03-11 23:59:49 +01:00
parent 25339689bc
commit c8f8da8e00
18 changed files with 171 additions and 2756 deletions

1
.gitignore vendored
View File

@ -2,6 +2,7 @@
\#*\# \#*\#
*.log *.log
.#* .#*
vim/.vim/bundle/*
emacs/.emacs.d/* emacs/.emacs.d/*
config/.scripts/playstate config/.scripts/playstate
!emacs/.emacs.d/snippets* !emacs/.emacs.d/snippets*

5
config/.Xdefaults Normal file
View File

@ -0,0 +1,5 @@
! Fonts
urxvt*font: xft:Hack Nerd Font Mono:style=Regular:size=11:hinting=full, xft:DejaVu Sans Mono for Powerline:size=11
! Behavior
urxvt*scrollBar: false

View File

@ -1,37 +1,36 @@
! special ! special
*.foreground: #444444 *.foreground: #9ea7a6
*.background: #eeeeee *.background: #232c31
*.cursorColor: #444444 *.cursorColor: #9ea7a6
! black ! black
*.color0: #eeeeee *.color0: #232c31
*.color8: #bcbcbc *.color8: #3f4944
! red ! red
*.color1: #af0000 *.color1: #2a5491
*.color9: #d70000 *.color9: #2a5491
! green ! green
*.color2: #008700 *.color2: #237986
*.color10: #d70087 *.color10: #237986
! yellow ! yellow
*.color3: #5f8700 *.color3: #a03b1e
*.color11: #8700af *.color11: #a03b1e
! blue ! blue
*.color4: #0087af *.color4: #484d79
*.color12: #d75f00 *.color12: #484d79
! magenta ! magenta
*.color5: #878787 *.color5: #c59820
*.color13: #d75f00 *.color13: #c59820
! cyan ! cyan
*.color6: #005f87 *.color6: #b02f30
*.color14: #005faf *.color14: #b02f30
! white ! white
*.color7: #444444 *.color7: #9ea7a6
*.color15: #005f87 *.color15: #b5d8f6

View File

@ -25,9 +25,6 @@ new_window none
new_float normal new_float normal
hide_edge_borders none hide_edge_borders none
exec --no-startup-id volumeicon
bindsym $mod+Ctrl+m exec termite -e 'alsamixer'
################################################################################################ ################################################################################################
###################################### Workspace Settings ###################################### ###################################### Workspace Settings ######################################
################################################################################################ ################################################################################################
@ -43,6 +40,7 @@ set $ws7 7: 
set $ws8 8:  set $ws8 8: 
set $ws9 9:  set $ws9 9: 
# switch to workspace # switch to workspace
bindsym $mod+1 workspace $ws1 bindsym $mod+1 workspace $ws1
bindsym $mod+2 workspace $ws2 bindsym $mod+2 workspace $ws2
@ -77,33 +75,16 @@ bindsym $mod+Shift+8 move container to workspace $ws8; workspace $ws8
bindsym $mod+Shift+9 move container to workspace $ws9; workspace $ws9 bindsym $mod+Shift+9 move container to workspace $ws9; workspace $ws9
# Open specific applications in floating mode # Open specific applications in floating mode
for_window [title="alsamixer"] floating enable border pixel 1
for_window [title="File Transfer*"] floating enable
for_window [class="Lightdm-gtk-greeter-settings"] floating enable
for_window [class="Lxappearance"] floating enable sticky enable border normal
for_window [class="Nitrogen"] floating enable sticky enable border normal for_window [class="Nitrogen"] floating enable sticky enable border normal
for_window [class="Oblogout"] fullscreen enable
for_window [class="octopi"] floating enable
for_window [class="Pavucontrol"] floating enable
for_window [class="(?i)System-config-printer.py"] floating enable border normal
for_window [class="Thus"] floating enable border normal
for_window [class="Timeset-gui"] floating enable border normal
for_window [class="(?i)virtualbox"] floating enable border normal for_window [class="(?i)virtualbox"] floating enable border normal
for_window [title="KeePassX$"] floating enable border normal for_window [title="KeePassX$"] floating enable border normal
for_window [title="Eddie - Settings"] floating enable border normal for_window [title="Eddie - Settings"] floating enable border normal
for_window [class="^Thunderbird$" title="^.*Event:"] floating enable for_window [class="^Thunderbird$" title="^.*Event:"] floating enable
# Give boarder to terminal windows
for_window [class="(?i)termite"] border pixel 3
# switch to workspace with urgent window automatically
for_window [urgent=latest] focus
# https://github.com/z3ntu/dotfiles/blob/master/i3/.config/i3/config # https://github.com/z3ntu/dotfiles/blob/master/i3/.config/i3/config
# Steam # Steam
for_window [class="^Steam$" title="^Friends$"] floating enable for_window [class="^Steam$" title="^Friends List$"] floating enable
for_window [class="^Steam$" title="Steam - News"] floating enable for_window [class="^Steam$" title="Steam"] floating enable
for_window [class="^Steam$" title=".* - Chat"] floating enable
for_window [class="^Steam$" title="^Settings$"] floating enable for_window [class="^Steam$" title="^Settings$"] floating enable
for_window [class="^Steam$" title=".* - event started"] floating enable for_window [class="^Steam$" title=".* - event started"] floating enable
for_window [class="^Steam$" title=".* CD key"] floating enable for_window [class="^Steam$" title=".* CD key"] floating enable
@ -111,27 +92,19 @@ for_window [class="^Steam$" title="^Steam - Self Updater$"] floating enable
for_window [class="^Steam$" title="^Screenshot Uploader$"] floating enable for_window [class="^Steam$" title="^Screenshot Uploader$"] floating enable
for_window [class="^Steam$" title="^Steam Guard - Computer Authorization Required$"] floating enable for_window [class="^Steam$" title="^Steam Guard - Computer Authorization Required$"] floating enable
for_window [title="^Steam Keyboard$"] floating enable for_window [title="^Steam Keyboard$"] floating enable
# Jetbrains
for_window [class="^com-intellij-updater-Runner$" title="^Update$"] floating enable
for_window [instance="^sun-awt-X11-XDialogPeer$" title="^Complete Installation$"] floating enable
############################################################################### ###############################################################################
############################ Startup Applications ############################# ############################ Startup Applications #############################
############################################################################### ###############################################################################
exec --no-startup-id setxkbmap us,de; setxkbmap -option ctrl:swapcaps exec --no-startup-id setxkbmap us,de; setxkbmap -option ctrl:nocaps
exec --no-startup-id nitrogen --restore exec --no-startup-id feh --randomize --bg-fill /usr/share/backgrounds/*
exec --no-startup-id compton -b exec --no-startup-id compton -b
exec --no-startup-id nextcloud exec --no-startup-id nextcloud
exec --no-startup-id emacs --daemon
exec --no-startup-id udiskie exec --no-startup-id udiskie
exec --no-startup-id polybar beep -r exec --no-startup-id polybar beep -r
exec --no-startup-id polybar boop -r exec --no-startup-id polybar boop -r
exec --no-startup-id nm-applet exec --no-startup-id nm-applet
exec --no-startup-id xss-lock -- python ~/.scripts/i3lock.py
# exec --no-startup-id kdeconnect-indicator
############################################################################### ###############################################################################
################################# Keybindings ################################# ################################# Keybindings #################################
@ -140,7 +113,7 @@ exec --no-startup-id xss-lock -- python ~/.scripts/i3lock.py
bindsym $mod+Shift+s exec poweroff bindsym $mod+Shift+s exec poweroff
# start a terminal # start a terminal
bindsym $mod+Return exec termite bindsym $mod+Return exec i3-sensible-terminal
# kill focused window # kill focused window
bindsym $mod+Shift+q kill bindsym $mod+Shift+q kill
@ -156,8 +129,6 @@ bindsym XF86MonBrightnessDown exec "xbacklight -dec 10; notify-send 'brightness
bindsym XF86AudioRaiseVolume exec --no-startup-id pactl set-sink-volume 0 +5% bindsym XF86AudioRaiseVolume exec --no-startup-id pactl set-sink-volume 0 +5%
bindsym XF86AudioLowerVolume exec --no-startup-id pactl set-sink-volume 0 -5% bindsym XF86AudioLowerVolume exec --no-startup-id pactl set-sink-volume 0 -5%
bindsym XF86AudioMute exec --no-startup-id pactl set-sink-mute 0 toggle bindsym XF86AudioMute exec --no-startup-id pactl set-sink-mute 0 toggle
# bindsym XF86AudioPlay exec "if [ `cat /home/$USER/.scripts/playstate` = 0 ]; then echo '1'>/home/$USER/.scripts/playstate;else echo '0'>/home/$USER/.scripts/playstate;fi"
# bindsym XF86AudioStop exec "playerctl stop && echo '0'>/home/$USER/.scripts/playstate"
bindsym XF86AudioPlay exec "playerctl play-pause; cmus-remote -u" bindsym XF86AudioPlay exec "playerctl play-pause; cmus-remote -u"
bindsym XF86AudioStop exec "playerctl stop; cmus-remote -s" bindsym XF86AudioStop exec "playerctl stop; cmus-remote -s"
bindsym XF86AudioNext exec "playerctl next; cmus-remote -n" bindsym XF86AudioNext exec "playerctl next; cmus-remote -n"
@ -165,7 +136,8 @@ bindsym XF86AudioPrevious exec "playerctl previous; cmus-remote -r"
# Application Shortcuts # Application Shortcuts
bindsym $mod+b exec firefox bindsym $mod+b exec firefox
bindsym $mod+e exec termite -e ranger bindsym $mod+e exec i3-sensible-terminal -e ranger
bindsym $mod+Shift+e exec spacefm
bindsym $mod+m exec thunderbird bindsym $mod+m exec thunderbird
bindsym Print exec --no-startup-id scrot bindsym Print exec --no-startup-id scrot
@ -205,18 +177,10 @@ bindsym $mod+a focus parent
# move the currently focused window to the scratchpad # move the currently focused window to the scratchpad
bindsym $mod+Shift+minus move scratchpad bindsym $mod+Shift+minus move scratchpad
# Show the next scratchpad window or hide the focused scratchpad window.
# If there are multiple scratchpad windows, this command cycles through them.
bindsym $mod+minus scratchpad show
bindsym $mod+Alt+v exec ~/.vim-anywhere/bin/run
#navigate workspaces next / previous
bindsym $mod+Ctrl+semicolon workspace next
bindsym $mod+Ctrl+j workspace prev
# bindsym Alt+Tab workspace next
# restart/exit i3 # restart/exit i3
bindsym $mod+Shift+r restart bindsym $mod+Shift+r restart
bindsym $mod+Shift+e exit bindsym Control+Shift+e exit
bindsym Control+Shift+l exec dm-tool lock
# Resize window (you can also use the mouse for that) # Resize window (you can also use the mouse for that)
bindsym $mod+r mode "resize" bindsym $mod+r mode "resize"
@ -233,9 +197,6 @@ mode "resize" {
bindsym Escape mode "default" bindsym Escape mode "default"
} }
# Lock screen
bindsym $mod+0 exec --no-startup-id "python ~/.scripts/i3lock.py"
# Color palette used for the terminal ( ~/.extend.Xresources file ) # Color palette used for the terminal ( ~/.extend.Xresources file )
# Colors are gathered based on the documentation: # Colors are gathered based on the documentation:
# https://i3wm.org/docs/userguide.html#xresources # https://i3wm.org/docs/userguide.html#xresources

View File

@ -22,7 +22,6 @@ fixed-center = true
tray-position = right tray-position = right
tray-padding = 2 tray-padding = 2
tray-transparent = true
background = #00000000 background = #00000000
foreground = ${colors.foreground} foreground = ${colors.foreground}

View File

@ -2,7 +2,7 @@ set preview_images true
set vcs_aware true set vcs_aware true
map f console scout -ftsea%space map f console scout -ftsea%space
map gg console mkdir%space map md console mkdir%space
map np shell cp -r ~/Templates/LaTeX/Protokoll $(date +%g.%m.%%d); ~/Templates/LaTeX/fsrprotokoll.sh map np shell cp -r ~/Templates/LaTeX/Protokoll $(date +%g.%m.%%d); ~/Templates/LaTeX/fsrprotokoll.sh
map ny shell cp %f ../Protokoll_$(echo $(basename $(pwd)) | awk '{gsub("\\.","-");print}' $2).pdf map ny shell cp %f ../Protokoll_$(echo $(basename $(pwd)) | awk '{gsub("\\.","-");print}' $2).pdf
map nrg shell cp ~/Templates/LaTeX/Invoice/elektro_invoice.tex Gefeba_Elektro_-_Rechnung_$(date +%g-%m)_-Elektro.tex; ~/Templates/LaTeX/Invoice/InvNum.sh map nrg shell cp ~/Templates/LaTeX/Invoice/elektro_invoice.tex Gefeba_Elektro_-_Rechnung_$(date +%g-%m)_-Elektro.tex; ~/Templates/LaTeX/Invoice/InvNum.sh

View File

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

View File

@ -1,78 +0,0 @@
[options]
allow_bold = true
audible_bell = false
clickable_url = true
#dynamic_title = false
font = Droid Sans Mono for Powerline
#fullscreen = true
#geometry = 640x480
#icon_name = terminal
mouse_autohide = true
#scroll_on_output = false
#scroll_on_keystroke = true
# Length of the scrollback buffer, 0 disabled the scrollback buffer
# and setting it to a negative value means "infinite scrollback"
scrollback_lines = -1
search_wrap = true
#urgent_on_bell = true
hyperlinks = true
# $BROWSER is used by default if set, with xdg-open as a fallback
#browser = xdg-open
# "system", "on" or "off"
cursor_blink = system
# "block", "underline" or "ibeam"
cursor_shape = block
# Hide links that are no longer valid in url select overlay mode
#filter_unmatched_urls = true
# Emit escape sequences for extra modified keys
#modify_other_keys = false
# set size hints for the window
#size_hints = false
# "off", "left" or "right"
scrollbar = off
[colors]
# special
foreground = #444444
foreground_bold = #444444
cursor = #444444
background = #eeeeee
# black
color0 = #eeeeee
color8 = #bcbcbc
# red
color1 = #af0000
color9 = #d70000
# green
color2 = #008700
color10 = #d70087
# yellow
color3 = #5f8700
color11 = #8700af
# blue
color4 = #0087af
color12 = #d75f00
# magenta
color5 = #878787
color13 = #d75f00
# cyan
color6 = #005f87
color14 = #005faf
# white
color7 = #444444
color15 = #005f87

@ -1 +0,0 @@
Subproject commit 9a38216a1c0c597f978d73547d37681fc689c90d

@ -1 +0,0 @@
Subproject commit d0911146c68512defcf9d947542b06d7f7eed37e

@ -1 +0,0 @@
Subproject commit 56e8e41ef863a0a7d33d85c3c0c895aa6e9e62d3

File diff suppressed because it is too large Load Diff

View File

@ -1,11 +0,0 @@
" Shortcuts
imap ;main package main<Enter><Enter>import (<Enter>"fmt"<Enter>)<Enter><Enter>func main() {<Enter>}<Esc>O
imap { {<Enter>}<Esc>kA
imap ( ()<Esc>i
imap () ()
" Compiling
map <C-c><C-c> <Esc>:!clear; go run %<Enter>
map <C-c><C-b> <Esc>:!clear; go build %; ./%<<Enter>
map <C-c><C-w> <Esc>:!clear; GOOS=windows GOARCH=386 go build -o %<.exe %

View File

@ -258,3 +258,49 @@ Kaffemaschinen
Snippets Snippets
# #
Vorverarbeitungsfunktion Vorverarbeitungsfunktion
Mohamed
Mech
Instagram
Postvorlage
textbasierte
Posts
sponsored
Gleistellungsbeauftragte
ZIM
Evaluierungskomissionen
Fakultätsratssitzung
Evaluierungskomission
schonmal
vorgeglüht
Bauingeneurwesen
klingonischer
Helferantrag
Fürstimmen
Entschuldigungsstatus
Konteneröffnung
Werbeposter
Beitragsvorlage
h
vorfomuliert
Programmier
Stritzel
Moodle
#achschaftbezahlten
Davi
#oche
Ersti
Busanbindung
Dogs
spreadshirt
Bauingeneurswesen
#ergleisweis
vergleisweise
Einwurfschlitz
Fachschaftsrathelfer
Sitzungstermin
Vorlesungsbeginn
Sitzungstermine
Putzdienstes
Tischmülleimer
Fachschafts
Lernraumes

Binary file not shown.

View File

@ -7,6 +7,8 @@ call vundle#begin()
Plugin 'VundleVim/Vundle.vim' Plugin 'VundleVim/Vundle.vim'
Plugin 'vim-pandoc/vim-pandoc' Plugin 'vim-pandoc/vim-pandoc'
Plugin 'vim-pandoc/vim-pandoc-syntax' Plugin 'vim-pandoc/vim-pandoc-syntax'
Plugin 'fatih/vim-go'
Plugin 'vimwiki/vimwiki'
call vundle#end() call vundle#end()
filetype plugin indent on filetype plugin indent on
@ -32,7 +34,6 @@ endif
syntax on syntax on
filetype indent plugin on filetype indent plugin on
set background=light set background=light
colorscheme PaperColor
set encoding=utf-8 set encoding=utf-8
set autowrite set autowrite
set smartcase set smartcase
@ -65,22 +66,17 @@ nmap 0 ^
" Latex " Latex
"let g:tex_nospell=1 "let g:tex_nospell=1
" Shortcuts " Shortcuts
map <Space><Tab> <Esc>/<x_x><Enter>c5l
inoremap <Space><Tab> <Esc>/<x_x><Enter>c5l
vnoremap <Space><Tab> <Esc>/<x_x><Enter>c5l
inoremap ;; <x_x>
inoremap jj <Esc>
inoremap ;date <C-R>=strftime("%Y/%m/%d")<Enter> inoremap ;date <C-R>=strftime("%Y/%m/%d")<Enter>
inoremap ;time <C-R>=strftime("%H:%M:%S")<Enter> inoremap ;time <C-R>=strftime("%H:%M:%S")<Enter>
" Diaeresis for e.g. german " Diaeresis for e.g. german
inoremap "a ä inoremap ae ä
inoremap "o ö inoremap oe ö
inoremap "u ü inoremap ue ü
inoremap "A Ä inoremap Ae Ä
inoremap "U Ü inoremap Ue Ü
inoremap "O Ö inoremap Oe Ö
inoremap ;ss ß inoremap <leader>s ß
inoremap ;euro inoremap <leader>e
" This callback will be executed when the entire command is completed " This callback will be executed when the entire command is completed
function! BackgroundCommandClose(channel) function! BackgroundCommandClose(channel)
@ -109,3 +105,8 @@ endfunction
" So we can use :BackgroundCommand to call our function. " So we can use :BackgroundCommand to call our function.
command! -nargs=+ -complete=shellcmd RunBackgroundCommand call RunBackgroundCommand(<q-args>) command! -nargs=+ -complete=shellcmd RunBackgroundCommand call RunBackgroundCommand(<q-args>)
" Vimwiki
let g:vimwiki_list =[
\{'path':'~/Documents/Collection/wiki'},
\{'path_html':'~/Documents/Collection/wiki_html'}
\]

View File

@ -1,5 +0,0 @@
snippets:~/.emacs.d/snippets
dotfiles:~/.dotfiles
Uni:~/Nextcloud/Uni/Studium
Studium:~/Nextcloud/Uni/Studium

View File

@ -1,80 +1,22 @@
export ZSH=$HOME/.oh-my-zsh # Paths
export ZSH="/home/tuan/.oh-my-zsh"
export PATH="$PATH:$HOME/.go/bin"
export GOPATH="$HOME/.go/"
# Alias
alias q="exit"
alias ranger='ranger --choosedir=$HOME/.rangerdir; LASTDIR=`cat $HOME/.rangerdir`; cd "$LASTDIR"'
alias xsel='xsel -ib'
# Theme
ZSH_THEME="agnoster"
# Plugins
plugins=( plugins=(
git git
history history
sudo
) )
#ZSH_THEME="/usr/share/zsh-theme-powerlevel9k/powerlevel9k" # Source
#POWERLEVEL
POWERLEVEL9K_MODE='awesome-fontconfig'
POWERLEVEL9K_LEFT_PROMPT_ELEMENTS=(os_icon dir vcs)
POWERLEVEL9K_RIGHT_PROMPT_ELEMENTS=(status time)
POWERLEVEL9K_COLOR_SCHEME='light'
#POWERLEVEL9K_STATUS_OK_BACKGROUND="blue"
#POWERLEVEL9K_STATUS_OK_FOREGROUND="orange"
#POWERLEVEL9K_STATUS_ERROR_BACKGROUND="blue"
#POWERLEVEL9K_STATUS_ERROR_FOREGROUND="red"
#
#POWERLEVEL9K_TIME_BACKGROUND="white"
#POWERLEVEL9K_TIME_FOREGROUND="black"
POWERLEVEL9K_TIME_FORMAT="%D{%H:%M:%S}"
POWERLEVEL9k_SHORTEN_STRATEGY="trunctuate_middle"
POWERLEVEL9K_SHORTEN_DIR_LENGTH=2
# Alias
alias -s cpp=vim
alias -s org=vim
alias -s tex=vim
alias budget="emacs -nw $HOME/Nextcloud/orgs/Budget/MyBudget.ledger"
alias df="df -h"
alias diff="diff -s"
alias e="emacsclient -t"
alias ej="emacs --daemon"
alias ek="pkill emacs"
alias erc='emacs -nw ~/.emacs.d/config.org'
alias matrix="cmatrix"
alias mkvirtenv="python -m virtualenv --system-site-packages"
alias mp3='youtube-dl --embed-thumbnail -x --audio-format mp3 -o "./%(title)s.%(ext)s"'
alias nyan="nyancat"
alias pastebin='vim ~/Nextcloud/pastebin.txt'
alias pb='vim ~/Nextcloud/pastebin.txt'
alias q="exit"
alias :q="exit"
alias ranger='ranger --choosedir=$HOME/.rangerdir; LASTDIR=`cat $HOME/.rangerdir`; cd "$LASTDIR"'
alias rm="rm -I"
alias steam='steam'
alias vpn_eu='sudo openvpn --config Downloads/AirVPN_Europe_UDP-443.ovpn'
alias vpn_us='sudo openvpn --config Downloads/AirVPN_America_UDP-443.ovpn'
alias vrc='vim ~/.vimrc'
alias vudget="vim $HOME/Nextcloud/orgs/Budget/MyBudget.ledger"
alias watch='watch --color'
alias zrc='vim ~/.zshrc'
source $ZSH/oh-my-zsh.sh source $ZSH/oh-my-zsh.sh
# Variables
PATH=$PATH:$HOME/.local/bin:/usr/lib/jvm/java-10-openjdk/bin
export DEFAULT_EDITOR=$EDITOR
export EDITOR='vim'
export GOPATH="$HOME/workspace/go/"
export GPG_TTY=$(tty)
export HIGHLIGHT_DATADIR="~/.config/highlight/"
export LC_ALL=en_US.UTF-8
export STEAM_FRAME_FORCE_CLOSE=1
export TERM="xterm-256color" # in case you are using urxvt, to bypass an error during sshing
export VISUAL=$EDITOR
export VISUAL_EDITOR=$EDITOR
export DOTNET_CLI_TELEMETRY_OPTOUT=true
export PATH="$PATH:/home/tuan/.dotnet/tools"
export ASPNETCORE_Environment=Development
# Functions
source /usr/share/zsh-theme-powerlevel9k/powerlevel9k.zsh-theme