feat: nice looking rofi
This commit is contained in:
parent
e368b1ca3d
commit
4635e538dd
|
@ -77,6 +77,7 @@
|
||||||
mov (layer-toggle movement)
|
mov (layer-toggle movement)
|
||||||
mathExtra (layer-toggle math-extra)
|
mathExtra (layer-toggle math-extra)
|
||||||
sft (tap-macro lsft (layer-toggle shiftedQwerty)) ;; make this work differently based on the next key pressed
|
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
|
;; more "special" stuff
|
||||||
|
@ -97,7 +98,7 @@
|
||||||
|
|
||||||
(deflayer qwerty
|
(deflayer qwerty
|
||||||
esc f1 f2 f3 f4 f5 f6 f7 f8 f9 f10 f11 f12 del
|
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 [ ] \
|
tab q w e r t y u i o p [ ] \
|
||||||
@mth a s d f g h j k l ; ' ret
|
@mth a s d f g h j k l ; ' ret
|
||||||
@sft z x c v b n m , . / rsft
|
@sft z x c v b n m , . / rsft
|
||||||
|
|
|
@ -4,6 +4,7 @@
|
||||||
./shells
|
./shells
|
||||||
# ./wakatime
|
# ./wakatime
|
||||||
./xmonad
|
./xmonad
|
||||||
|
./rofi
|
||||||
# ./xmodmap
|
# ./xmodmap
|
||||||
|
|
||||||
# ./wine.nix
|
# ./wine.nix
|
||||||
|
@ -14,7 +15,6 @@
|
||||||
./locale.nix
|
./locale.nix
|
||||||
# ./memes.nix
|
# ./memes.nix
|
||||||
./alacritty.nix
|
./alacritty.nix
|
||||||
./rofi.nix
|
|
||||||
./postgres.nix
|
./postgres.nix
|
||||||
./neovim.nix
|
./neovim.nix
|
||||||
./tmux.nix
|
./tmux.nix
|
||||||
|
|
|
@ -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;
|
|
||||||
};
|
|
||||||
}
|
|
23
modules/applications/rofi/default.nix
Normal file
23
modules/applications/rofi/default.nix
Normal 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}
|
||||||
|
'';
|
||||||
|
};
|
||||||
|
}
|
5
modules/applications/rofi/pre.rasi
Normal file
5
modules/applications/rofi/pre.rasi
Normal file
|
@ -0,0 +1,5 @@
|
||||||
|
configuration {
|
||||||
|
location: 0;
|
||||||
|
cycle: true;
|
||||||
|
font: "Source Code Pro 16";
|
||||||
|
}
|
|
@ -79,7 +79,8 @@ main =
|
||||||
|
|
||||||
-- TODO: find a way to bind all the program-opening-keybindings to a single sub-map
|
-- TODO: find a way to bind all the program-opening-keybindings to a single sub-map
|
||||||
keymap =
|
keymap =
|
||||||
[ ("M-p", spawn "rofi -show run"),
|
[ ("M-p", spawn "rofi -show drun"),
|
||||||
|
("M-w", spawn "rofi -show window"),
|
||||||
("M-g", spawn myBrowser),
|
("M-g", spawn myBrowser),
|
||||||
("M-d", spawn "Discord"),
|
("M-d", spawn "Discord"),
|
||||||
("M-v", spawn "alacritty -e vimclip"),
|
("M-v", spawn "alacritty -e vimclip"),
|
||||||
|
|
|
@ -28,8 +28,10 @@ in
|
||||||
gtk.path = null;
|
gtk.path = null;
|
||||||
xresources = builtins.readFile "${foreign.xresources}/Xresources";
|
xresources = builtins.readFile "${foreign.xresources}/Xresources";
|
||||||
rofi = {
|
rofi = {
|
||||||
theme = "purple";
|
theme = "${foreign.rofi}/.local/share/rofi/themes/catppuccin.rasi";
|
||||||
config = { };
|
config = ''
|
||||||
|
@import "${foreign.rofi}/.config/rofi/config.rasi"
|
||||||
|
@import "${./rofi.rasi}"'';
|
||||||
};
|
};
|
||||||
alacritty.settings = {
|
alacritty.settings = {
|
||||||
import = [ "${foreign.alacritty}/catppuccin.yml" ];
|
import = [ "${foreign.alacritty}/catppuccin.yml" ];
|
||||||
|
@ -37,8 +39,6 @@ in
|
||||||
padding = {
|
padding = {
|
||||||
x = 0;
|
x = 0;
|
||||||
y = 0;
|
y = 0;
|
||||||
# x = 8;
|
|
||||||
# y = 8;
|
|
||||||
};
|
};
|
||||||
|
|
||||||
gtk_theme_variant = "dark";
|
gtk_theme_variant = "dark";
|
||||||
|
|
12
modules/themes/catppuccin/rofi.rasi
Normal file
12
modules/themes/catppuccin/rofi.rasi
Normal file
|
@ -0,0 +1,12 @@
|
||||||
|
window {
|
||||||
|
height: 50%;
|
||||||
|
width: 50%;
|
||||||
|
}
|
||||||
|
|
||||||
|
listview {
|
||||||
|
columns: 1;
|
||||||
|
}
|
||||||
|
|
||||||
|
element selected {
|
||||||
|
background-color: #373759;
|
||||||
|
}
|
|
@ -10,9 +10,9 @@ lib.lists.map (theme: pkgs.callPackage theme { }) [
|
||||||
# wallpaper = "os/nix-black-4k.png";
|
# wallpaper = "os/nix-black-4k.png";
|
||||||
# wallpaper = "landscapes/forrest.png";
|
# wallpaper = "landscapes/forrest.png";
|
||||||
# wallpaper = "landscapes/salty_mountains.png";
|
# wallpaper = "landscapes/salty_mountains.png";
|
||||||
# wallpaper = "misc/rainbow.png";
|
wallpaper = "misc/rainbow.png";
|
||||||
wallpaper.foreign = ./wallpapers/eye.png;
|
# wallpaper.foreign = ./wallpapers/eye.png;
|
||||||
transparency = 0.8;
|
transparency = 0.93;
|
||||||
})
|
})
|
||||||
(githubVariant {
|
(githubVariant {
|
||||||
variant = "light";
|
variant = "light";
|
||||||
|
|
Loading…
Reference in a new issue