aboutsummaryrefslogtreecommitdiff
path: root/share/cfg
diff options
context:
space:
mode:
Diffstat (limited to 'share/cfg')
-rw-r--r--share/cfg/firefox/default.nix3
-rw-r--r--share/cfg/gallery-dl.nix35
-rw-r--r--share/cfg/hyprland.nix25
-rw-r--r--share/cfg/waybar.nix7
4 files changed, 19 insertions, 51 deletions
diff --git a/share/cfg/firefox/default.nix b/share/cfg/firefox/default.nix
index 07281ec..5590d5d 100644
--- a/share/cfg/firefox/default.nix
+++ b/share/cfg/firefox/default.nix
@@ -4,8 +4,7 @@ let
css-files =
map (n: ./usercss/${n}) (builtins.attrNames (builtins.readDir ./usercss));
userChrome = builtins.concatStringsSep "\n" (map builtins.readFile css-files);
-in
-{
+in {
home.sessionVariables.BROWSER = "firefox";
programs.firefox = {
diff --git a/share/cfg/gallery-dl.nix b/share/cfg/gallery-dl.nix
index 3ee065b..802141f 100644
--- a/share/cfg/gallery-dl.nix
+++ b/share/cfg/gallery-dl.nix
@@ -1,5 +1,4 @@
-{ config, ... }:
-{
+{ config, ... }: {
programs.gallery-dl = {
settings.extractor = {
base-directory = "${config.xdg.userDirs.download}/gallery-dl";
@@ -8,24 +7,15 @@
{
name = "metadata";
mode = "json";
- whitelist = [
- "danbooru"
- "moebooru"
- "gelbooru"
- "sankaku"
- "nhentai"
- "rule34"
- ];
+ whitelist =
+ [ "danbooru" "moebooru" "gelbooru" "sankaku" "nhentai" "rule34" ];
}
{
name = "zip";
compression = "store";
extension = "cbz";
filter = "extension not in ('zip', 'rar')";
- whitelist = [
- "nhentai"
- "mangadex"
- ];
+ whitelist = [ "nhentai" "mangadex" ];
}
];
@@ -34,21 +24,14 @@
reddit = {
archive-format = "s_{subreddit}{filename}";
directory = {
- "locals().get('is_gallery')" = [
- "Reddit"
- "S"
- "{subreddit!C}"
- "{title[:120]!t:?/_/R /_/}{id}"
- ];
- "" = [
- "Reddit"
- "S"
- "{subreddit!C}"
- ];
+ "locals().get('is_gallery')" =
+ [ "Reddit" "S" "{subreddit!C}" "{title[:120]!t:?/_/R /_/}{id}" ];
+ "" = [ "Reddit" "S" "{subreddit!C}" ];
};
filename = {
- "locals().get('is_gallery')" = "{title[:120]!t:?/_/R /_/}{id}{num:?_//>02}.{extension}";
+ "locals().get('is_gallery')" =
+ "{title[:120]!t:?/_/R /_/}{id}{num:?_//>02}.{extension}";
"" = "{title[:120]!t:?/_/R /_/}{id}.{extension}";
};
};
diff --git a/share/cfg/hyprland.nix b/share/cfg/hyprland.nix
index b9353ef..629f105 100644
--- a/share/cfg/hyprland.nix
+++ b/share/cfg/hyprland.nix
@@ -17,8 +17,7 @@ let
};
terminal = "kitty";
};
-in
-{
+in {
wayland.windowManager.hyprland = {
extraConfig = ''
$mod = SUPER
@@ -36,22 +35,12 @@ in
# workspaces
# binds $mod + [shift +] {1..10} to [move to] workspace {1..10}
- ${builtins.concatStringsSep "\n" (
- builtins.genList (
- x:
- let
- ws =
- let
- c = (x + 1) / 10;
- in
- builtins.toString (x + 1 - (c * 10));
- in
- ''
- bind = $mod, ${ws}, workspace, ${toString (x + 1)}
- bind = $mod SHIFT, ${ws}, movetoworkspacesilent, ${toString (x + 1)}
- ''
- ) 10
- )}
+ ${builtins.concatStringsSep "\n" (builtins.genList (x:
+ let ws = let c = (x + 1) / 10; in builtins.toString (x + 1 - (c * 10));
+ in ''
+ bind = $mod, ${ws}, workspace, ${toString (x + 1)}
+ bind = $mod SHIFT, ${ws}, movetoworkspacesilent, ${toString (x + 1)}
+ '') 10)}
bind = $mod SHIFT, C, killactive
bind = $mod SHIFT, F, togglefloating
diff --git a/share/cfg/waybar.nix b/share/cfg/waybar.nix
index 7a9fb96..892850a 100644
--- a/share/cfg/waybar.nix
+++ b/share/cfg/waybar.nix
@@ -1,5 +1,4 @@
-{ lib, ... }:
-{
+{ lib, ... }: {
programs.waybar = {
systemd = {
enable = true;
@@ -25,9 +24,7 @@
];
# TODO: fix clock format
- clock = {
- format = "{:%H:%M}";
- };
+ clock = { format = "{:%H:%M}"; };
"battery#capacity" = {
format = lib.concatStringsSep "\n" [ "{icon}" "{capacity}%" ];