bspwm config for big monitor
This commit is contained in:
		
							parent
							
								
									8d2f747337
								
							
						
					
					
						commit
						e9b337128e
					
				|  | @ -92,7 +92,6 @@ | |||
|       manix "" | grep '^# ' | sed 's/^# \(.*\) (.*/\1/;s/ (.*//;s/^# //' | fzf --preview="manix '{}'" | xargs manix | ||||
|     '') | ||||
|     (pkgs.writeScriptBin "monitor" '' | ||||
|       # hotplug | ||||
|       connect() { | ||||
|           # Turn it on if it was off | ||||
|           xrandr --output HDMI-2 --auto | ||||
|  | @ -105,6 +104,24 @@ | |||
| 
 | ||||
|       xrandr | grep "HDMI-2 connected" &>>/dev/null && connect || disconnect | ||||
|     '') | ||||
|     (pkgs.writeScriptBin "big-monitor" '' | ||||
|       connect() { | ||||
|           # Turn it on if it was off | ||||
|           xrandr --output HDMI-2 --auto --primary | ||||
|           # Disable normal display | ||||
|           xrandr --output eDP-1 --off | ||||
|           # Use a nice background | ||||
|           feh --bg-scale ~/Downloads/stephen-walker-onIXxjH56AA-unsplash.jpg | ||||
|           # Reload Polybar | ||||
|           ~/.config/bspwm/rc.d/polybar | ||||
|       } | ||||
| 
 | ||||
|       disconnect() { | ||||
|           xrandr --output HDMI-2 --off | ||||
|       } | ||||
| 
 | ||||
|       xrandr | grep "HDMI-2 connected" &>>/dev/null && connect || disconnect | ||||
|     '') | ||||
|     (pkgs.writeScriptBin "disconnect-keyboard" '' | ||||
|       # keyboard on curve is busted | ||||
|       get_keyboard_id() { | ||||
|  |  | |||
|  | @ -29,8 +29,8 @@ bspc config presel_feedback_color "#bd93f9" | |||
| bspc config split_ratio         0.71 | ||||
| 
 | ||||
| # Extra padding for polybar | ||||
| bspc config -m primary top_padding 34 | ||||
| bspc config -m primary bottom_padding 0 | ||||
| bspc config top_padding 34 | ||||
| bspc config bottom_padding 0 | ||||
| 
 | ||||
| # Rules | ||||
| bspc rule -r '*' | ||||
|  |  | |||
|  | @ -1,8 +1,8 @@ | |||
| { self, config, pkgs, lib, ... }: | ||||
| let | ||||
|   tex = (pkgs.texlive.combine { | ||||
|     inherit (pkgs.texlive) scheme-basic | ||||
|       dvisvgm dvipng# for preview and export as html | ||||
|     inherit (pkgs.texlive) | ||||
|       scheme-basic dvisvgm dvipng # for preview and export as html | ||||
|       wrapfig amsmath ulem hyperref capt-of; | ||||
|     #(setq org-latex-compiler "lualatex") | ||||
|     #(setq org-preview-latex-default-process 'dvisvgm) | ||||
|  | @ -13,13 +13,9 @@ let | |||
|     rev = "502f212d83bc67e8f0499574546b99ec6c8e16f9"; | ||||
|     sha256 = "1wx9nzq7cqyvpaq4j60bs8g7gh4jk8qg4016yi4c331l4iw1ymsa"; | ||||
|   }; | ||||
| in | ||||
| { | ||||
| in { | ||||
|   # TODO modularize | ||||
|   imports = [ | ||||
|     ./battery-low-timer.nix | ||||
|     ./cal-alarms.nix | ||||
|   ]; | ||||
|   imports = [ ./battery-low-timer.nix ./cal-alarms.nix ]; | ||||
| 
 | ||||
|   # Secrets used by home-manager modules  | ||||
|   age.secrets.fastmail.file = "${self}/secrets/fastmail.age"; | ||||
|  | @ -29,7 +25,8 @@ in | |||
|   age.secrets.mossnet.owner = "anish"; | ||||
| 
 | ||||
|   # Taskwarrior private key | ||||
|   age.secrets.taskwarrior-private.file = "${self}/secrets/taskwarrior-private.age"; | ||||
|   age.secrets.taskwarrior-private.file = | ||||
|     "${self}/secrets/taskwarrior-private.age"; | ||||
|   age.secrets.taskwarrior-private.owner = "anish"; | ||||
| 
 | ||||
|   # We don't plug USBs into servers | ||||
|  | @ -56,14 +53,14 @@ in | |||
|     XDG_BIN_HOME = "\${HOME}/.local/bin"; | ||||
|     XDG_DATA_HOME = "\${HOME}/.local/share"; | ||||
| 
 | ||||
|     PATH = [ | ||||
|       "\${XDG_BIN_HOME}" | ||||
|     ]; | ||||
|     PATH = [ "\${XDG_BIN_HOME}" ]; | ||||
|   }; | ||||
| 
 | ||||
|   environment.systemPackages = with pkgs; [ | ||||
|     #unstable.sublime-music | ||||
|     unstable.nheko | ||||
|     # olm-3.2.16 is now insecure | ||||
|     # some reason I can't set insecure packages that will be respected | ||||
|     nheko | ||||
|     unstable.signal-desktop | ||||
|     unstable.tuba | ||||
|     unstable.newsflash | ||||
|  |  | |||
		Loading…
	
		Reference in a new issue