this repo has no description
2
fork

Configure Feed

Select the types of activity you want to include in your feed.

move scripts from xinit to cli

+43 -38
+43 -9
home/profiles/cli/default.nix
··· 83 83 #!/usr/bin/env bash 84 84 manix "" | grep '^# ' | sed 's/^# \(.*\) (.*/\1/;s/ (.*//;s/^# //' | fzf --preview="manix '{}'" | xargs manix 85 85 '') 86 + (pkgs.writeScriptBin "monitor" '' 87 + # hotplug 88 + connect() { 89 + # Turn it on if it was off 90 + xrandr --output HDMI-2 --auto 91 + xrandr --output HDMI-2 --same-as eDP-1 92 + } 93 + 94 + disconnect() { 95 + xrandr --output HDMI-2 --off 96 + } 97 + 98 + xrandr | grep "HDMI-2 connected" &>>/dev/null && connect || disconnect 99 + '') 100 + (pkgs.writeScriptBin "disconnect-keyboard" '' 101 + # keyboard on curve is busted 102 + get_keyboard_id() { 103 + xinput list | grep 'AT Translated Set' | cut -f2 | cut -d'=' -f2 | xinput float 104 + } 105 + 106 + disconnect_keyboard() { 107 + id=$(get_keyboard_id) 108 + xinput float $id 109 + unset id 110 + } 111 + 112 + attach_keyboard() { 113 + id=$(get_keyboard_id) 114 + xinput reattach $id 3 115 + unset id 116 + } 117 + 118 + disconnect_keyboard 119 + '') 86 120 ]; 87 121 88 122 programs.zsh = { ··· 99 133 TERMINFO_DIRS = "${pkgs.kitty.terminfo.outPath}/share/terminfo"; # Needed to run home-manager switch on non-nixOS 100 134 }; 101 135 plugins = [ 102 - # { 103 - # name = "zsh-autocomplete"; 104 - # src = pkgs.fetchFromGitHub { 105 - # owner = "marlonrichert"; 106 - # repo = "zsh-autocomplete"; 107 - # rev = "22.01.21"; 108 - # sha256 = "+UziTYsjgpiumSulrLojuqHtDrgvuG91+XNiaMD7wIs="; 109 - # }; 110 - # } 136 + { 137 + name = "zsh-autocomplete"; 138 + src = pkgs.fetchFromGitHub { 139 + owner = "marlonrichert"; 140 + repo = "zsh-autocomplete"; 141 + rev = "22.01.21"; 142 + sha256 = "+UziTYsjgpiumSulrLojuqHtDrgvuG91+XNiaMD7wIs="; 143 + }; 144 + } 111 145 { 112 146 name = "zsh-autopair"; 113 147 src = pkgs.fetchFromGitHub {
-29
hosts/profiles/desktop/default.nix
··· 166 166 *.color240: #6272a4 167 167 *.color241: #b6b6b2 168 168 EOF 169 - 170 - # hotplug 171 - connect() { 172 - xrandr --output HDMI-2 --same-as eDP-1 173 - } 174 - 175 - disconnect() { 176 - xrandr --output HDMI-2 --off 177 - } 178 - 179 - xrandr | grep "HDMI-2 connected" &>>/dev/null && connect || disconnect 180 - 181 - # keyboard on curve is busted 182 - get_keyboard_id() { 183 - xinput list | grep 'AT Translated Set' | cut -f2 | cut -d'=' -f2 | xinput float 184 - } 185 - 186 - disconnect_keyboard() { 187 - id=$(get_keyboard_id) 188 - xinput float $id 189 - unset id 190 - } 191 - 192 - attach_keyboard() { 193 - id=$(get_keyboard_id) 194 - xinput reattach $id 3 195 - } 196 - 197 - disconnect_keyboard 198 169 ''; 199 170 lightdm = { 200 171 enable = true;