diff --git a/home/profiles/cli/default.nix b/home/profiles/cli/default.nix index 065c8365..74e3e133 100644 --- a/home/profiles/cli/default.nix +++ b/home/profiles/cli/default.nix @@ -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() { diff --git a/home/profiles/desktop/bspwmrc b/home/profiles/desktop/bspwmrc index 852a46ac..822c0b1a 100755 --- a/home/profiles/desktop/bspwmrc +++ b/home/profiles/desktop/bspwmrc @@ -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 '*' diff --git a/hosts/profiles/desktop/default.nix b/hosts/profiles/desktop/default.nix index df06c1f7..ab6eae8b 100644 --- a/hosts/profiles/desktop/default.nix +++ b/hosts/profiles/desktop/default.nix @@ -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 @@ -148,11 +145,11 @@ in #define bwht #CBCCC6 #define bg blk #define fg wht - + *.foreground: fg *.background: bg *.cursorColor: mag - + *.color0: blk *.color8: bblk *.color1: red @@ -169,7 +166,7 @@ in *.color14: bcyn *.color7: wht *.color15: bwht - + ! greys *.color234: #1E2029 *.color235: #282a36