mirror of
https://github.com/traxys/Nixfiles.git
synced 2026-04-11 23:13:47 +02:00
personal-gui: Switch from wofi to rofi
This commit is contained in:
parent
d967c6ced6
commit
3f391bdab6
7 changed files with 8 additions and 61 deletions
|
|
@ -52,26 +52,10 @@
|
|||
|
||||
programs.zathura.enable = true;
|
||||
|
||||
home.file = {
|
||||
"bin/ssh-picker" = let
|
||||
ssh_hosts = builtins.attrNames config.programs.ssh.matchBlocks;
|
||||
ssh_specific = builtins.filter (h: !(lib.strings.hasInfix "*" h)) ssh_hosts;
|
||||
ssh_specific_echo = builtins.map (h: "echo ${h}") ssh_specific;
|
||||
|
||||
picker =
|
||||
if config.wm.kind == "sway"
|
||||
then "${pkgs.wofi}/bin/wofi -S dmenu"
|
||||
else "${pkgs.rofi}/bin/rofi -dmenu";
|
||||
in {
|
||||
text = ''
|
||||
#!/usr/bin/env bash
|
||||
|
||||
{
|
||||
${lib.strings.concatStringsSep "\n" ssh_specific_echo}
|
||||
} | ${picker} | xargs ${config.terminal.command} ssh
|
||||
'';
|
||||
executable = true;
|
||||
};
|
||||
programs.rofi = {
|
||||
enable = true;
|
||||
theme = "solarized_alternate";
|
||||
terminal = "${config.terminal.command}";
|
||||
};
|
||||
|
||||
xdg.desktopEntries.zklist = {
|
||||
|
|
|
|||
|
|
@ -175,7 +175,7 @@
|
|||
"${mod}+Return" = "exec ${config.terminal.command}";
|
||||
"${mod}+p" = "mode resize";
|
||||
"${mod}+Shift+P" = "restart";
|
||||
"${mod}+Shift+S" = "exec ~/bin/ssh-picker";
|
||||
"${mod}+Shift+S" = "exec ${config.programs.rofi.package}/bin/rofi -show ssh";
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
|
|||
|
|
@ -89,7 +89,6 @@ in {
|
|||
};
|
||||
|
||||
wm.printScreen.command = mkDefault "${pkgs.maim}/bin/maim -s | ${pkgs.xclip}/bin/xclip -selection clipboard -t image/png";
|
||||
wm.menu.command = mkDefault "${pkgs.rofi}/bin/rofi -modi drun#run#ssh -show drun";
|
||||
wm.exit.command = mkDefault "\"i3-nagbar -t warning -m 'You pressed the exit shortcut. Do you really want to exit i3? This will end your X session.' -B 'Yes, exit i3' 'i3-msg exit'\"";
|
||||
|
||||
xsession = {
|
||||
|
|
|
|||
|
|
@ -86,6 +86,7 @@ with lib; {
|
|||
command = mkOption {
|
||||
type = types.str;
|
||||
description = "Command to launch the menu";
|
||||
default = "${config.programs.rofi.package}/bin/rofi -show drun -show-icons";
|
||||
};
|
||||
};
|
||||
|
||||
|
|
|
|||
|
|
@ -38,6 +38,8 @@ in {
|
|||
LIBSEAT_BACKEND = "logind";
|
||||
};
|
||||
|
||||
programs.rofi.package = pkgs.rofi-wayland;
|
||||
|
||||
services.mako = mkIf cfg.notifications.enable {
|
||||
enable = true;
|
||||
font = cfg.notifications.font;
|
||||
|
|
@ -116,7 +118,6 @@ in {
|
|||
};
|
||||
|
||||
wm.printScreen.command = mkDefault "${pkgs.grim}/bin/grim -g \"$(${pkgs.slurp}/bin/slurp)\" - | ${pkgs.wl-clipboard}/bin/wl-copy -t image/png";
|
||||
wm.menu.command = mkDefault "${pkgs.wofi}/bin/wofi --show drun,run --allow-images";
|
||||
wm.exit.command = mkDefault "exec swaynag -t warning -m 'You pressed the exit shortcut. Do you really want to exit sway? This will end your Wayland session.' -b 'Yes, exit sway' 'swaymsg exit'";
|
||||
|
||||
wayland.windowManager.sway = {
|
||||
|
|
@ -168,12 +169,5 @@ in {
|
|||
assigns = common.assigns;
|
||||
};
|
||||
};
|
||||
|
||||
home.file = {
|
||||
".config/wofi/" = {
|
||||
source = ./wofi;
|
||||
recursive = true;
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1 +0,0 @@
|
|||
width=700
|
||||
|
|
@ -1,30 +0,0 @@
|
|||
/* base16-wofi (https://sr.ht/~knezi/base16-wofi)
|
||||
* Base16 wofi template by knezi
|
||||
* Chalk scheme by Chris Kempson (http://chriskempson.com) */
|
||||
|
||||
window {
|
||||
background-color: #151515;
|
||||
color: #d0d0d0;
|
||||
}
|
||||
|
||||
#entry:nth-child(odd) {
|
||||
background-color: #151515;
|
||||
}
|
||||
|
||||
#entry:nth-child(even) {
|
||||
background-color: #202020;
|
||||
}
|
||||
|
||||
#entry:selected {
|
||||
background-color: #303030;
|
||||
}
|
||||
|
||||
#input {
|
||||
background-color: #202020;
|
||||
color: #b0b0b0;
|
||||
border-color: #303030;
|
||||
}
|
||||
|
||||
#input:focus {
|
||||
border-color: #ddb26f;
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue