added compositor to enable transparency.

This commit is contained in:
Gabe Venberg 2024-04-05 13:00:08 -05:00
parent faae2bb604
commit 96d0c67570
8 changed files with 73 additions and 8 deletions

View file

@ -38,11 +38,22 @@
modifier = mod;
terminal = "kitty";
menu = "rofi -show drun";
defaultWorkspace = "workspace ${ws1}";
keybindings = {
"${mod}+Return" = "exec ${config.xsession.windowManager.i3.config.terminal}";
"${mod}+d" = "exec ${config.xsession.windowManager.i3.config.menu}";
"${mod}+Shift+q" = "kill";
"${mod}+h" = "focus left";
"${mod}+j" = "focus down";
"${mod}+k" = "focus up";
"${mod}+l" = "focus right";
"${mod}+Shift+h" = "move left";
"${mod}+Shift+j" = "move down";
"${mod}+Shift+k" = "move up";
"${mod}+Shift+l" = "move right";
"${mod}+Left" = "focus left";
"${mod}+Down" = "focus down";
"${mod}+Up" = "focus up";
@ -53,8 +64,8 @@
"${mod}+Shift+Up" = "move up";
"${mod}+Shift+Right" = "move right";
"${mod}+h" = "split h";
"${mod}+v" = "split v";
"${mod}+Shift+semicolon" = "split v";
"${mod}+Shift+backslash" = "split h";
"${mod}+f" = "fullscreen toggle";
"${mod}+e" = "layout stacking";
@ -170,6 +181,8 @@
};
gaps = {
inner = 5;
smartBorders = "on";
smartGaps = true;
};
fonts = {
names = ["Fira Code"];
@ -183,12 +196,20 @@
{class = "helvum";}
];
};
startup = [
{
command = "~/.fehbg";
notification = false;
}
];
};
};
imports = [
../../home-manager/kitty.nix
../../home-manager/rofi.nix
../../home-manager/dunst.nix
../../home-manager/feh.nix
../../home-manager/picom.nix
];
};
imports = [

View file

@ -11,7 +11,7 @@
font = "Fira Code";
follow = "keyboard";
origin = "top-right";
transparency = 5;
transparency = 20;
padding = 6;
horizontal_padding = 6;
};
@ -20,6 +20,7 @@
# Otherwise the "#" and following would be interpreted as a comment.
frame_color = "#3B7C87";
foreground = "#3B7C87";
highlight = "#3B7C87";
background = "#191311";
#background = "#2B313C"
timeout = 4;
@ -30,6 +31,7 @@
urgency_normal = {
frame_color = "#5B8234";
foreground = "#5B8234";
highlight = "#5B8234";
background = "#191311";
#background = "#2B313C"
timeout = 6;
@ -40,6 +42,7 @@
urgency_critical = {
frame_color = "#B7472A";
foreground = "#B7472A";
highlight = "#B7472A";
background = "#191311";
#background = "#2B313C"
timeout = 8;

View file

@ -0,0 +1,16 @@
{
config,
pkgs,
lib,
...
}: {
programs.feh.enable = true;
programs.nushell.extraConfig = ''
# display a slideshow of all pics in a directory, recursively
def slideshow [delay: int = 10] {
feh --full-screen --randomize --auto-zoom --recursive --slideshow-delay $delay
}
'';
programs.zsh.shellAliases. slideshow = "feh --full-screen --randomize --auto-zoom --recursive --slideshow-delay";
}

View file

@ -11,5 +11,8 @@
name = "Fira Code";
};
theme = "Gruvbox Dark";
settings={
background_opacity="0.8";
};
};
}

View file

@ -0,0 +1,9 @@
{
config,
pkgs,
lib,
...
}: {
services.nextcloud-client.enable = true;
services.gnome-keyring.enable = true;
}

View file

@ -0,0 +1,18 @@
{
config,
pkgs,
lib,
...
}: {
services.picom = {
enable = true;
# backend = "glx";
};
xsession.windowManager.i3.config.startup = [
{
command = "systemctl --user restart picom";
always = true;
notification = false;
}
];
}

View file

@ -39,10 +39,6 @@ alias doc2pdf = loffice --convert-to pdf --headless *.docx
#common options for sshfs
alias sshmnt = sshfs -o idmap=user,compression=no,reconnect,follow_symlinks,dir_cache=yes,ServerAliveInterval=15
# display a slideshow of all pics in a directory, recursively
def slideshow [delay: int = 10] {
feh --full-screen --randomize --auto-zoom --recursive --slideshow-delay $delay
}
#look up something on cheat.sh
def cheat [query: string] {

View file

@ -23,7 +23,6 @@
ll = "ls -lh";
la = "-lha";
please = "sudo $(fc -ln -1)";
slideshow = "feh --full-screen --randomize --auto-zoom --recursive --slideshow-delay";
pyactivate = "source ./.venv/bin/activate";
};
syntaxHighlighting = {