From e785e25e247772a9bdd431f997a307ebe6e43f43 Mon Sep 17 00:00:00 2001 From: lanxu Date: Wed, 21 Feb 2018 22:01:06 +0200 Subject: [PATCH] Changed to termite and added new applications --- .Xresources | 18 +++++++++++------- .config/awesome/rc.lua | 6 +++--- .config/mpv/mpv.conf | 1 + .config/ranger/scope.sh | 16 ++++++++++++++-- .zshrc | 8 ++++---- 5 files changed, 33 insertions(+), 16 deletions(-) diff --git a/.Xresources b/.Xresources index 5cf4ba4..aeab502 100644 --- a/.Xresources +++ b/.Xresources @@ -9,9 +9,10 @@ Xft.rgba: rgb #include ".Xresources.d/theme_base16" !#include ".Xresources.d/theme_gruvbox-dark" +! rxvt-unicode URxvt.perl-ext-common: default,matcher,clipboard -URxvt.font: xft:Fura Code Nerd Font:size=10:style=Regular -URxvt.boldFont: xft:Fura Code Nerd Font:size=10:style=Bold +URxvt*font: xft:Noto Emoji,xft:Fura Code Nerd Font:size=10:style=Regular +URxvt*boldFont: xft:Noto Emoji,xft:Fura Code Nerd Font:size=10:style=Bold !URxvt.font: xft:Fira Code:size=10:style=Regular !URxvt.boldFont: xft:Fira Code:size=10:style=Bold !URxvt.font: xft:DejaVu Sans Mono:size=10:style=Regular @@ -21,16 +22,19 @@ URxvt.matcher.button: 1 URxvt*scrollBar: false URxvt*scrollBar_right: true URxvt*scrollColor: #000000 -URxvt*letterSpace: -1 +URxvt.letterSpace: 0 URxvt.keysym.M-c: perl:clipboard:copy URxvt.keysym.M-v: perl:clipboard:paste URxvt.keysym.M-C-v: perl:clipboard:paste_escaped URxvt.iso14755: false URxvt.iso14755_52: false URxvt*termName: rxvt-unicode-256color -XTerm*faceName: xft:Fura Code Nerd Font:size=10:style=Regular + +! xterm +XTerm.vt100.faceName: xft:Fura Code Nerd Font:style=Regular !XTerm*faceName: xft:DejaVu Sans Mono:size=10:style=Regular !XTerm*faceName: xft:Fira Code:size=10:style=Regular -XTerm*faceSize: 10 -XTerm.scaleHeight: 0.90 -XTerm*termName: xterm-256color +XTerm.vt100.faceSize: 10 +XTerm.scaleHeight: 1.0 +XTerm*renderFont: true +XTerm.termName: xterm-256color diff --git a/.config/awesome/rc.lua b/.config/awesome/rc.lua index c704512..2605b9b 100644 --- a/.config/awesome/rc.lua +++ b/.config/awesome/rc.lua @@ -59,7 +59,7 @@ beautiful.init(awful.util.getdir("config") .. "/themes/lanxu/theme.lua") local widgets = require("widgets"); -- This is used later as the default terminal and editor to run. -terminal = "urxvt" +terminal = "termite" editor = os.getenv("EDITOR") or "vim" editor_cmd = terminal .. " -e " .. editor @@ -554,7 +554,8 @@ awful.rules.rules = { "mpv", "Vlc", "Sxiv", - "Plugin-container" + "Plugin-container", + "Mcomix" }, name = { }, @@ -584,7 +585,6 @@ awful.rules.rules = { properties = { screen = primary_screen, tag = "GFX" } }, { rule = { class = "Steam" }, properties = { screen = secondary_screen, tag = "Other" } }, - --{ rule = { class = "Steam", name = "Kaverit" }, { rule = { class = "Steam", name = "Friends" }, properties = { screen = secondary_screen, tag = "Other", width = 200 } }, } diff --git a/.config/mpv/mpv.conf b/.config/mpv/mpv.conf index ebc4706..a28642e 100644 --- a/.config/mpv/mpv.conf +++ b/.config/mpv/mpv.conf @@ -1,2 +1,3 @@ profile=opengl-hq hwdec=auto +osd-font-size=14 diff --git a/.config/ranger/scope.sh b/.config/ranger/scope.sh index 8128959..383035f 100755 --- a/.config/ranger/scope.sh +++ b/.config/ranger/scope.sh @@ -175,9 +175,21 @@ handle_fallback() { exit 1 } -size=$(stat -c%s "${FILE_PATH}") # file size in bytes +allow_large() { + case "${FILE_EXTENSION_LOWER}" in + avi|mkv|flv|mp4|m4v) + echo 1;; + cbz|cbr|cb7) + echo 1;; + *) + echo 0;; + esac +} -if [ $size -le 10485760 ]; then +size=$(stat -c%s "${FILE_PATH}") # file size in bytes +override=$(allow_large) + +if [ $size -le 10485760 ] || [ $override == 1 ]; then handle_extension #MIMETYPE="$( file --dereference --brief --mime-type -- "${FILE_PATH}" )" MIMETYPE="$(xdg-mime query filetype "${FILE_PATH}" )" diff --git a/.zshrc b/.zshrc index 9d7f270..dfea7ac 100644 --- a/.zshrc +++ b/.zshrc @@ -41,7 +41,7 @@ alias top=htop alias ll="ls -lh" alias la="ls -a" alias lp="lastpass.sh" -alias ranger="TERMCMD=urxvt ranger" +alias ranger="TERMCMD=termite ranger" alias search="search.sh" #alias ls="ls -N --time-style=long-iso --color=auto" alias ls="ls --time-style=long-iso --color=auto" @@ -60,6 +60,6 @@ source $HOME/.config/base16-shell/scripts/base16-default-dark.sh # Emscripten #source /home/lanxu/Koodit/github/emsdk/emsdk_env.sh -#TERM=xterm-256color -bindkey "${terminfo[khome]}" beginning-of-line -bindkey "${terminfo[kend]}" end-of-line +TERM=xterm-256color +#bindkey "${terminfo[khome]}" beginning-of-line +#bindkey "${terminfo[kend]}" end-of-line