i3_config: cleanup, font; xresources: some tweaks; zshrc: fix which in functions
This commit is contained in:
		
							parent
							
								
									ea66bb1a2f
								
							
						
					
					
						commit
						8ed77f7db4
					
				
					 3 changed files with 19 additions and 19 deletions
				
			
		
							
								
								
									
										18
									
								
								i3_config
									
										
									
									
									
								
							
							
						
						
									
										18
									
								
								i3_config
									
										
									
									
									
								
							| 
						 | 
					@ -4,9 +4,9 @@
 | 
				
			||||||
 | 
					
 | 
				
			||||||
set $mod Mod4
 | 
					set $mod Mod4
 | 
				
			||||||
set $i3_term default-terminal-emulator
 | 
					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
 | 
					# Use Mouse+$mod to drag floating windows to their wanted position
 | 
				
			||||||
floating_modifier $mod
 | 
					floating_modifier $mod
 | 
				
			||||||
| 
						 | 
					@ -128,6 +128,10 @@ bindsym XF86AudioStop exec "mpc stop"
 | 
				
			||||||
bindsym XF86AudioNext exec "mpc next"
 | 
					bindsym XF86AudioNext exec "mpc next"
 | 
				
			||||||
bindsym XF86AudioPrev exec "mpc prev"
 | 
					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)
 | 
					# resize window (you can also use the mouse for that)
 | 
				
			||||||
mode "resize" {
 | 
					mode "resize" {
 | 
				
			||||||
    bindsym h resize shrink width 10 px or 10 ppt
 | 
					    bindsym h resize shrink width 10 px or 10 ppt
 | 
				
			||||||
| 
						 | 
					@ -161,35 +165,25 @@ hide_edge_borders both
 | 
				
			||||||
workspace_auto_back_and_forth yes
 | 
					workspace_auto_back_and_forth yes
 | 
				
			||||||
force_focus_wrapping 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
 | 
					# software
 | 
				
			||||||
for_window [class="jetbrains-toolbox"] floating enable
 | 
					for_window [class="jetbrains-toolbox"] floating enable
 | 
				
			||||||
for_window [class="Vpnui"] floating enable
 | 
					for_window [class="Vpnui"] floating enable
 | 
				
			||||||
for_window [class="Deadbeef"] floating enable
 | 
					for_window [class="Deadbeef"] floating enable
 | 
				
			||||||
for_window [class="Google-musicmanager"] floating enable
 | 
					 | 
				
			||||||
for_window [class="mpv"] floating enable
 | 
					for_window [class="mpv"] floating enable
 | 
				
			||||||
for_window [class="Pavucontrol"] floating enable
 | 
					for_window [class="Pavucontrol"] floating enable
 | 
				
			||||||
for_window [class="pinentry"] floating enable
 | 
					for_window [class="pinentry"] floating enable
 | 
				
			||||||
for_window [class="plugin-container"] floating enable
 | 
					 | 
				
			||||||
for_window [class="Qmmp"] floating enable
 | 
					for_window [class="Qmmp"] floating enable
 | 
				
			||||||
for_window [class="Vncviewer"] floating enable
 | 
					for_window [class="Vncviewer"] floating enable
 | 
				
			||||||
for_window [class="vlc"] floating enable
 | 
					for_window [class="vlc"] floating enable
 | 
				
			||||||
for_window [class="X64"] 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 [title="^Cacti - Realtime"] floating enable
 | 
				
			||||||
for_window [class="java-lang-Thread"] floating enable
 | 
					for_window [class="java-lang-Thread"] floating enable
 | 
				
			||||||
for_window [class="^sun-awt"] floating enable
 | 
					for_window [class="^sun-awt"] floating enable
 | 
				
			||||||
# scratchpad
 | 
					# scratchpad
 | 
				
			||||||
for_window [class="KeePassXC"] move scratchpad, scratchpad show
 | 
					for_window [class="KeePassXC"] move scratchpad, scratchpad show
 | 
				
			||||||
for_window [title="^vimwiki$"] 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+i [class="KeePassXC"] scratchpad show
 | 
				
			||||||
bindsym $mod+n [title="^vimwiki$"] scratchpad show
 | 
					bindsym $mod+n [title="^vimwiki$"] scratchpad show
 | 
				
			||||||
bindsym $mod+y [class="Vpnui"] scratchpad show
 | 
					 | 
				
			||||||
 | 
					
 | 
				
			||||||
# execs
 | 
					# execs
 | 
				
			||||||
exec --no-startup-id "$HOME/.autostart"
 | 
					exec --no-startup-id "$HOME/.autostart"
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -4,11 +4,12 @@ Xft.antialias:          true
 | 
				
			||||||
Xft.lcdfilter:          true
 | 
					Xft.lcdfilter:          true
 | 
				
			||||||
Xft.rgba:               rgb
 | 
					Xft.rgba:               rgb
 | 
				
			||||||
Xft.hinting:            true
 | 
					Xft.hinting:            true
 | 
				
			||||||
Xft.hintstyle:          hintfull
 | 
					Xft.hintstyle:          hintslight
 | 
				
			||||||
Xft.dpi:                192
 | 
					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 TERMINUS_SMALL  -xos4-terminus-*-*-*-*-12-*-*-*-*-*-iso10646-1
 | 
				
			||||||
 | 
					#define FONT            xft:Fantasque Sans Mono:12
 | 
				
			||||||
 | 
					
 | 
				
			||||||
! solarized light
 | 
					! solarized light
 | 
				
			||||||
#define COLORFG #657b83
 | 
					#define COLORFG #657b83
 | 
				
			||||||
| 
						 | 
					@ -52,6 +53,7 @@ URxvt.scrollBar:        false
 | 
				
			||||||
URxvt.secondaryScroll:  false
 | 
					URxvt.secondaryScroll:  false
 | 
				
			||||||
URxvt.urgentOnBell:     false
 | 
					URxvt.urgentOnBell:     false
 | 
				
			||||||
URxvt.visualBell:       false
 | 
					URxvt.visualBell:       false
 | 
				
			||||||
 | 
					URxvt.cutchars:         `'"'&()*,;<=>?@[]^{|}│
 | 
				
			||||||
 | 
					
 | 
				
			||||||
! perl extensions
 | 
					! perl extensions
 | 
				
			||||||
URxvt.perl-ext-common:  default,matcher
 | 
					URxvt.perl-ext-common:  default,matcher
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
							
								
								
									
										12
									
								
								zshrc
									
										
									
									
									
								
							
							
						
						
									
										12
									
								
								zshrc
									
										
									
									
									
								
							| 
						 | 
					@ -179,16 +179,20 @@ rscreen() { command screen -Dr }
 | 
				
			||||||
scr()     { command screen sudo -Es }
 | 
					scr()     { command screen sudo -Es }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
# vim
 | 
					# vim
 | 
				
			||||||
vi()  { $(whence nvim || whence vim || return 1) $@ }
 | 
					vi()  { $(whence -p nvim || whence -p vim || return 1) $@ }
 | 
				
			||||||
vim() { vi $@ }
 | 
					vim() { vi $@ }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
# termcompat
 | 
					# 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
 | 
					# {{{ plugins
 | 
				
			||||||
# grc
 | 
					# grc
 | 
				
			||||||
if [[ -x $(whence grc) ]]; then
 | 
					if [[ -x $(whence -p grc) ]]; then
 | 
				
			||||||
    cmds=(\
 | 
					    cmds=(\
 | 
				
			||||||
        cc configure cvs df dig gcc gmake id ip last lsof make mount \
 | 
					        cc configure cvs df dig gcc gmake id ip last lsof make mount \
 | 
				
			||||||
        mtr netstat ping ping6 ps tcpdump traceroute traceroute6 \
 | 
					        mtr netstat ping ping6 ps tcpdump traceroute traceroute6 \
 | 
				
			||||||
| 
						 | 
					@ -202,7 +206,7 @@ fi
 | 
				
			||||||
gdiff() { /usr/bin/git diff --color $@; }
 | 
					gdiff() { /usr/bin/git diff --color $@; }
 | 
				
			||||||
gdf() {
 | 
					gdf() {
 | 
				
			||||||
    typeset difftool
 | 
					    typeset difftool
 | 
				
			||||||
    if difftool=$(whence diff-so-fancy); then
 | 
					    if difftool=$(whence -p diff-so-fancy); then
 | 
				
			||||||
        gdiff $@ | $difftool | less --tabs=4 -RSFX
 | 
					        gdiff $@ | $difftool | less --tabs=4 -RSFX
 | 
				
			||||||
    else
 | 
					    else
 | 
				
			||||||
        gdiff $@
 | 
					        gdiff $@
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue