Changed to termite and added new applications

This commit is contained in:
lanxu 2018-02-21 22:01:06 +02:00
parent c87c418fd5
commit e785e25e24
5 changed files with 33 additions and 16 deletions

View File

@ -9,9 +9,10 @@ Xft.rgba: rgb
#include ".Xresources.d/theme_base16" #include ".Xresources.d/theme_base16"
!#include ".Xresources.d/theme_gruvbox-dark" !#include ".Xresources.d/theme_gruvbox-dark"
! rxvt-unicode
URxvt.perl-ext-common: default,matcher,clipboard URxvt.perl-ext-common: default,matcher,clipboard
URxvt.font: xft:Fura Code Nerd Font:size=10:style=Regular URxvt*font: xft:Noto Emoji,xft:Fura Code Nerd Font:size=10:style=Regular
URxvt.boldFont: xft:Fura Code Nerd Font:size=10:style=Bold URxvt*boldFont: xft:Noto Emoji,xft:Fura Code Nerd Font:size=10:style=Bold
!URxvt.font: xft:Fira Code:size=10:style=Regular !URxvt.font: xft:Fira Code:size=10:style=Regular
!URxvt.boldFont: xft:Fira Code:size=10:style=Bold !URxvt.boldFont: xft:Fira Code:size=10:style=Bold
!URxvt.font: xft:DejaVu Sans Mono:size=10:style=Regular !URxvt.font: xft:DejaVu Sans Mono:size=10:style=Regular
@ -21,16 +22,19 @@ URxvt.matcher.button: 1
URxvt*scrollBar: false URxvt*scrollBar: false
URxvt*scrollBar_right: true URxvt*scrollBar_right: true
URxvt*scrollColor: #000000 URxvt*scrollColor: #000000
URxvt*letterSpace: -1 URxvt.letterSpace: 0
URxvt.keysym.M-c: perl:clipboard:copy URxvt.keysym.M-c: perl:clipboard:copy
URxvt.keysym.M-v: perl:clipboard:paste URxvt.keysym.M-v: perl:clipboard:paste
URxvt.keysym.M-C-v: perl:clipboard:paste_escaped URxvt.keysym.M-C-v: perl:clipboard:paste_escaped
URxvt.iso14755: false URxvt.iso14755: false
URxvt.iso14755_52: false URxvt.iso14755_52: false
URxvt*termName: rxvt-unicode-256color 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:DejaVu Sans Mono:size=10:style=Regular
!XTerm*faceName: xft:Fira Code:size=10:style=Regular !XTerm*faceName: xft:Fira Code:size=10:style=Regular
XTerm*faceSize: 10 XTerm.vt100.faceSize: 10
XTerm.scaleHeight: 0.90 XTerm.scaleHeight: 1.0
XTerm*termName: xterm-256color XTerm*renderFont: true
XTerm.termName: xterm-256color

View File

@ -59,7 +59,7 @@ beautiful.init(awful.util.getdir("config") .. "/themes/lanxu/theme.lua")
local widgets = require("widgets"); local widgets = require("widgets");
-- This is used later as the default terminal and editor to run. -- This is used later as the default terminal and editor to run.
terminal = "urxvt" terminal = "termite"
editor = os.getenv("EDITOR") or "vim" editor = os.getenv("EDITOR") or "vim"
editor_cmd = terminal .. " -e " .. editor editor_cmd = terminal .. " -e " .. editor
@ -554,7 +554,8 @@ awful.rules.rules = {
"mpv", "mpv",
"Vlc", "Vlc",
"Sxiv", "Sxiv",
"Plugin-container" "Plugin-container",
"Mcomix"
}, },
name = { name = {
}, },
@ -584,7 +585,6 @@ awful.rules.rules = {
properties = { screen = primary_screen, tag = "GFX" } }, properties = { screen = primary_screen, tag = "GFX" } },
{ rule = { class = "Steam" }, { rule = { class = "Steam" },
properties = { screen = secondary_screen, tag = "Other" } }, properties = { screen = secondary_screen, tag = "Other" } },
--{ rule = { class = "Steam", name = "Kaverit" },
{ rule = { class = "Steam", name = "Friends" }, { rule = { class = "Steam", name = "Friends" },
properties = { screen = secondary_screen, tag = "Other", width = 200 } }, properties = { screen = secondary_screen, tag = "Other", width = 200 } },
} }

View File

@ -1,2 +1,3 @@
profile=opengl-hq profile=opengl-hq
hwdec=auto hwdec=auto
osd-font-size=14

View File

@ -175,9 +175,21 @@ handle_fallback() {
exit 1 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 handle_extension
#MIMETYPE="$( file --dereference --brief --mime-type -- "${FILE_PATH}" )" #MIMETYPE="$( file --dereference --brief --mime-type -- "${FILE_PATH}" )"
MIMETYPE="$(xdg-mime query filetype "${FILE_PATH}" )" MIMETYPE="$(xdg-mime query filetype "${FILE_PATH}" )"

8
.zshrc
View File

@ -41,7 +41,7 @@ alias top=htop
alias ll="ls -lh" alias ll="ls -lh"
alias la="ls -a" alias la="ls -a"
alias lp="lastpass.sh" alias lp="lastpass.sh"
alias ranger="TERMCMD=urxvt ranger" alias ranger="TERMCMD=termite ranger"
alias search="search.sh" alias search="search.sh"
#alias ls="ls -N --time-style=long-iso --color=auto" #alias ls="ls -N --time-style=long-iso --color=auto"
alias ls="ls --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 # Emscripten
#source /home/lanxu/Koodit/github/emsdk/emsdk_env.sh #source /home/lanxu/Koodit/github/emsdk/emsdk_env.sh
#TERM=xterm-256color TERM=xterm-256color
bindkey "${terminfo[khome]}" beginning-of-line #bindkey "${terminfo[khome]}" beginning-of-line
bindkey "${terminfo[kend]}" end-of-line #bindkey "${terminfo[kend]}" end-of-line