move polybar to the top, and add some config for tree-style tabs
This commit is contained in:
		
							parent
							
								
									2a4ebff434
								
							
						
					
					
						commit
						50177fd902
					
				
							
								
								
									
										1
									
								
								.gitignore
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										1
									
								
								.gitignore
									
									
									
									
										vendored
									
									
								
							|  | @ -1 +0,0 @@ | ||||||
| result |  | ||||||
|  | @ -38,7 +38,7 @@ | ||||||
|  # }; |  # }; | ||||||
| 
 | 
 | ||||||
|   networking.hostName = "curve"; # Define your hostname. |   networking.hostName = "curve"; # Define your hostname. | ||||||
|   networking.wireless.enable = true;  # Enables wireless support via wpa_supplicant. |   #networking.wireless.enable = true;  # Enables wireless support via wpa_supplicant. | ||||||
| 
 | 
 | ||||||
|   time.timeZone = "Australia/Brisbane"; |   time.timeZone = "Australia/Brisbane"; | ||||||
| 
 | 
 | ||||||
|  |  | ||||||
|  | @ -74,7 +74,7 @@ | ||||||
| 
 | 
 | ||||||
|   ## Local config |   ## Local config | ||||||
|   programs.ssh.startAgent = true; |   programs.ssh.startAgent = true; | ||||||
|   services.openssh.startWhenNeeded = true; |   # services.openssh.startWhenNeeded = true; | ||||||
| 
 | 
 | ||||||
|   networking.networkmanager.enable = true; |   networking.networkmanager.enable = true; | ||||||
|   # The global useDHCP flag is deprecated, therefore explicitly set to false |   # The global useDHCP flag is deprecated, therefore explicitly set to false | ||||||
|  | @ -85,44 +85,44 @@ | ||||||
| 
 | 
 | ||||||
|   ## Personal backups |   ## Personal backups | ||||||
|   # Syncthing is a bit heavy handed for my needs, so rsync to my NAS instead. |   # Syncthing is a bit heavy handed for my needs, so rsync to my NAS instead. | ||||||
|   systemd = { |   # systemd = { | ||||||
|     services.backups = { |   #   services.backups = { | ||||||
|       description = "Backup /usr/store to NAS"; |   #     description = "Backup /usr/store to NAS"; | ||||||
|       wants = [ "usr-drive.mount" ]; |   #     wants = [ "usr-drive.mount" ]; | ||||||
|       path  = [ pkgs.rsync ]; |   #     path  = [ pkgs.rsync ]; | ||||||
|       environment = { |   #     environment = { | ||||||
|         SRC_DIR  = "/usr/store"; |   #       SRC_DIR  = "/usr/store"; | ||||||
|         DEST_DIR = "/usr/drive"; |   #       DEST_DIR = "/usr/drive"; | ||||||
|       }; |   #     }; | ||||||
|       script = '' |   #     script = '' | ||||||
|         rcp() { |   #       rcp() { | ||||||
|           if [[ -d "$1" && -d "$2" ]]; then |   #         if [[ -d "$1" && -d "$2" ]]; then | ||||||
|             echo "---- BACKUPING UP $1 TO $2 ----" |   #           echo "---- BACKUPING UP $1 TO $2 ----" | ||||||
|             rsync -rlptPJ --chmod=go= --delete --delete-after \ |   #           rsync -rlptPJ --chmod=go= --delete --delete-after \ | ||||||
|                 --exclude=lost+found/ \ |   #               --exclude=lost+found/ \ | ||||||
|                 --exclude=@eaDir/ \ |   #               --exclude=@eaDir/ \ | ||||||
|                 --include=.git/ \ |   #               --include=.git/ \ | ||||||
|                 --filter=':- .gitignore' \ |   #               --filter=':- .gitignore' \ | ||||||
|                 --filter=':- $XDG_CONFIG_HOME/git/ignore' \ |   #               --filter=':- $XDG_CONFIG_HOME/git/ignore' \ | ||||||
|                 "$1" "$2" |   #               "$1" "$2" | ||||||
|           fi |   #         fi | ||||||
|         } |   #       } | ||||||
|         rcp "$HOME/projects/" "$DEST_DIR/projects" |   #       rcp "$HOME/projects/" "$DEST_DIR/projects" | ||||||
|         rcp "$SRC_DIR/" "$DEST_DIR" |   #       rcp "$SRC_DIR/" "$DEST_DIR" | ||||||
|       ''; |   #     ''; | ||||||
|       serviceConfig = { |   #     serviceConfig = { | ||||||
|         Type = "oneshot"; |   #       Type = "oneshot"; | ||||||
|         Nice = 19; |   #       Nice = 19; | ||||||
|         IOSchedulingClass = "idle"; |   #       IOSchedulingClass = "idle"; | ||||||
|         User = config.user.name; |   #       User = config.user.name; | ||||||
|         Group = config.user.group; |   #       Group = config.user.group; | ||||||
|       }; |   #     }; | ||||||
|     }; |   #   }; | ||||||
|     timers.backups = { |   #   timers.backups = { | ||||||
|       wantedBy = [ "timers.target" ]; |   #     wantedBy = [ "timers.target" ]; | ||||||
|       partOf = [ "backups.service" ]; |   #     partOf = [ "backups.service" ]; | ||||||
|       timerConfig.OnCalendar = "*-*-* 00,12:00:00"; |   #     timerConfig.OnCalendar = "*-*-* 00,12:00:00"; | ||||||
|       timerConfig.Persistent = true; |   #     timerConfig.Persistent = true; | ||||||
|     }; |   #   }; | ||||||
|   }; |   # }; | ||||||
| } | } | ||||||
|  |  | ||||||
|  | @ -2,32 +2,32 @@ | ||||||
| 
 | 
 | ||||||
| with lib; | with lib; | ||||||
| { | { | ||||||
|   networking.hosts = |   # networking.hosts = | ||||||
|     let hostConfig = { |   #   let hostConfig = { | ||||||
|           "192.168.1.2"  = [ "ao" ]; |   #         "192.168.1.2"  = [ "ao" ]; | ||||||
|           "192.168.1.3"  = [ "kiiro" ]; |   #         "192.168.1.3"  = [ "kiiro" ]; | ||||||
|           "192.168.1.10" = [ "kuro" ]; |   #         "192.168.1.10" = [ "kuro" ]; | ||||||
|           "192.168.1.11" = [ "shiro" ]; |   #         "192.168.1.11" = [ "shiro" ]; | ||||||
|           "192.168.1.12" = [ "midori" ]; |   #         "192.168.1.12" = [ "midori" ]; | ||||||
|         }; |   #       }; | ||||||
|         hosts = flatten (attrValues hostConfig); |   #       hosts = flatten (attrValues hostConfig); | ||||||
|         hostName = config.networking.hostName; |   #       hostName = config.networking.hostName; | ||||||
|     in mkIf (builtins.elem hostName hosts) hostConfig; |   #   in mkIf (builtins.elem hostName hosts) hostConfig; | ||||||
| 
 | 
 | ||||||
|   ## Location config -- since Toronto is my 127.0.0.1 |   ## Location config -- since Toronto is my 127.0.0.1 | ||||||
|   time.timeZone = mkDefault "America/Toronto"; |   time.timeZone = mkDefault "Australia/Brisbane"; | ||||||
|   i18n.defaultLocale = mkDefault "en_US.UTF-8"; |   i18n.defaultLocale = mkDefault "en_US.UTF-8"; | ||||||
|   # For redshift, mainly |   # For redshift, mainly | ||||||
|   location = (if config.time.timeZone == "Brisbane/Australia" then { |   location = (if config.time.timeZone == "Australia/Brisbane" then { | ||||||
|     latitude = 43.70011; |     latitude = 27.470; | ||||||
|     longitude = -79.4163; |     longitude = 153.0260; | ||||||
|   } else if config.time.timeZone == "Europe/Copenhagen" then { |   } else if config.time.timeZone == "Europe/Copenhagen" then { | ||||||
|     latitude = 55.88; |     latitude = 55.88; | ||||||
|     longitude = 12.5; |     longitude = 12.5; | ||||||
|   } else {}); |   } else {}); | ||||||
| 
 | 
 | ||||||
|   # So the vaultwarden CLI knows where to find my server. |   # So the vaultwarden CLI knows where to find my server. | ||||||
|   modules.shell.vaultwarden.config.server = "p.v0.io"; |   # modules.shell.vaultwarden.config.server = "p.v0.io"; | ||||||
| 
 | 
 | ||||||
| 
 | 
 | ||||||
|   ## Not using syncthing atm |   ## Not using syncthing atm | ||||||
|  |  | ||||||
|  | @ -38,7 +38,7 @@ with lib.my; | ||||||
|   config = { |   config = { | ||||||
|     user = |     user = | ||||||
|       let user = builtins.getEnv "USER"; |       let user = builtins.getEnv "USER"; | ||||||
|           name = if elem user [ "" "root" ] then "hlissner" else user; |           name = if elem user [ "" "root" ] then "anish" else user; | ||||||
|       in { |       in { | ||||||
|         inherit name; |         inherit name; | ||||||
|         description = "The primary user account"; |         description = "The primary user account"; | ||||||
|  |  | ||||||
|  | @ -3,6 +3,49 @@ | ||||||
| @-moz-document url(chrome://browser/content/browser.xul), | @-moz-document url(chrome://browser/content/browser.xul), | ||||||
|                url(chrome://browser/content/browser.xhtml) |                url(chrome://browser/content/browser.xhtml) | ||||||
| { | { | ||||||
|  |   /*** TREE STYLE TABS ***/ | ||||||
|  |   /* Hide main tabs toolbar */ | ||||||
|  |   #TabsToolbar { | ||||||
|  |   	visibility: collapse; | ||||||
|  |   } | ||||||
|  |   /* Sidebar min and max width removal */ | ||||||
|  |   #sidebar { | ||||||
|  |   	max-width: none !important; | ||||||
|  |   	min-width: 0px !important; | ||||||
|  |   } | ||||||
|  |   /* Hide splitter, when using Tree Style Tab. */ | ||||||
|  |   #sidebar-box[sidebarcommand="treestyletab_piro_sakura_ne_jp-sidebar-action"] + #sidebar-splitter { | ||||||
|  |   	display: none !important; | ||||||
|  |   } | ||||||
|  |   /* Hide sidebar header, when using Tree Style Tab. */ | ||||||
|  |   #sidebar-box[sidebarcommand="treestyletab_piro_sakura_ne_jp-sidebar-action"] #sidebar-header { | ||||||
|  |   	visibility: collapse; | ||||||
|  |   } | ||||||
|  |    | ||||||
|  |   /* Shrink sidebar until hovered, when using Tree Style Tab. */ | ||||||
|  |   :root { | ||||||
|  |   	--thin-tab-width: 30px; | ||||||
|  |   	--wide-tab-width: 200px; | ||||||
|  |   } | ||||||
|  |   #sidebar-box:not([sidebarcommand="treestyletab_piro_sakura_ne_jp-sidebar-action"]) { | ||||||
|  |   	min-width: var(--wide-tab-width) !important; | ||||||
|  |   	max-width: none !important; | ||||||
|  |   } | ||||||
|  |   #sidebar-box[sidebarcommand="treestyletab_piro_sakura_ne_jp-sidebar-action"] { | ||||||
|  |   	position: relative !important; | ||||||
|  |   	transition: all 300ms !important; | ||||||
|  |   	min-width: var(--thin-tab-width) !important; | ||||||
|  |   	max-width: var(--thin-tab-width) !important; | ||||||
|  |   } | ||||||
|  |   #sidebar-box[sidebarcommand="treestyletab_piro_sakura_ne_jp-sidebar-action"]:hover { | ||||||
|  |   	transition: all 300ms !important; | ||||||
|  |   	min-width: var(--wide-tab-width) !important; | ||||||
|  |   	max-width: var(--wide-tab-width) !important; | ||||||
|  |    | ||||||
|  |   	/* Negative right-margin to keep page from being pushed to the side. */ | ||||||
|  |   	margin-right: calc((var(--wide-tab-width) - var(--thin-tab-width)) * -1) !important; | ||||||
|  |   } | ||||||
|  | 
 | ||||||
|   /*** TAB BAR ***/ |   /*** TAB BAR ***/ | ||||||
|   /* Ensure tab doesn't show through auto-completion popup */ |   /* Ensure tab doesn't show through auto-completion popup */ | ||||||
|   .tabbrowser-tab { z-index: 0 !important; } |   .tabbrowser-tab { z-index: 0 !important; } | ||||||
|  |  | ||||||
|  | @ -46,7 +46,7 @@ width = 100% | ||||||
| height = 34 | height = 34 | ||||||
| offset-x = 0 | offset-x = 0 | ||||||
| offset-y = 0 | offset-y = 0 | ||||||
| bottom = true | # bottom = true | ||||||
| 
 | 
 | ||||||
| overline-size = 0 | overline-size = 0 | ||||||
| overline-color = #f00 | overline-color = #f00 | ||||||
|  |  | ||||||
		Loading…
	
		Reference in a new issue