This commit is contained in:
ant 2024-03-31 07:54:18 +02:00
parent 7b9199c542
commit 0aac48f782
6 changed files with 101 additions and 79 deletions

View file

@ -1,22 +1,20 @@
* {
border: none;
border-radius: 0;
background: rgba(0, 0, 0, 0);
/* font-family: "CartographCF italic"; */
font-family: "Material Design Icons", Roboto;
font-family: "Material Design Icons", Monospace;
/* font-family: "Roboto"; */
font-weight: bold;
font-size: 14px;
min-height: 0;
}
tooltip {
background: #000000;
/* border-radius: 10px; */
border-width: 2px;
border-style: solid;
border-color: #222222;
}
/* tooltip { */
/* background: #000000; */
/* border-width: 2px; */
/* border-style: solid; */
/* border-color: #222222; */
/* } */
#custom-language,
#idle_inhibitor,
@ -49,65 +47,57 @@ tooltip {
/* margin-right: 3px; */
/* margin-left: 3px; */
/* border: 1px solid #000000; */
border-radius: 14px;
margin: 0px 4px 0px 4px;
}
#workspaces {
padding: 0;
margin-left: 0;
margin-right: 0;
border-radius: 0;
/* margin-left: 0; */
/* margin-right: 0; */
}
#workspaces button {
padding: 4px;
color: #aaaaaa;
border-radius: 16px
}
#workspaces button.active {
color: #ffffff;
border-radius: 20px;
background: #0f0f0f;
}
#workspaces button.focused {
/* color: #a6adc8; */
border-radius: 0px;
background: #eba0ac;
/* border-radius: 10px; */
}
#workspaces button.urgent {
/* color: #11111b; */
background: #a6e3a1;
/* border-radius: 10px; */
}
#workspaces button:hover {
background: #11111b;
border-radius: 0px;
/* color: #cdd6f4; */
/* border-radius: 10px; */
}
#pulseaudio.speaker {
/* color: #89b4fa; */
/* border-radius: 10px 0 0 10px; */
margin-left: 0;
margin-right: 0;
border-radius: 0;
}
#pulseaudio.microphone {
/* color: #cba6f7; */
margin-left: 0;
margin-right: 0;
border-radius: 0;
}
#idle_inhibitor {
margin-left: 0;
margin-right: 0;
border-radius: 0;
}
#backlight {
border-radius: 0 14px 14px 0;
margin-left: 0;
}
@ -119,46 +109,32 @@ tooltip {
/* #mpris { */
/* border-radius: 10px; */
/* font-family: "CartographCF italic"; */
/* } */
#tray {
border-radius: 0;
margin-left: 0;
margin-right: 0;
}
#network {
border-radius: 10px;
border-radius: 14px 0 0 14px;
margin-right: 0;
/* margin-right: 0; */
}
#disk {
border-radius: 0;
margin-right: 0;
margin-left: 0;
}
#cpu {
border-radius: 0;
margin-left: 0;
/* margin-left: 0; */
margin-right: 0;
}
#temperature {
/* color: #f9afdb; */
border-radius: 0;
margin-right: 0;
margin-left: 0;
}
#memory {
/* border-radius: 0 10px 10px 0; */
margin-left: 0;
margin-right: 0;
border-radius: 0;
}
#memory.low {
@ -166,20 +142,30 @@ tooltip {
}
#battery {
border-radius: 0;
margin-left: 0;
margin-right: 0;
}
#clock {
margin-left: 0;
#tray {
/* margin-left: 0; */
margin-right: 0;
}
tooltip,
window#waybar #tray menu {
color: #aaaaaa;
background: #000000;
border: 1px solid #888888;
border-radius: 0;
}
#clock {
/* margin-left: 0; */
margin-right: 0;
}
/* #custom-gpu { */
/* color: #f5c2e7; */
/* border-radius: 10px; */
/* } */
#window {
@ -192,24 +178,20 @@ tooltip {
#bluetooth {
border-radius: 0;
margin-left: 0;
margin-right: 0;
}
#custom-weather {
/* border-radius: 10px 0px 0px 10px; */
margin-right: 0;
}
#custom-nvidia-load {
/* border-radius: 10px 0 0 10px; */
margin-right: 0;
/* color: #afb8f9; */
}
#custom-nvidia-mem {
/* border-radius: 0 10px 10px 0; */
margin-left: 0;
/* color: #aff9b2; */
}

View file

@ -76,7 +76,7 @@
},
"disk": {
"interval": 30,
"interval": 1,
"format": "󰋊 {free}",
"path": "/",
"on-click": "alacritty --class floating -e ncdu -x /"
@ -91,7 +91,7 @@
"memory": {
"interval": 1,
"format": "󰧑 {percentage}%",
"format": "󰧑 {percentage:2}%",
"tooltip-format": "{used:0.1f}G/{total:0.1f}G",
"states": { "low": 70 },
"on-click": "notify-send \"$(printf \"%-20s %10s\\n\" \"COMMAND\" \"MEMORY USAGE\"; ps axo comm,rss | awk '{mem[$1]+=$2} END {for (cmd in mem) printf \"%-20s %5.2f MiB\\n\", cmd, mem[cmd]/1024}' | sort -k2nr | head -n10)\""
@ -102,8 +102,8 @@
"format": "󰌙",
"format-disconnected": "󰌙",
"format-linked": "󰛵",
"format-ethernet": "󰓢 {bandwidthDownBytes} {bandwidthUpBytes}",
"format-wifi": "󰖩 {bandwidthDownBytes} {bandwidthUpBytes}",
"format-ethernet": "󰓢 {bandwidthDownBytes:>} {bandwidthUpBytes:>}",
"format-wifi": "󰖩 {bandwidthDownBytes:>} {bandwidthUpBytes:>}",
"on-click": "wifi-toggle",
"on-right-click": "$TERMINAL --class floating -e nmtui",
"tooltip-format-ethernet": "{ipaddr}",
@ -139,7 +139,7 @@
},
"cpu": {
"interval": 1,
"format": "󰘚 {usage}%",
"format": "󰘚 {usage:2}%",
"max-length": 10,
"on-click": "alacritty --class floating -e htop"
},
@ -154,8 +154,8 @@
"warning": 30,
"critical": 15
},
"format-charging": "󰂅 {capacity}%",
"format": "{icon} {capacity}%",
"format-charging": "󰂅 {capacity:2}%",
"format": "{icon} {capacity:2}%",
"format-icons": ["󰂎", "󰁺", "󰁻", "󰁼", "󰁽", "󰁾", "󰁿", "󰂀", "󰂁", "󰂂", "󰁹"],
"tooltip": true
},
@ -175,7 +175,7 @@
"min-length": 10,
"interval": 1,
"format": "{:%d/%m %H:%M:%S}",
"timezones": ["Asia/Ho_Chi_Minh", "Europe/Paris"],
"timezones": ["Europe/Paris"],
"tooltip-format": "<big>{:%Y %B}</big>\n<tt><small>{calendar}</small></tt>",
"actions": {
"on-scroll-up": "tz_up",

View file

@ -10,6 +10,7 @@
interactiveShellInit = ''
# bind ctrl+s to fg
set -gx fish_greeting
bind \cz 'fg 2>/dev/null; commandline -f repaint'
set -x DIRENV_LOG_FORMAT ""
'';
@ -92,6 +93,8 @@
nsp = "nix shell nixpkgs#";
f = "lfcd";
sxiv = "nsxiv";
del = "trash -rf";
rsyncp = "rsync --info=progress2 --no-inc-recursive";
};
plugins = [

View file

@ -20,6 +20,7 @@ let user = import ./name.nix; in
home.packages = with pkgs; [
betterbird
python3
python3Packages.virtualenv
dunst
ncdu
nsxiv
@ -46,7 +47,7 @@ let user = import ./name.nix; in
xdg-utils
entr
# xdg-desktop-portal-wlr
# xdg-desktop-portal-hyprland
xdg-desktop-portal-hyprland
(catppuccin-gtk.override {
accents = [ "pink" ];
size = "compact";
@ -54,6 +55,12 @@ let user = import ./name.nix; in
variant = "mocha";
})
davfs2
htop
yt-dlp
ffmpeg
wget
lua-language-server
];
# Home Manager is pretty good at managing dotfiles. The primary way to manage
@ -165,6 +172,16 @@ let user = import ./name.nix; in
NNN_TRASH = 1;
GOPATH = "${config.home.homeDirectory}/.local/share/go";
GOMODCACHE = "${config.home.homeDirectory}/.cache/go/pkg/mod";
GDK_BACKEND = "wayland,x11";
QT_QPA_PLATFORM = "wayland;xcb";
CLUTTER_BACKEND = "wayland";
XDG_CURRENT_DESKTOP = "Hyprland";
XDG_SESSION_TYPE = "wayland";
XDG_SESSION_DESKTOP = "Hyprland";
QT_AUTO_SCREEN_SCALE_FACTOR = "1";
WLR_NO_HARDWARE_CURSORS = "1";
XCURSOR_SIZE = "24";
};
home.keyboard.options = [
@ -182,6 +199,11 @@ let user = import ./name.nix; in
xdg = {
enable = true;
systemDirs.data = [ "${config.home.homeDirectory}/.local/share" ];
# portal = {
# enable = true;
# configPackage = pkgs.xdg-desktop-portal-hyprland;
# xdgOpenUsePortal = true;
# };
userDirs = {
enable = true;
createDirectories = false;
@ -227,7 +249,7 @@ let user = import ./name.nix; in
};
Install = {
# enable the service
WantedBy = [ "default.target" ];
# WantedBy = [ "default.target" ];
};
Timer = {
Unit = "battery-notify.service";
@ -295,7 +317,7 @@ let user = import ./name.nix; in
qt = {
enable = true;
platformTheme = "gtk";
platformTheme = "kde";
};
programs.direnv = {
@ -391,7 +413,7 @@ let user = import ./name.nix; in
}];
timeouts = [{
timeout = 300;
timeout = 900;
command = "${config.programs.swaylock.package}/bin/swaylock -defF";
}
{
@ -452,7 +474,7 @@ let user = import ./name.nix; in
gcc
ocamlPackages.lsp
ocamlPackages.ocamlformat
rnix-lsp
# rnix-lsp
cargo
];
};

View file

@ -4,9 +4,8 @@
xwayland.enable = true;
# plugins = [
# flakes-pkgs.hyprfocus
# "${flakes-pkgs.hyprfocus}/lib/libhyprfocus.so"
# ];
systemd.enable = true;
systemd.variables = [
"GDK_BACKEND=wayland,x11"
@ -27,7 +26,7 @@
kb_layout = "fr";
kb_variant = "";
kb_model = "pc105";
kb_options = "";
kb_options = "caps:super";
kb_rules = "";
touchpad = {
@ -73,7 +72,7 @@
pseudotile = true;
preserve_split = true;
force_split = 2;
no_gaps_when_only = true;
# no_gaps_when_only = true;
};
master = {
@ -115,6 +114,7 @@
"$mod SHIFT, Return, exec, kitty --working-directory \"$(window_dir)\""
"$mod, w, exec, firefox"
"$mod SHIFT, w, exec, firefox --private-window"
"$mod SHIFT, s, exec, firefox \"https://search.nixos.org/packages?channel=unstable&query=$(rofi -dmenu -p \"nix search\")\""
"$mod, m, exec, kitty --class floating -e pulsemixer"
"$mod, d, exec, ~/.bin/runmenu"
"$mod, x, exec, keepmenu"
@ -209,7 +209,7 @@
];
# plugin:hyprfocus {
# enabled = yes
# enabled = no;
#
# keyboard_focus_animation = shrink
# mouse_focus_animation = flash
@ -238,20 +238,35 @@
# }
# }
"plugin:hyprfocus" = {
enabled = true;
# "plugin:hyprfocus" = {
# enabled = true;
keyboard_focus_animation = "flash";
mouse_focus_animation = "nothing";
# keyboard_focus_animation = "flash";
# mouse_focus_animation = "nothing";
# bezier = "bezIn, 0.5,0.0,1.0,0.5";
# bezier = "bezOut, 0.0,0.5,0.5,1.0";
# # bezier = "bezOut, 0.0,0.5,0.5,1.0";
flash = {
flash_opacity = 0.6;
in_speed = 0.3;
};
};
# flash = {
# shrink_percentage = 0.8;
# in_bezier = "bezIn";
# in_speed = 0.5;
# out_bezier = "bezIn";
# out_speed = 3;
# };
# shrink = {
# shrink_percentage = 0.8;
# in_bezier = "bezIn";
# in_speed = 0.5;
# out_bezier = "bezIn";
# out_speed = 3;
# };
# };
};

4
lf.nix
View file

@ -66,7 +66,7 @@
shift
case "$mode" in
copy)
rsync -a --ignore-existing --info=progress2 -- "$@" . |
rsync -a --ignore-existing --info=progress2 --no-inc-recursive -- "$@" . |
stdbuf -i0 -o0 -e0 tr '\r' '\n' |
while IFS= read -r line; do
lf -remote "send $id echo $line"
@ -149,12 +149,12 @@
ai = "open_folder_in_sxiv";
aw = "send-warpinator";
E = "$nvim";
zp = "toggle_preview";
p = "alt-paste copy";
P = "alt-paste cut";
"<space>" = ":toggle; down; save-select";
u = ":unselect; save-select";
v = ":invert; save-select";
"<tab>" = "toggle_preview";
};
# previewer.source = "${pkgs.pistol}/bin/pistol";