Compare commits
No commits in common. "9666aa9535d2e21b604a3976814e76365b9e1f42" and "f4655627206f2ac62803b5cb2dcf8839a7927193" have entirely different histories.
9666aa9535
...
f465562720
5 changed files with 159 additions and 35 deletions
|
@ -1,30 +0,0 @@
|
|||
{
|
||||
services.kanshi = {
|
||||
enable = true;
|
||||
settings = [
|
||||
{
|
||||
profile.name = "internal";
|
||||
profile.outputs = [
|
||||
{
|
||||
criteria = "eDP-1";
|
||||
status = "enable";
|
||||
}
|
||||
];
|
||||
}
|
||||
{
|
||||
profile.name = "external";
|
||||
profile.outputs = [
|
||||
{
|
||||
criteria = "eDP-1";
|
||||
status = "disable";
|
||||
}
|
||||
{
|
||||
criteria = "ASUSTek COMPUTER INC VG27AQML1A S5LMQS059959";
|
||||
mode = "2560x1440@240.001007";
|
||||
status = "enable";
|
||||
}
|
||||
];
|
||||
}
|
||||
];
|
||||
};
|
||||
}
|
20
home/applications/rofi/default.nix
Normal file
20
home/applications/rofi/default.nix
Normal file
|
@ -0,0 +1,20 @@
|
|||
{
|
||||
pkgs,
|
||||
lib,
|
||||
...
|
||||
}: {
|
||||
programs.rofi = {
|
||||
enable = true;
|
||||
package = pkgs.rofi-wayland;
|
||||
font = "monospace";
|
||||
terminal = lib.getExe pkgs.foot;
|
||||
};
|
||||
|
||||
home.packages = with pkgs; [rofi-power-menu];
|
||||
|
||||
# Yes, because I have no idea how to use programs.rofi.theme
|
||||
xdg.configFile."rofi" = {
|
||||
source = ./rofi;
|
||||
recursive = true;
|
||||
};
|
||||
}
|
4
home/applications/rofi/rofi/colors.rasi
Normal file
4
home/applications/rofi/rofi/colors.rasi
Normal file
|
@ -0,0 +1,4 @@
|
|||
* {
|
||||
bg: #16161e;
|
||||
fg: #6a6f87;
|
||||
}
|
130
home/applications/rofi/rofi/config.rasi
Normal file
130
home/applications/rofi/rofi/config.rasi
Normal file
|
@ -0,0 +1,130 @@
|
|||
/*
|
||||
* Rofi config file
|
||||
* ~/.config/rofi/config.rasi
|
||||
*
|
||||
* Modified from https://github.com/Sinomor/dots/tree/main/.config/bspwm/rofi
|
||||
* Really clean and cozy dotfiles btw, liked it :D
|
||||
*/
|
||||
|
||||
configuration {
|
||||
display-drun: ">";
|
||||
display-clipboard: ">";
|
||||
drun-display-format: "{name}";
|
||||
modi: "drun";
|
||||
}
|
||||
|
||||
@import "~/.config/rofi/colors.rasi"
|
||||
|
||||
* {
|
||||
font: "JetBrains Mono SemiBold 14";
|
||||
separatorcolor: transparent;
|
||||
border: 0;
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
spacing: 0;
|
||||
}
|
||||
|
||||
window {
|
||||
width: 420px;
|
||||
border-radius: 0;
|
||||
border: 0;
|
||||
padding: 0;
|
||||
background-color: @bg;
|
||||
}
|
||||
|
||||
mainbox {
|
||||
background-color: transparent;
|
||||
children: [inputbar,listview];
|
||||
padding: 10;
|
||||
}
|
||||
|
||||
listview {
|
||||
scrollbar: false;
|
||||
padding: 2 0;
|
||||
background-color: transparent;
|
||||
columns: 1;
|
||||
lines: 6;
|
||||
margin: 8 0 0 0;
|
||||
}
|
||||
|
||||
|
||||
inputbar {
|
||||
children: [prompt, entry];
|
||||
background-color: transparent;
|
||||
border-radius: 0;
|
||||
}
|
||||
|
||||
prompt {
|
||||
background-color: transparent;
|
||||
text-color: @fg;
|
||||
enabled: true;
|
||||
border-radius: 0;
|
||||
padding: 4 10 0 10;
|
||||
}
|
||||
|
||||
entry {
|
||||
background-color: transparent;
|
||||
text-color: @fg;
|
||||
placeholder-color: @fg;
|
||||
border-radius: 0;
|
||||
placeholder: "Search...";
|
||||
blink: false;
|
||||
padding: 4;
|
||||
}
|
||||
|
||||
element {
|
||||
background-color: transparent;
|
||||
padding: 10;
|
||||
border-radius: 0;
|
||||
}
|
||||
|
||||
element-text {
|
||||
background-color: inherit;
|
||||
text-color: inherit;
|
||||
expand: true;
|
||||
horizontal-align: 0;
|
||||
vertical-align: 0.5;
|
||||
}
|
||||
|
||||
element-icon {
|
||||
background-color: inherit;
|
||||
text-color: inherit;
|
||||
padding: 0 10 0 0;
|
||||
}
|
||||
|
||||
element.normal.normal {
|
||||
background-color: transparent;
|
||||
text-color: @fg;
|
||||
}
|
||||
element.normal.urgent {
|
||||
background-color: transparent;
|
||||
text-color: @fg;
|
||||
}
|
||||
element.normal.active {
|
||||
background-color: transparent;
|
||||
text-color: @bg;
|
||||
}
|
||||
element.selected.normal {
|
||||
background-color: @fg;
|
||||
text-color: @bg;
|
||||
}
|
||||
element.selected.urgent {
|
||||
background-color: @fg;
|
||||
text-color: @bg;
|
||||
}
|
||||
element.selected.active {
|
||||
background-color: @fg;
|
||||
text-color: @bg;
|
||||
}
|
||||
element.alternate.normal {
|
||||
background-color: transparent;
|
||||
text-color: @fg;
|
||||
}
|
||||
element.alternate.urgent {
|
||||
background-color: transparent;
|
||||
text-color: @fg;
|
||||
}
|
||||
element.alternate.active {
|
||||
background-color: transparent;
|
||||
text-color: @fg;
|
||||
}
|
|
@ -18,8 +18,8 @@
|
|||
in {
|
||||
imports = [
|
||||
../i3status-rust
|
||||
../kanshi
|
||||
../mako
|
||||
../rofi
|
||||
../swayidle
|
||||
../swaylock
|
||||
];
|
||||
|
@ -123,10 +123,10 @@ in {
|
|||
"${modifier}+w" = "exec ${pkgs.xdg-utils}/bin/xdg-open http:";
|
||||
"${modifier}+e" = "exec ${pkgs.xdg-utils}/bin/xdg-open ~";
|
||||
|
||||
# Launcher
|
||||
"${modifier}+d" = "exec ${lib.getExe' pkgs.wmenu "wmenu-run"}";
|
||||
"${modifier}+Shift+d" = "exec ${lib.getExe pkgs.cliphist} list | ${lib.getExe pkgs.wmenu} -l 10 | ${lib.getExe pkgs.cliphist} decode | ${lib.getExe' pkgs.wl-clipboard "wl-copy"}";
|
||||
"${modifier}+Shift+Semicolon" = "exec loginctl lock-session";
|
||||
# Rofi
|
||||
"${modifier}+d" = "exec rofi -show drun -show-icons -icon-theme ${config.gtk.iconTheme.name}";
|
||||
"${modifier}+Shift+d" = "exec ${lib.getExe pkgs.cliphist} list | rofi -dmenu | ${lib.getExe pkgs.cliphist} decode | ${pkgs.wl-clipboard}/bin/wl-copy";
|
||||
"${modifier}+Shift+Semicolon" = ''exec rofi -modi "power-menu:rofi-power-menu --confirm=reboot/shutdown" -show power-menu'';
|
||||
|
||||
# Screenshot
|
||||
"${modifier}+Shift+s" = "exec ${screenshot} region";
|
||||
|
|
Loading…
Reference in a new issue