1
Fork 0

feat: nice looking rofi

This commit is contained in:
Matei Adriel 2022-05-11 20:08:21 +03:00
parent e368b1ca3d
commit 4635e538dd
9 changed files with 52 additions and 27 deletions

View file

@ -77,6 +77,7 @@
mov (layer-toggle movement)
mathExtra (layer-toggle math-extra)
sft (tap-macro lsft (layer-toggle shiftedQwerty)) ;; make this work differently based on the next key pressed
j (tap-macro 7 lsft)
)
;; more "special" stuff
@ -97,7 +98,7 @@
(deflayer qwerty
esc f1 f2 f3 f4 f5 f6 f7 f8 f9 f10 f11 f12 del
grv 1 2 3 4 5 6 7 8 9 0 - = bspc
grv 1 2 3 4 5 6 @j 8 9 0 - = bspc
tab q w e r t y u i o p [ ] \
@mth a s d f g h j k l ; ' ret
@sft z x c v b n m , . / rsft

View file

@ -4,6 +4,7 @@
./shells
# ./wakatime
./xmonad
./rofi
# ./xmodmap
# ./wine.nix
@ -14,7 +15,6 @@
./locale.nix
# ./memes.nix
./alacritty.nix
./rofi.nix
./postgres.nix
./neovim.nix
./tmux.nix

View file

@ -1,17 +0,0 @@
{ pkgs, ... }:
let
theme = pkgs.myThemes.current;
in
{
home-manager.users.adrielus.programs.rofi = {
enable = true;
font = "Source Code Pro 16";
location = "center";
# padding = 10;
# lines = 7;
# fullscreen = false;
cycle = true;
theme = theme.rofi.theme;
extraConfig = theme.rofi.config;
};
}

View file

@ -0,0 +1,23 @@
{ pkgs, lib, ... }:
let
theme = pkgs.myThemes.current;
rofi = pkgs.rofi.override
{
plugins = with pkgs;[
rofi-power-menu
rofi-calc
rofi-emoji
];
};
in
{
home-manager.users.adrielus = {
home.packages = [ rofi ];
home.file.".local/share/rofi/themes/${theme.name}.rasi".text = builtins.readFile theme.rofi.theme;
xdg.configFile."rofi/config.rasi".text = ''
@import "${./pre.rasi}"
${theme.rofi.config}
'';
};
}

View file

@ -0,0 +1,5 @@
configuration {
location: 0;
cycle: true;
font: "Source Code Pro 16";
}

View file

@ -79,7 +79,8 @@ main =
-- TODO: find a way to bind all the program-opening-keybindings to a single sub-map
keymap =
[ ("M-p", spawn "rofi -show run"),
[ ("M-p", spawn "rofi -show drun"),
("M-w", spawn "rofi -show window"),
("M-g", spawn myBrowser),
("M-d", spawn "Discord"),
("M-v", spawn "alacritty -e vimclip"),

View file

@ -28,8 +28,10 @@ in
gtk.path = null;
xresources = builtins.readFile "${foreign.xresources}/Xresources";
rofi = {
theme = "purple";
config = { };
theme = "${foreign.rofi}/.local/share/rofi/themes/catppuccin.rasi";
config = ''
@import "${foreign.rofi}/.config/rofi/config.rasi"
@import "${./rofi.rasi}"'';
};
alacritty.settings = {
import = [ "${foreign.alacritty}/catppuccin.yml" ];
@ -37,8 +39,6 @@ in
padding = {
x = 0;
y = 0;
# x = 8;
# y = 8;
};
gtk_theme_variant = "dark";

View file

@ -0,0 +1,12 @@
window {
height: 50%;
width: 50%;
}
listview {
columns: 1;
}
element selected {
background-color: #373759;
}

View file

@ -10,9 +10,9 @@ lib.lists.map (theme: pkgs.callPackage theme { }) [
# wallpaper = "os/nix-black-4k.png";
# wallpaper = "landscapes/forrest.png";
# wallpaper = "landscapes/salty_mountains.png";
# wallpaper = "misc/rainbow.png";
wallpaper.foreign = ./wallpapers/eye.png;
transparency = 0.8;
wallpaper = "misc/rainbow.png";
# wallpaper.foreign = ./wallpapers/eye.png;
transparency = 0.93;
})
(githubVariant {
variant = "light";