Browse Source

i3_config: cleanup, font; xresources: some tweaks; zshrc: fix which in functions

master
Von Random 3 months ago
parent
commit
8ed77f7db4
3 changed files with 19 additions and 19 deletions
  1. +6
    -12
      i3_config
  2. +5
    -3
      xresources
  3. +8
    -4
      zshrc

+ 6
- 12
i3_config View File

@ -4,9 +4,9 @@
set $mod Mod4
set $i3_term default-terminal-emulator
set $font JetBrains Mono:size=10
set $font Fira Sans:size=12
font pango:JetBrains Mono 10
font pango:Fira Sans 12
# Use Mouse+$mod to drag floating windows to their wanted position
floating_modifier $mod
@ -128,6 +128,10 @@ bindsym XF86AudioStop exec "mpc stop"
bindsym XF86AudioNext exec "mpc next"
bindsym XF86AudioPrev exec "mpc prev"
# volume keys
#bindsym XF86AudioRaiseVolume exec "ponymix increase 2"
#bindsym XF86AudioLowerVolume exec "ponymix decrease 2"
# resize window (you can also use the mouse for that)
mode "resize" {
bindsym h resize shrink width 10 px or 10 ppt
@ -161,35 +165,25 @@ hide_edge_borders both
workspace_auto_back_and_forth yes
force_focus_wrapping yes
# rules
# workspace 6 is for always floating
for_window [workspace=6] floating enable
assign [class="Firefox"] 1
assign [class="Steam"] 6
# software
for_window [class="jetbrains-toolbox"] floating enable
for_window [class="Vpnui"] floating enable
for_window [class="Deadbeef"] floating enable
for_window [class="Google-musicmanager"] floating enable
for_window [class="mpv"] floating enable
for_window [class="Pavucontrol"] floating enable
for_window [class="pinentry"] floating enable
for_window [class="plugin-container"] floating enable
for_window [class="Qmmp"] floating enable
for_window [class="Vncviewer"] floating enable
for_window [class="vlc"] floating enable
for_window [class="X64"] floating enable
for_window [class="(?i)firefox" instance="^(?!Navigator$)"] floating enable
for_window [title="^Cacti - Realtime"] floating enable
for_window [class="java-lang-Thread"] floating enable
for_window [class="^sun-awt"] floating enable
# scratchpad
for_window [class="KeePassXC"] move scratchpad, scratchpad show
for_window [title="^vimwiki$"] move scratchpad, scratchpad show
for_window [class="Vpnui"] move scratchpad, scratchpad show
bindsym $mod+i [class="KeePassXC"] scratchpad show
bindsym $mod+n [title="^vimwiki$"] scratchpad show
bindsym $mod+y [class="Vpnui"] scratchpad show
# execs
exec --no-startup-id "$HOME/.autostart"

+ 5
- 3
xresources View File

@ -4,11 +4,12 @@ Xft.antialias: true
Xft.lcdfilter: true
Xft.rgba: rgb
Xft.hinting: true
Xft.hintstyle: hintfull
Xft.dpi: 192
Xft.hintstyle: hintslight
Xft.dpi: 96
#define TERMINUS -xos4-terminus-bold-*-*-*-18-*-*-*-*-*-iso10646-1
#define TERMINUS -xos4-terminus-bold-*-*-*-14-*-*-*-*-*-iso10646-1
#define TERMINUS_SMALL -xos4-terminus-*-*-*-*-12-*-*-*-*-*-iso10646-1
#define FONT xft:Fantasque Sans Mono:12
! solarized light
#define COLORFG #657b83
@ -52,6 +53,7 @@ URxvt.scrollBar: false
URxvt.secondaryScroll: false
URxvt.urgentOnBell: false
URxvt.visualBell: false
URxvt.cutchars: `'"'&()*,;<=>?@[]^{|}│
! perl extensions
URxvt.perl-ext-common: default,matcher


+ 8
- 4
zshrc View File

@ -179,16 +179,20 @@ rscreen() { command screen -Dr }
scr() { command screen sudo -Es }
# vim
vi() { $(whence nvim || whence vim || return 1) $@ }
vi() { $(whence -p nvim || whence -p vim || return 1) $@ }
vim() { vi $@ }
# termcompat
s() { $(whence termcompat||return 0) ssh $@ }
s() {
[[ -n $TMUX ]] && /usr/bin/tmux renamew $1
$(whence -p termcompat||return 0) ssh $@
[[ -n $TMUX ]] && /usr/bin/tmux renamew $HOST
}
# }}}
# {{{ plugins
# grc
if [[ -x $(whence grc) ]]; then
if [[ -x $(whence -p grc) ]]; then
cmds=(\
cc configure cvs df dig gcc gmake id ip last lsof make mount \
mtr netstat ping ping6 ps tcpdump traceroute traceroute6 \
@ -202,7 +206,7 @@ fi
gdiff() { /usr/bin/git diff --color $@; }
gdf() {
typeset difftool
if difftool=$(whence diff-so-fancy); then
if difftool=$(whence -p diff-so-fancy); then
gdiff $@ | $difftool | less --tabs=4 -RSFX
else
gdiff $@


Loading…
Cancel
Save