added alacritty, foot doesnt support dynamic themeing :c
This commit is contained in:
parent
cf5b772204
commit
79af2ce80f
11 changed files with 184 additions and 137 deletions
|
|
@ -7,7 +7,8 @@
|
||||||
root,
|
root,
|
||||||
system,
|
system,
|
||||||
...
|
...
|
||||||
}: {
|
}:
|
||||||
|
{
|
||||||
imports = [
|
imports = [
|
||||||
inputs.zen.homeModules.twilight
|
inputs.zen.homeModules.twilight
|
||||||
|
|
||||||
|
|
@ -68,7 +69,8 @@
|
||||||
|
|
||||||
fonts.fontconfig.enable = true;
|
fonts.fontconfig.enable = true;
|
||||||
|
|
||||||
home.file.".mozilla/native-messaging-hosts/tridactyl.json".source = "${upkgs.tridactyl-native}/lib/mozilla/native-messaging-hosts/tridactyl.json";
|
home.file.".mozilla/native-messaging-hosts/tridactyl.json".source =
|
||||||
|
"${upkgs.tridactyl-native}/lib/mozilla/native-messaging-hosts/tridactyl.json";
|
||||||
|
|
||||||
# some packages are enabled from their own module in ./modules
|
# some packages are enabled from their own module in ./modules
|
||||||
home.packages = with upkgs; [
|
home.packages = with upkgs; [
|
||||||
|
|
@ -91,7 +93,7 @@
|
||||||
ripgrep # rlly fast grep :3
|
ripgrep # rlly fast grep :3
|
||||||
zip # zips .zip
|
zip # zips .zip
|
||||||
unzip # unzips .zip
|
unzip # unzips .zip
|
||||||
(btop.override {rocmSupport = true;}) # btop + amd gpu support
|
(btop.override { rocmSupport = true; }) # btop + amd gpu support
|
||||||
nmap # network discovery and mapping tool!
|
nmap # network discovery and mapping tool!
|
||||||
distrobox # use any linux distro inside ur terminal x3
|
distrobox # use any linux distro inside ur terminal x3
|
||||||
parted # create, resize, copy, image partitions
|
parted # create, resize, copy, image partitions
|
||||||
|
|
@ -291,6 +293,22 @@
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
alacritty = {
|
||||||
|
enable = true;
|
||||||
|
package = upkgs.alacritty-graphics;
|
||||||
|
|
||||||
|
settings = {
|
||||||
|
general.import = [
|
||||||
|
"theme.toml"
|
||||||
|
];
|
||||||
|
font = {
|
||||||
|
normal.family = "DepartureMono Nerd Font Mono";
|
||||||
|
size = 10;
|
||||||
|
};
|
||||||
|
scrolling.history = 100000;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
zen-browser = {
|
zen-browser = {
|
||||||
enable = true;
|
enable = true;
|
||||||
package = inputs.zen.packages.${system}.twilight;
|
package = inputs.zen.packages.${system}.twilight;
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,5 @@
|
||||||
{upkgs, ...}: {
|
{ upkgs, ... }:
|
||||||
|
{
|
||||||
# optional dependencies can be found here:
|
# optional dependencies can be found here:
|
||||||
# https://yazi-rs.github.io/docs/installation/
|
# https://yazi-rs.github.io/docs/installation/
|
||||||
home.packages = with upkgs; [
|
home.packages = with upkgs; [
|
||||||
|
|
@ -23,12 +24,12 @@
|
||||||
mgr.prepend_keymap = [
|
mgr.prepend_keymap = [
|
||||||
# drag and drop!!
|
# drag and drop!!
|
||||||
{
|
{
|
||||||
on = ["<S-c>"];
|
on = [ "<S-c>" ];
|
||||||
run = ''shell "ripdrag -x -a \"$@\"" --confirm'';
|
run = ''shell "ripdrag -x -a \"$@\"" --confirm'';
|
||||||
}
|
}
|
||||||
# copy hovered file to clipboard
|
# copy hovered file to clipboard
|
||||||
{
|
{
|
||||||
on = ["<S-y>"];
|
on = [ "<S-y>" ];
|
||||||
run = ''shell -- path=%h; echo "file://$path" | wl-copy -t text/uri-list'';
|
run = ''shell -- path=%h; echo "file://$path" | wl-copy -t text/uri-list'';
|
||||||
}
|
}
|
||||||
];
|
];
|
||||||
|
|
@ -170,7 +171,7 @@
|
||||||
[filechooser]
|
[filechooser]
|
||||||
cmd=${upkgs.xdg-desktop-portal-termfilechooser}/share/xdg-desktop-portal-termfilechooser/yazi-wrapper.sh
|
cmd=${upkgs.xdg-desktop-portal-termfilechooser}/share/xdg-desktop-portal-termfilechooser/yazi-wrapper.sh
|
||||||
default_dir=$HOME
|
default_dir=$HOME
|
||||||
env=TERMCMD='foot --title filechooser'
|
env=TERMCMD='alacritty --title filechooser'
|
||||||
open_mode=suggested
|
open_mode=suggested
|
||||||
save_mode=last
|
save_mode=last
|
||||||
'';
|
'';
|
||||||
|
|
|
||||||
|
|
@ -1,2 +1,2 @@
|
||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
pkill -f "foot --title btop -e btop" || { foot --title btop -e btop & disown; }
|
pkill -f "alacritty --title btop -e btop" || { alacritty --title btop -e btop & disown; }
|
||||||
|
|
|
||||||
|
|
@ -0,0 +1,27 @@
|
||||||
|
[colors.primary]
|
||||||
|
background = '{{ background }}'
|
||||||
|
foreground = '{{ foreground }}'
|
||||||
|
|
||||||
|
[colors.cursor]
|
||||||
|
cursor = '{{ cursor }}'
|
||||||
|
text = '{{ cursor }}'
|
||||||
|
|
||||||
|
[colors.normal]
|
||||||
|
black = '{{ color0 }}'
|
||||||
|
red = '{{ color1 }}'
|
||||||
|
green = '{{ color2 }}'
|
||||||
|
yellow = '{{ color3 }}'
|
||||||
|
blue = '{{ color4 }}'
|
||||||
|
magenta = '{{ color5 }}'
|
||||||
|
cyan = '{{ color6 }}'
|
||||||
|
white = '{{ color7 }}'
|
||||||
|
|
||||||
|
[colors.bright]
|
||||||
|
black = '{{ color8 }}'
|
||||||
|
red = '{{ color9 }}'
|
||||||
|
green = '{{ color10 }}'
|
||||||
|
yellow = '{{ color11 }}'
|
||||||
|
blue = '{{ color12 }}'
|
||||||
|
magenta = '{{ color13 }}'
|
||||||
|
cyan = '{{ color14 }}'
|
||||||
|
white = '{{ color15 }}'
|
||||||
|
|
@ -22,6 +22,9 @@ mango.target = "~/.config/mango/colors.conf"
|
||||||
foot.template = "foot-template.ini"
|
foot.template = "foot-template.ini"
|
||||||
foot.target = "~/.config/foot/theme.ini"
|
foot.target = "~/.config/foot/theme.ini"
|
||||||
|
|
||||||
|
alacritty.template = "alacritty-template.toml"
|
||||||
|
alacritty.target = "~/.config/alacritty/theme.toml"
|
||||||
|
|
||||||
waybar.template = "waybar-template.css"
|
waybar.template = "waybar-template.css"
|
||||||
waybar.target = "~/.config/waybar/colors.css"
|
waybar.target = "~/.config/waybar/colors.css"
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,10 +1,19 @@
|
||||||
# window rules
|
# window rules
|
||||||
|
|
||||||
|
# ---------------------------------------------------------------------------- #
|
||||||
|
# terminal - blur
|
||||||
|
windowrule {
|
||||||
|
name = terminal-blur
|
||||||
|
match:class = ^(foot|Alacritty)$
|
||||||
|
match:fullscreen = false
|
||||||
|
opacity = 0.95
|
||||||
|
}
|
||||||
|
|
||||||
# ---------------------------------------------------------------------------- #
|
# ---------------------------------------------------------------------------- #
|
||||||
# task manager
|
# task manager
|
||||||
windowrule {
|
windowrule {
|
||||||
name = task-manager
|
name = terminal-manager
|
||||||
match:class = ^(foot)$
|
match:class = ^(foot|Alacritty)$
|
||||||
match:title = ^(btop)$
|
match:title = ^(btop)$
|
||||||
float = true
|
float = true
|
||||||
center = true
|
center = true
|
||||||
|
|
@ -15,33 +24,13 @@ windowrule {
|
||||||
# terminal filechooser
|
# terminal filechooser
|
||||||
windowrule {
|
windowrule {
|
||||||
name = terminal-filechooser
|
name = terminal-filechooser
|
||||||
match:class = ^(foot)$
|
match:class = ^(foot|Alacritty)$
|
||||||
match:title = ^(filechooser)$
|
match:title = ^(filechooser)$
|
||||||
float = true
|
float = true
|
||||||
center = true
|
center = true
|
||||||
size = (monitor_w*0.85) (monitor_h*0.85)
|
size = (monitor_w*0.85) (monitor_h*0.85)
|
||||||
}
|
}
|
||||||
|
|
||||||
# ---------------------------------------------------------------------------- #
|
|
||||||
# yazi explorer
|
|
||||||
#windowrule {
|
|
||||||
#name = yazi
|
|
||||||
#match:class = ^(foot)$
|
|
||||||
#match:title = ^(yazi)$
|
|
||||||
#float = true
|
|
||||||
#center = true
|
|
||||||
#size = (monitor_w*0.85) (monitor_h*0.85)
|
|
||||||
#}
|
|
||||||
|
|
||||||
# ---------------------------------------------------------------------------- #
|
|
||||||
# foot - blur
|
|
||||||
windowrule {
|
|
||||||
name = foot-blur
|
|
||||||
match:class = ^(foot)$
|
|
||||||
match:fullscreen = false
|
|
||||||
opacity = 0.95
|
|
||||||
}
|
|
||||||
|
|
||||||
# ---------------------------------------------------------------------------- #
|
# ---------------------------------------------------------------------------- #
|
||||||
# imhex - blur
|
# imhex - blur
|
||||||
windowrule {
|
windowrule {
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,5 @@
|
||||||
{...}: {
|
{ ... }:
|
||||||
|
{
|
||||||
wayland.windowManager.hyprland = {
|
wayland.windowManager.hyprland = {
|
||||||
enable = true;
|
enable = true;
|
||||||
package = null;
|
package = null;
|
||||||
|
|
@ -23,8 +24,8 @@
|
||||||
"$mod" = "SUPER";
|
"$mod" = "SUPER";
|
||||||
|
|
||||||
# applications
|
# applications
|
||||||
"$terminal" = "foot";
|
"$terminal" = "alacritty";
|
||||||
"$explorer" = "foot -e yazi";
|
"$explorer" = "alacritty -e yazi";
|
||||||
"$browser" = "zen-twilight";
|
"$browser" = "zen-twilight";
|
||||||
|
|
||||||
# menu
|
# menu
|
||||||
|
|
@ -278,15 +279,15 @@
|
||||||
];
|
];
|
||||||
|
|
||||||
layerrule = [
|
layerrule = [
|
||||||
#"blur, aurorashell"
|
#"blur, aurorashell"
|
||||||
#"ignorealpha 0.7, aurorashell"
|
#"ignorealpha 0.7, aurorashell"
|
||||||
|
|
||||||
"blur on, match:namespace waybar"
|
"blur on, match:namespace waybar"
|
||||||
"ignore_alpha 0, match:namespace waybar"
|
"ignore_alpha 0, match:namespace waybar"
|
||||||
|
|
||||||
"blur on, match:namespace rofi"
|
"blur on, match:namespace rofi"
|
||||||
"xray on, match:namespace rofi"
|
"xray on, match:namespace rofi"
|
||||||
"ignore_alpha 0, match:namespace rofi"
|
"ignore_alpha 0, match:namespace rofi"
|
||||||
];
|
];
|
||||||
|
|
||||||
env = [
|
env = [
|
||||||
|
|
|
||||||
|
|
@ -73,8 +73,8 @@ accel_profile = 0
|
||||||
################################################################################
|
################################################################################
|
||||||
|
|
||||||
# applications
|
# applications
|
||||||
bind = SUPER, t, spawn, foot
|
bind = SUPER, t, spawn, alacritty
|
||||||
bind = SUPER, e, spawn, foot -e yazi
|
bind = SUPER, e, spawn, alacritty -e yazi
|
||||||
bind = SUPER, r, spawn, zen-twilight
|
bind = SUPER, r, spawn, zen-twilight
|
||||||
|
|
||||||
# rofi
|
# rofi
|
||||||
|
|
|
||||||
|
|
@ -1,3 +1,3 @@
|
||||||
# ---------------------------------------------------------------------------- #
|
# ---------------------------------------------------------------------------- #
|
||||||
# foot - blur
|
# terminal - blur
|
||||||
windowrule=focused_opacity:0.95,unfocused_opacity:0.95,appid:^(foot)$
|
windowrule=focused_opacity:0.95,unfocused_opacity:0.95,appid:^(foot|alacritty)$
|
||||||
|
|
|
||||||
|
|
@ -1,79 +1,84 @@
|
||||||
{spkgs, ...}: {
|
{ spkgs, ... }:
|
||||||
wayland.windowManager.river = let
|
{
|
||||||
layout = "rivertile";
|
wayland.windowManager.river =
|
||||||
in {
|
let
|
||||||
enable = true;
|
layout = "rivertile";
|
||||||
xwayland.enable = true;
|
in
|
||||||
package = spkgs.river-classic; # FIX: using spkgs version as zls is broken rn ;-;
|
{
|
||||||
|
enable = true;
|
||||||
|
xwayland.enable = true;
|
||||||
|
package = spkgs.river-classic; # FIX: using spkgs version as zls is broken rn ;-;
|
||||||
|
|
||||||
settings = let
|
settings =
|
||||||
main = "Super";
|
let
|
||||||
|
main = "Super";
|
||||||
|
|
||||||
# applications
|
# applications
|
||||||
terminal = "foot";
|
terminal = "alacritty";
|
||||||
browser = "firefox";
|
browser = "firefox";
|
||||||
in {
|
in
|
||||||
default-layout = "${layout}";
|
{
|
||||||
output-layout = "${layout}";
|
default-layout = "${layout}";
|
||||||
border-width = 1;
|
output-layout = "${layout}";
|
||||||
|
border-width = 1;
|
||||||
|
|
||||||
spawn = [
|
spawn = [
|
||||||
''${layout}''
|
"${layout}"
|
||||||
|
|
||||||
"awww-daemon"
|
"awww-daemon"
|
||||||
"waybar"
|
"waybar"
|
||||||
];
|
];
|
||||||
|
|
||||||
map.normal = {
|
map.normal = {
|
||||||
"${main} C" = "close"; # close focused window
|
"${main} C" = "close"; # close focused window
|
||||||
"${main}+Alt Delete" = "exit"; # exit river
|
"${main}+Alt Delete" = "exit"; # exit river
|
||||||
|
|
||||||
# app launcher
|
# app launcher
|
||||||
"${main} D" = ''spawn "pkill -x rofi || rofi -show drun -show-icons"'';
|
"${main} D" = ''spawn "pkill -x rofi || rofi -show drun -show-icons"'';
|
||||||
"Alt Tab" = ''spawn "pkill -x rofi || rofi -modi window -show window -show-icons"'';
|
"Alt Tab" = ''spawn "pkill -x rofi || rofi -modi window -show window -show-icons"'';
|
||||||
|
|
||||||
# spawn applications
|
# spawn applications
|
||||||
"${main} T" = ''spawn "${terminal}"'';
|
"${main} T" = ''spawn "${terminal}"'';
|
||||||
"${main} R" = ''spawn "${browser}"'';
|
"${main} R" = ''spawn "${browser}"'';
|
||||||
|
|
||||||
# move focused view to top of layout stack
|
# move focused view to top of layout stack
|
||||||
"${main} N" = ''zoom'';
|
"${main} N" = "zoom";
|
||||||
|
|
||||||
# focus next/previous view
|
# focus next/previous view
|
||||||
"${main} J" = "focus-view previous";
|
"${main} J" = "focus-view previous";
|
||||||
"${main} K" = "focus-view next";
|
"${main} K" = "focus-view next";
|
||||||
# move to next/previous output
|
# move to next/previous output
|
||||||
"${main} H" = "focus-output previous";
|
"${main} H" = "focus-output previous";
|
||||||
"${main} L" = "focus-output next";
|
"${main} L" = "focus-output next";
|
||||||
|
|
||||||
# swap next/previous view
|
# swap next/previous view
|
||||||
"${main}+Alt J" = "swap previous";
|
"${main}+Alt J" = "swap previous";
|
||||||
"${main}+Alt K" = "swap next";
|
"${main}+Alt K" = "swap next";
|
||||||
# send view to next/previous output
|
# send view to next/previous output
|
||||||
# and switch to that output (wip)
|
# and switch to that output (wip)
|
||||||
"${main}+Alt H" = "send-to-output previous";
|
"${main}+Alt H" = "send-to-output previous";
|
||||||
#"${main}+Alt H" = "focus-output previous";
|
#"${main}+Alt H" = "focus-output previous";
|
||||||
"${main}+Alt L" = "send-to-output next";
|
"${main}+Alt L" = "send-to-output next";
|
||||||
#"${main}+Alt L" = "focus-output next";
|
#"${main}+Alt L" = "focus-output next";
|
||||||
|
|
||||||
# move views
|
# move views
|
||||||
#"${main}+Alt H" = "move left 100";
|
#"${main}+Alt H" = "move left 100";
|
||||||
#"${main}+Alt J" = "move down 100";
|
#"${main}+Alt J" = "move down 100";
|
||||||
#"${main}+Alt K" = "move up 100";
|
#"${main}+Alt K" = "move up 100";
|
||||||
#"${main}+Alt L" = "move right 100";
|
#"${main}+Alt L" = "move right 100";
|
||||||
|
|
||||||
# snap views
|
# snap views
|
||||||
#"${main}+Control H" = "snap left";
|
#"${main}+Control H" = "snap left";
|
||||||
#"${main}+Control J" = "snap down";
|
#"${main}+Control J" = "snap down";
|
||||||
#"${main}+Control K" = "snap up";
|
#"${main}+Control K" = "snap up";
|
||||||
#"${main}+Control L" = "snap right";
|
#"${main}+Control L" = "snap right";
|
||||||
|
|
||||||
# resize views
|
# resize views
|
||||||
#"${main}+Shift H" = "resize horizontal -100";
|
#"${main}+Shift H" = "resize horizontal -100";
|
||||||
#"${main}+Shift J" = "resize vertical -100";
|
#"${main}+Shift J" = "resize vertical -100";
|
||||||
#"${main}+Shift K" = "resize vertical 100";
|
#"${main}+Shift K" = "resize vertical 100";
|
||||||
#"${main}+Shift L" = "resize horizontal 100";
|
#"${main}+Shift L" = "resize horizontal 100";
|
||||||
};
|
};
|
||||||
|
};
|
||||||
};
|
};
|
||||||
};
|
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -1,49 +1,52 @@
|
||||||
{config, ...}: {
|
{ config, ... }:
|
||||||
|
{
|
||||||
wayland.windowManager.sway = {
|
wayland.windowManager.sway = {
|
||||||
enable = true;
|
enable = true;
|
||||||
config = rec {
|
config = rec {
|
||||||
modifier = "Mod4"; # Mod4 = Super/Meta
|
modifier = "Mod4"; # Mod4 = Super/Meta
|
||||||
terminal = "foot";
|
terminal = "alacritty";
|
||||||
|
|
||||||
# disable sway bar
|
# disable sway bar
|
||||||
bars = [];
|
bars = [ ];
|
||||||
|
|
||||||
# set border colors
|
# set border colors
|
||||||
#colors = {
|
#colors = {
|
||||||
#focused =
|
#focused =
|
||||||
|
|
||||||
startup = [
|
startup = [
|
||||||
{command = "awww-daemon";}
|
{ command = "awww-daemon"; }
|
||||||
{command = "waybar";}
|
{ command = "waybar"; }
|
||||||
];
|
];
|
||||||
|
|
||||||
keybindings = let
|
keybindings =
|
||||||
main = config.wayland.windowManager.sway.config.modifier;
|
let
|
||||||
terminal = config.wayland.windowManager.sway.config.terminal;
|
main = config.wayland.windowManager.sway.config.modifier;
|
||||||
browser = "firefox";
|
terminal = config.wayland.windowManager.sway.config.terminal;
|
||||||
in {
|
browser = "firefox";
|
||||||
"${main}+c" = "kill"; # close focused window
|
in
|
||||||
"${main}+Alt+Delete" = "exit"; # exit sway
|
{
|
||||||
|
"${main}+c" = "kill"; # close focused window
|
||||||
|
"${main}+Alt+Delete" = "exit"; # exit sway
|
||||||
|
|
||||||
# open launcher
|
# open launcher
|
||||||
"${main}+d" = "exec pkill -x rofi || rofi -show drun -show-icons";
|
"${main}+d" = "exec pkill -x rofi || rofi -show drun -show-icons";
|
||||||
"Alt+Tab" = "exec pkill -x rofi || rofi -modi window -show window -show-icons";
|
"Alt+Tab" = "exec pkill -x rofi || rofi -modi window -show window -show-icons";
|
||||||
|
|
||||||
"${main}+t" = "exec ${terminal}"; # open terminal
|
"${main}+t" = "exec ${terminal}"; # open terminal
|
||||||
"${main}+r" = "exec ${browser}"; # open browser
|
"${main}+r" = "exec ${browser}"; # open browser
|
||||||
|
|
||||||
# move focus
|
# move focus
|
||||||
"${main}+h" = "focus left";
|
"${main}+h" = "focus left";
|
||||||
"${main}+j" = "focus down";
|
"${main}+j" = "focus down";
|
||||||
"${main}+k" = "focus up";
|
"${main}+k" = "focus up";
|
||||||
"${main}+l" = "focus right";
|
"${main}+l" = "focus right";
|
||||||
|
|
||||||
# move focused window
|
# move focused window
|
||||||
"${main}+Alt+h" = "move left";
|
"${main}+Alt+h" = "move left";
|
||||||
"${main}+Alt+j" = "move down";
|
"${main}+Alt+j" = "move down";
|
||||||
"${main}+Alt+k" = "move up";
|
"${main}+Alt+k" = "move up";
|
||||||
"${main}+Alt+l" = "move right";
|
"${main}+Alt+l" = "move right";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue