st -> urxvt
This commit is contained in:
		
							parent
							
								
									03500c134d
								
							
						
					
					
						commit
						4eef6df57a
					
				|  | @ -21,8 +21,8 @@ bspc rule -a Firefox split_ratio=0.32 | |||
| bspc rule -a feh state=fullscreen | ||||
| bspc rule -a 'Emacs:org*' state=floating | ||||
| bspc rule -a 'Emacs:scratch' state=floating | ||||
| bspc rule -a st-scratch state=floating sticky=on center=on | ||||
| bspc rule -a st-calc state=floating sticky=on center=on | ||||
| bspc rule -a URxvt:urxvt-scratch state=floating sticky=on center=on | ||||
| bspc rule -a URxvt:urxvt-calc state=floating sticky=on center=on | ||||
| 
 | ||||
| 
 | ||||
| # | ||||
|  |  | |||
|  | @ -21,10 +21,10 @@ super + {_,shift +}{1-9,0} | |||
| 	bspc {desktop -f,node -d} {1-9,10} | ||||
| 
 | ||||
| super + Return | ||||
| 	xst | ||||
| 	urxvt -e bash -c "tmux new || tmux attach" | ||||
| 
 | ||||
| super + grave | ||||
| 	st-scratch | ||||
| 	urxvt-scratch | ||||
| 
 | ||||
| super + shift + grave | ||||
| 	emacsclient -e '(open-scratch-frame)' | ||||
|  |  | |||
|  | @ -1,8 +1,6 @@ | |||
| { config, lib, pkgs, ... }: | ||||
| 
 | ||||
| { | ||||
|   services.xserver.desktopManager.xterm.enable = false; | ||||
| 
 | ||||
|   # xst-256color isn't supported over ssh, so revert to a known one | ||||
|   my.zsh.rc = ''[ "$TERM" = xst-256color ] && export TERM=xterm-256color''; | ||||
| 
 | ||||
|  |  | |||
							
								
								
									
										42
									
								
								modules/desktop/apps/urxvt.nix
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										42
									
								
								modules/desktop/apps/urxvt.nix
									
									
									
									
									
										Normal file
									
								
							|  | @ -0,0 +1,42 @@ | |||
| { config, lib, pkgs, ... }: | ||||
| 
 | ||||
| { | ||||
|   my.packages = with pkgs; [ | ||||
|     libqalculate # calculator cli w/ currency & unit conversion | ||||
| 
 | ||||
|     rxvt_unicode | ||||
|     (writeScriptBin "urxvt-scratch" '' | ||||
|       #!${stdenv.shell} | ||||
|       SCRID=urxvt-scratch | ||||
|       focused=$(xdotool getactivewindow) | ||||
|       scratch=$(xdotool search --onlyvisible --classname $SCRID) | ||||
|       if [[ -n $scratch ]]; then | ||||
|         if [[ $focused == $scratch ]]; then | ||||
|           xdotool windowkill $scratch | ||||
|         else | ||||
|           xdotool windowactivate $scratch | ||||
|         fi | ||||
|       else | ||||
|         urxvt -name $SCRID \ | ||||
|               -geometry 100x26 \ | ||||
|               -e $SHELL -c '${tmux}/bin/tmux new-session -A -s scratch -n scratch' | ||||
|       fi | ||||
|     '') | ||||
|     (writeScriptBin "urxvt-calc" '' | ||||
|       #!${stdenv.shell} | ||||
|       SCRID=urxvt-calc | ||||
|       scratch=$(xdotool search --onlyvisible --classname $SCRID) | ||||
|       [ -n "$scratch" ] && xdotool windowkill $scratch | ||||
|       urxvt -name $SCRID \ | ||||
|             -geometry 80x20 \ | ||||
|             -e $SHELL -c 'qalc' | ||||
|     '') | ||||
|     (makeDesktopItem { | ||||
|       name = "urxvt-calc"; | ||||
|       desktopName = "Calculator"; | ||||
|       icon = "calc"; | ||||
|       exec = "urxvt-calc"; | ||||
|       categories = "Development"; | ||||
|     }) | ||||
|   ]; | ||||
| } | ||||
|  | @ -11,7 +11,7 @@ | |||
|     # | ||||
|     ./apps/redshift.nix | ||||
|     # | ||||
|     ./apps/st.nix | ||||
|     ./apps/urxvt.nix | ||||
|   ]; | ||||
| 
 | ||||
|   environment.systemPackages = with pkgs; [ | ||||
|  | @ -29,6 +29,7 @@ | |||
|     xserver = { | ||||
|       enable = true; | ||||
|       windowManager.bspwm.enable = true; | ||||
|       desktopManager.xterm.enable = lib.mkDefault false; | ||||
|       displayManager.lightdm = { | ||||
|         enable = true; | ||||
|         greeters.mini = { | ||||
|  |  | |||
|  | @ -49,7 +49,28 @@ | |||
| *.color241: #665c54 | ||||
| 
 | ||||
| 
 | ||||
| !! xst | ||||
| st.opacity: 200 | ||||
| st.font: Fira Code:pixelsize=12 | ||||
| st-scratch.font: Fira Code:pixelsize=15 | ||||
| !! urxvt | ||||
| URxvt*depth:                   32 | ||||
| URxvt*.background:             [80]#101216 | ||||
| ! URxvt*.termName:               xterm-256color | ||||
| URxvt*.buffered:               true | ||||
| URxvt*.cursorBlink:            true | ||||
| URxvt*.underlineColor:         grey | ||||
| URxvt*.borderless:             1 | ||||
| URxvt.iso14755:                false | ||||
| URxvt.iso14755_52:             false | ||||
| URxvt*.internalBorder:         10 | ||||
| URxvt*.scrollBar:              false | ||||
| URxvt*.saveLines:              5000 | ||||
| URxvt*.loginShell:             false | ||||
| URxvt.perl-ext-common:         default,matcher | ||||
| URxvt*.matcher.button:         1 | ||||
| URxvt*.matcher.rend.0:         Uline Bold fg5 | ||||
| URxvt.clipboard.autocopy:      true | ||||
| 
 | ||||
| ! fonts | ||||
| URxvt*.lineSpace:              0 | ||||
| URxvt*.letterSpace:            0 | ||||
| URxvt*.font:                   xft:Fira Code:pixelsize=12 | ||||
| urxvt-scratch.font:            xft:Fira Code:pixelsize=16 | ||||
| urxvt-calc.font:               xft:Fira Code:pixelsize=22 | ||||
|  |  | |||
		Loading…
	
		Reference in a new issue