1
Fork 0

feat: rofi

This commit is contained in:
Matei Adriel 2020-04-20 16:44:24 +03:00
parent c7069236cf
commit 34930f1628
6 changed files with 46 additions and 31 deletions

View file

@ -9,5 +9,7 @@
./locale.nix ./locale.nix
./memes.nix ./memes.nix
./alacritty.nix ./alacritty.nix
./rofi.nix
]; ];
} }

View file

@ -0,0 +1,12 @@
{ ... }: {
home-manager.users.adrielus.programs.rofi = {
enable = true;
font = "Source Code Pro 16";
location = "center";
padding = 10;
lines = 7;
fullscreen = false;
cycle = true;
theme = "solarized_alternate";
};
}

View file

@ -6,16 +6,15 @@
config = ./xmonad.hs; config = ./xmonad.hs;
}; };
programs.rofi = {
enable = true;
font = "Source Code Pro 16";
location = "center";
padding = 10;
lines = 7;
fullscreen = false;
};
home.file.".config/plasma-workspace/env/set_window_manager.sh".text = home.file.".config/plasma-workspace/env/set_window_manager.sh".text =
"export KDEWM=/home/adrielus/.nix-profile/bin/xmonad"; "export KDEWM=/home/adrielus/.nix-profile/bin/xmonad";
}; };
# services.compton = {
# enable = true;
# activeOpacity = "0.8";
# inactiveOpacity = "0.8";
# fade = true;
# shadow = true;
# };
} }

View file

@ -11,9 +11,10 @@ import XMonad.Hooks.ManageDocks
main = main =
xmonad xmonad
$ docks $ docks
$ kdeConfig { modMask = mod4Mask $ kdeConfig
{ modMask = mod4Mask
, layoutHook = myLayoutHook , layoutHook = myLayoutHook
, manageHook = myManagerHook <+> manageHook kdeConfig , manageHook = manageDocks <+> myManagerHook <+> manageHook kdeConfig
, terminal = myTerminal , terminal = myTerminal
} }
`additionalKeys` keymap `additionalKeys` keymap
@ -37,7 +38,7 @@ main =
composeAll [ className =? name --> doFloat | name <- kdeFloats ] composeAll [ className =? name --> doFloat | name <- kdeFloats ]
myTerminal = "alacritty" myTerminal = "alacritty"
keymap = [((mod4Mask, xK_P), spawn "rofi -show run")] keymap = [((mod4Mask, xK_p), spawn "rofi -show run")]
uniformBorder = join $ join $ join Border uniformBorder = join $ join $ join Border
border = uniformBorder 4 border = uniformBorder 4

View file

@ -20,6 +20,7 @@ in {
# unstable stuff # unstable stuff
brave = unstable.brave; brave = unstable.brave;
ghc = unstable.ghc; ghc = unstable.ghc;
vscodium = unstable.vscodium;
}) })
]; ];

View file

@ -5,10 +5,10 @@
"homepage": "", "homepage": "",
"owner": "nix-community", "owner": "nix-community",
"repo": "NUR", "repo": "NUR",
"rev": "d28e8f7d40e2683d57589f8ffa7568bdf89d316f", "rev": "7f6ed1ca162507f20b4d98472f17492df2cd91c3",
"sha256": "0pfafab0bfs4zcld41awamwz6wn3snw1p9h2aid6pgxkbrm9r5sx", "sha256": "1prbprnmhaib69ppirimwiwbz5zkqllqf9v0prrnb2yq403df0y2",
"type": "tarball", "type": "tarball",
"url": "https://github.com/nix-community/NUR/archive/d28e8f7d40e2683d57589f8ffa7568bdf89d316f.tar.gz", "url": "https://github.com/nix-community/NUR/archive/7f6ed1ca162507f20b4d98472f17492df2cd91c3.tar.gz",
"url_template": "https://github.com/<owner>/<repo>/archive/<rev>.tar.gz" "url_template": "https://github.com/<owner>/<repo>/archive/<rev>.tar.gz"
}, },
"agnoster": { "agnoster": {
@ -41,10 +41,10 @@
"homepage": "", "homepage": "",
"owner": "xzfc", "owner": "xzfc",
"repo": "cached-nix-shell", "repo": "cached-nix-shell",
"rev": "94e4eb97aa84e1e9c4ecb5ebe2b08b9da22df2a2", "rev": "0e73944dc31132d2aa9a769f4cc677eea6984bec",
"sha256": "0pzwknpc4qrh9pv5z0xvldql2dkj9ddksvaci86a4f8cnd86p2l6", "sha256": "1hzrjvxk9rpqdxw0v27ngn5k3andm1xfkak4ly75x6gxwgb5mdw5",
"type": "tarball", "type": "tarball",
"url": "https://github.com/xzfc/cached-nix-shell/archive/94e4eb97aa84e1e9c4ecb5ebe2b08b9da22df2a2.tar.gz", "url": "https://github.com/xzfc/cached-nix-shell/archive/0e73944dc31132d2aa9a769f4cc677eea6984bec.tar.gz",
"url_template": "https://github.com/<owner>/<repo>/archive/<rev>.tar.gz" "url_template": "https://github.com/<owner>/<repo>/archive/<rev>.tar.gz"
}, },
"easy-purescript-nix": { "easy-purescript-nix": {
@ -65,10 +65,10 @@
"homepage": "https://rycee.gitlab.io/home-manager/", "homepage": "https://rycee.gitlab.io/home-manager/",
"owner": "rycee", "owner": "rycee",
"repo": "home-manager", "repo": "home-manager",
"rev": "0d1ca254d0f213a118459c5be8ae465018132f74", "rev": "b78b5fa4a073dfcdabdf0deb9a8cfd56050113be",
"sha256": "0sw8lw825gg04h6js42bvackgydi5m0xsjvnb5gxlqv45qw8rxjq", "sha256": "03w8fy9shw42kv1pcqq0vkmm54nw3gdpjqd2yncgn0926sacgdnp",
"type": "tarball", "type": "tarball",
"url": "https://github.com/rycee/home-manager/archive/0d1ca254d0f213a118459c5be8ae465018132f74.tar.gz", "url": "https://github.com/rycee/home-manager/archive/b78b5fa4a073dfcdabdf0deb9a8cfd56050113be.tar.gz",
"url_template": "https://github.com/<owner>/<repo>/archive/<rev>.tar.gz" "url_template": "https://github.com/<owner>/<repo>/archive/<rev>.tar.gz"
}, },
"niv": { "niv": {
@ -89,10 +89,10 @@
"homepage": "https://github.com/NixOS/nixpkgs", "homepage": "https://github.com/NixOS/nixpkgs",
"owner": "NixOS", "owner": "NixOS",
"repo": "nixpkgs-channels", "repo": "nixpkgs-channels",
"rev": "e10c65cdb35b6a66491e47e5a85f5d456b4f4eea", "rev": "b67bc34d4e3de1e89b8bb7cd6e375ba44f1ae8ca",
"sha256": "19csb2s3wyav83zcw9dw488zk2fnz6wcxxz8q6hy43dbph86hxwm", "sha256": "1q9a64bl5afflgpa2iaw1q7z7s08c8xq9w6lndlnc5c3siajrp8v",
"type": "tarball", "type": "tarball",
"url": "https://github.com/NixOS/nixpkgs-channels/archive/e10c65cdb35b6a66491e47e5a85f5d456b4f4eea.tar.gz", "url": "https://github.com/NixOS/nixpkgs-channels/archive/b67bc34d4e3de1e89b8bb7cd6e375ba44f1ae8ca.tar.gz",
"url_template": "https://github.com/<owner>/<repo>/archive/<rev>.tar.gz" "url_template": "https://github.com/<owner>/<repo>/archive/<rev>.tar.gz"
}, },
"nixpkgs-unstable": { "nixpkgs-unstable": {
@ -101,10 +101,10 @@
"homepage": "https://github.com/NixOS/nixpkgs", "homepage": "https://github.com/NixOS/nixpkgs",
"owner": "nixos", "owner": "nixos",
"repo": "nixpkgs-channels", "repo": "nixpkgs-channels",
"rev": "9b0d2f3fd153167b0c8ce84bb71e766a39ed4c9d", "rev": "b61999e4ad60c351b4da63ae3ff43aae3c0bbdfb",
"sha256": "0yyr83zdaa04v8dsla28pk0nqnihxzkgfr8j0m3prgj2w4gd9ajz", "sha256": "0cggpdks4qscyirqwfprgdl91mlhjlw24wkg0riapk5f2g2llbpq",
"type": "tarball", "type": "tarball",
"url": "https://github.com/nixos/nixpkgs-channels/archive/9b0d2f3fd153167b0c8ce84bb71e766a39ed4c9d.tar.gz", "url": "https://github.com/nixos/nixpkgs-channels/archive/b61999e4ad60c351b4da63ae3ff43aae3c0bbdfb.tar.gz",
"url_template": "https://github.com/<owner>/<repo>/archive/<rev>.tar.gz" "url_template": "https://github.com/<owner>/<repo>/archive/<rev>.tar.gz"
}, },
"snack": { "snack": {