mirror of
https://github.com/tuxdotrs/nix-config.git
synced 2026-05-01 16:36:31 +05:30
feat: update flake
This commit is contained in:
@@ -16,7 +16,7 @@
|
||||
systemd.variables = ["--all"];
|
||||
|
||||
plugins = with pkgs.hyprland-plugins; [
|
||||
hyprexpo
|
||||
# hyprexpo
|
||||
];
|
||||
|
||||
settings = let
|
||||
@@ -79,8 +79,11 @@
|
||||
misc = {
|
||||
disable_hyprland_logo = true;
|
||||
force_default_wallpaper = 1;
|
||||
vfr = true;
|
||||
vrr = 1;
|
||||
vrr = 0;
|
||||
};
|
||||
|
||||
cursor = {
|
||||
no_hardware_cursors = 1;
|
||||
};
|
||||
|
||||
ecosystem = {
|
||||
@@ -162,15 +165,15 @@
|
||||
"workspace 7 silent, match:class (discord|org.telegram.desktop)"
|
||||
];
|
||||
|
||||
plugin = {
|
||||
hyprexpo = {
|
||||
columns = 3;
|
||||
gap_size = 5;
|
||||
bg_col = "rgb(111111)";
|
||||
workspace_method = "first 1";
|
||||
gesture_distance = 300;
|
||||
};
|
||||
};
|
||||
# plugin = {
|
||||
# hyprexpo = {
|
||||
# columns = 3;
|
||||
# gap_size = 5;
|
||||
# bg_col = "rgb(111111)";
|
||||
# workspace_method = "first 1";
|
||||
# gesture_distance = 300;
|
||||
# };
|
||||
# };
|
||||
|
||||
gesture = [
|
||||
"3, horizontal, workspace"
|
||||
@@ -207,7 +210,7 @@
|
||||
|
||||
# hyprland
|
||||
"SUPER, Q, killactive"
|
||||
"SUPER, grave, hyprexpo:expo, toggle"
|
||||
# "SUPER, grave, hyprexpo:expo, toggle"
|
||||
"SUPER_SHIFT, Q, forcekillactive"
|
||||
"SUPER_SHIFT, F, fullscreen, 0"
|
||||
"SUPER_SHIFT, Space, exec, hyprctl dispatch togglefloating; hyprctl dispatch resizeactive exact 1200 800; hyprctl dispatch centerwindow;"
|
||||
@@ -290,7 +293,7 @@
|
||||
|
||||
"exec-once" = [
|
||||
# load hyprland plugins
|
||||
"hyprctl plugin load '$HYPR_PLUGIN_DIR/lib/libhyprexpo.so'"
|
||||
# "hyprctl plugin load '$HYPR_PLUGIN_DIR/lib/libhyprexpo.so'"
|
||||
|
||||
"easyeffects --w"
|
||||
"awww-daemon"
|
||||
|
||||
@@ -5,210 +5,221 @@
|
||||
|
||||
wayland.windowManager.mango = {
|
||||
enable = true;
|
||||
settings = ''
|
||||
settings = {
|
||||
# Monitors
|
||||
monitorrule = name:eDP-1, width:2560, height:1440, refresh:165, x:0, y:10, vrr:1
|
||||
monitorrule = name:HDMI-A-1, width:2560, height:1440, refresh:100, x:0, y:-1440, vrr:1
|
||||
monitorrule = [
|
||||
"name:eDP-1, width:2560, height:1440, refresh:165, x:0, y:10, vrr:1"
|
||||
"name:HDMI-A-1, width:2560, height:1440, refresh:100, x:0, y:-1440, vrr:1"
|
||||
];
|
||||
|
||||
# Keyboard
|
||||
repeat_rate = 25
|
||||
repeat_delay = 600
|
||||
numlockon = 0
|
||||
xkb_rules_layout = us
|
||||
repeat_rate = 25;
|
||||
repeat_delay = 600;
|
||||
numlockon = 0;
|
||||
xkb_rules_layout = "us";
|
||||
|
||||
# Trackpad
|
||||
disable_trackpad = 0
|
||||
tap_to_click = 1
|
||||
tap_and_drag = 1
|
||||
drag_lock = 1
|
||||
trackpad_natural_scrolling = 1
|
||||
disable_while_typing = 1
|
||||
left_handed = 0
|
||||
middle_button_emulation = 0
|
||||
swipe_min_threshold = 1
|
||||
disable_trackpad = 0;
|
||||
tap_to_click = 1;
|
||||
tap_and_drag = 1;
|
||||
drag_lock = 1;
|
||||
trackpad_natural_scrolling = 1;
|
||||
disable_while_typing = 1;
|
||||
left_handed = 0;
|
||||
middle_button_emulation = 0;
|
||||
swipe_min_threshold = 1;
|
||||
|
||||
# Mouse
|
||||
mouse_natural_scrolling = 0
|
||||
accel_profile = 0
|
||||
mouse_natural_scrolling = 0;
|
||||
accel_profile = 0;
|
||||
|
||||
# Theme
|
||||
border_radius = 8
|
||||
no_radius_when_single = 0
|
||||
focused_opacity = 1.0
|
||||
unfocused_opacity = 1.0
|
||||
border_radius = 8;
|
||||
no_radius_when_single = 0;
|
||||
focused_opacity = 1.0;
|
||||
unfocused_opacity = 1.0;
|
||||
|
||||
# Scroller Layout Setting
|
||||
scroller_structs = 0
|
||||
scroller_default_proportion = 0.5
|
||||
scroller_ignore_proportion_single = 0
|
||||
scroller_default_proportion_single = 1.0
|
||||
scroller_structs = 0;
|
||||
scroller_default_proportion = 0.5;
|
||||
scroller_ignore_proportion_single = 0;
|
||||
scroller_default_proportion_single = 1.0;
|
||||
|
||||
# Master-Stack Layout Setting
|
||||
new_is_master = 0
|
||||
default_mfact = 0.5
|
||||
default_nmaster = 1
|
||||
smartgaps = 0
|
||||
new_is_master = 0;
|
||||
default_mfact = 0.5;
|
||||
default_nmaster = 1;
|
||||
smartgaps = 0;
|
||||
|
||||
# Overview Setting
|
||||
hotarea_size = 10
|
||||
enable_hotarea = 1
|
||||
ov_tab_mode = 0
|
||||
overviewgappi = 15
|
||||
overviewgappo = 15
|
||||
hotarea_size = 10;
|
||||
enable_hotarea = 1;
|
||||
ov_tab_mode = 0;
|
||||
overviewgappi = 15;
|
||||
overviewgappo = 15;
|
||||
|
||||
# layouts
|
||||
tagrule = id:1, layout_name:tile
|
||||
tagrule = id:2, layout_name:tile
|
||||
tagrule = id:3, layout_name:tile
|
||||
tagrule = id:4, layout_name:tile
|
||||
tagrule = id:5, layout_name:tile
|
||||
tagrule = id:6, layout_name:scroller
|
||||
tagrule = [
|
||||
"id:1, layout_name:tile"
|
||||
"id:2, layout_name:tile"
|
||||
"id:3, layout_name:tile"
|
||||
"id:4, layout_name:tile"
|
||||
"id:5, layout_name:tile"
|
||||
"id:6, layout_name:scroller"
|
||||
];
|
||||
|
||||
# Keybindings
|
||||
mousebind = SUPER, btn_left, moveresize, curmove
|
||||
mousebind = SUPER, btn_right, moveresize, curresize
|
||||
gesturebind = none, left, 3, viewtoright_have_client
|
||||
gesturebind = none, right, 3, viewtoleft_have_client
|
||||
gesturebind = none, up, 3, toggleoverview
|
||||
gesturebind = none, down, 3, toggleoverview
|
||||
mousebind = [
|
||||
"SUPER, btn_left, moveresize, curmove"
|
||||
"SUPER, btn_right, moveresize, curresize"
|
||||
];
|
||||
|
||||
# apps
|
||||
bind = SUPER, Return, spawn, wezterm
|
||||
bind = SUPER, Space, spawn, vicinae toggle
|
||||
bind = SUPER, B, spawn, brave
|
||||
bind = SUPER, V, spawn, vicinae vicinae://extensions/vicinae/clipboard/history
|
||||
bind = SUPER+SHIFT, W, spawn, vicinae vicinae://extensions/sovereign/awww-switcher/wpgrid
|
||||
gesturebind = [
|
||||
"none, right, 3, viewtoleft_have_client"
|
||||
"none, up, 3, toggleoverview"
|
||||
"none, down, 3, toggleoverview"
|
||||
];
|
||||
|
||||
# WM
|
||||
bind = SUPER, Q, killclient
|
||||
bind = SUPER+SHIFT, R, reload_config
|
||||
bind = SUPER+SHIFT, F, togglefullscreen
|
||||
bind = SUPER+SHIFT, Space, togglefloating
|
||||
bind = [
|
||||
# apps
|
||||
"SUPER, Return, spawn, wezterm"
|
||||
"SUPER, Space, spawn, vicinae toggle"
|
||||
"SUPER, B, spawn, brave"
|
||||
"SUPER, V, spawn, vicinae vicinae://extensions/vicinae/clipboard/history"
|
||||
"SUPER+SHIFT, W, spawn, vicinae vicinae://extensions/sovereign/awww-switcher/wpgrid"
|
||||
|
||||
bind = ALT, Tab, toggleoverview
|
||||
bind = ALT+SHIFT, minus, incgaps, -1
|
||||
bind = ALT+SHIFT, equal, incgaps, 1
|
||||
bind = ALT+SHIFT, R, togglegaps
|
||||
# WM
|
||||
"SUPER, Q, killclient"
|
||||
"SUPER+SHIFT, R, reload_config"
|
||||
"SUPER+SHIFT, F, togglefullscreen"
|
||||
"SUPER+SHIFT, Space, togglefloating"
|
||||
|
||||
# switch layout
|
||||
bind = SUPER+SHIFT, H, setlayout, tile
|
||||
bind = SUPER+SHIFT, V, setlayout, vertical_tile
|
||||
bind = SUPER+SHIFT, S, setlayout, scroller
|
||||
"ALT, Tab, toggleoverview"
|
||||
"ALT+SHIFT, minus, incgaps, -1"
|
||||
"ALT+SHIFT, equal, incgaps, 1"
|
||||
"ALT+SHIFT, R, togglegaps"
|
||||
|
||||
# resize client
|
||||
bind = SUPER+CTRL, Up, resizewin, +0, -50
|
||||
bind = SUPER+CTRL, Down, resizewin, +0, +50
|
||||
bind = SUPER+CTRL, Left, resizewin, -50, +0
|
||||
bind = SUPER+CTRL, Right, resizewin, +50, +0
|
||||
# switch layout
|
||||
"SUPER+SHIFT, H, setlayout, tile"
|
||||
"SUPER+SHIFT, V, setlayout, vertical_tile"
|
||||
"SUPER+SHIFT, S, setlayout, scroller"
|
||||
|
||||
# swap client
|
||||
bind = SUPER+SHIFT, Up, exchange_client, up
|
||||
bind = SUPER+SHIFT, Down, exchange_client, down
|
||||
bind = SUPER+SHIFT, Left, exchange_client, left
|
||||
bind = SUPER+SHIFT, Right, exchange_client, right
|
||||
# resize client
|
||||
"SUPER+CTRL, Up, resizewin, +0, -50"
|
||||
"SUPER+CTRL, Down, resizewin, +0, +50"
|
||||
"SUPER+CTRL, Left, resizewin, -50, +0"
|
||||
"SUPER+CTRL, Right, resizewin, +50, +0"
|
||||
|
||||
# switch client focus
|
||||
bind = SUPER, Tab, focusstack, next
|
||||
bind = SUPER, Left, focusdir, left
|
||||
bind = SUPER, Right, focusdir, right
|
||||
bind = SUPER, Up, focusdir, up
|
||||
bind = SUPER, Down, focusdir, down
|
||||
# swap client
|
||||
"SUPER+SHIFT, Up, exchange_client, up"
|
||||
"SUPER+SHIFT, Down, exchange_client, down"
|
||||
"SUPER+SHIFT, Left, exchange_client, left"
|
||||
"SUPER+SHIFT, Right, exchange_client, right"
|
||||
|
||||
# switch view
|
||||
bind = SUPER, 1, view, 1, 0
|
||||
bind = SUPER, 2, view, 2, 0
|
||||
bind = SUPER, 3, view, 3, 0
|
||||
bind = SUPER, 4, view, 4, 0
|
||||
bind = SUPER, 5, view, 5, 0
|
||||
bind = SUPER, 6, view, 6, 0
|
||||
# switch client focus
|
||||
"SUPER, Tab, focusstack, next"
|
||||
"SUPER, Left, focusdir, left"
|
||||
"SUPER, Right, focusdir, right"
|
||||
"SUPER, Up, focusdir, up"
|
||||
"SUPER, Down, focusdir, down"
|
||||
|
||||
# move client to the tag with focus
|
||||
bind = SUPER+SHIFT, 1, tagsilent, 1, 0
|
||||
bind = SUPER+SHIFT, 2, tagsilent, 2, 0
|
||||
bind = SUPER+SHIFT, 3, tagsilent, 3, 0
|
||||
bind = SUPER+SHIFT, 4, tagsilent, 4, 0
|
||||
bind = SUPER+SHIFT, 5, tagsilent, 5, 0
|
||||
bind = SUPER+SHIFT, 6, tagsilent, 6, 0
|
||||
# switch view
|
||||
"SUPER, 1, view, 1, 0"
|
||||
"SUPER, 2, view, 2, 0"
|
||||
"SUPER, 3, view, 3, 0"
|
||||
"SUPER, 4, view, 4, 0"
|
||||
"SUPER, 5, view, 5, 0"
|
||||
"SUPER, 6, view, 6, 0"
|
||||
|
||||
# move client to the tag without focus
|
||||
bind = SUPER+ALT, 1, tag, 1, 0
|
||||
bind = SUPER+ALT, 2, tag, 2, 0
|
||||
bind = SUPER+ALT, 3, tag, 3, 0
|
||||
bind = SUPER+ALT, 4, tag, 4, 0
|
||||
bind = SUPER+ALT, 5, tag, 5, 0
|
||||
bind = SUPER+ALT, 6, tag, 6, 0
|
||||
# move client to the tag with focus
|
||||
"SUPER+SHIFT, 1, tagsilent, 1, 0"
|
||||
"SUPER+SHIFT, 2, tagsilent, 2, 0"
|
||||
"SUPER+SHIFT, 3, tagsilent, 3, 0"
|
||||
"SUPER+SHIFT, 4, tagsilent, 4, 0"
|
||||
"SUPER+SHIFT, 5, tagsilent, 5, 0"
|
||||
"SUPER+SHIFT, 6, tagsilent, 6, 0"
|
||||
|
||||
# move client to the tag without focus
|
||||
"SUPER+ALT, 1, tag, 1, 0"
|
||||
"SUPER+ALT, 2, tag, 2, 0"
|
||||
"SUPER+ALT, 3, tag, 3, 0"
|
||||
"SUPER+ALT, 4, tag, 4, 0"
|
||||
"SUPER+ALT, 5, tag, 5, 0"
|
||||
"SUPER+ALT, 6, tag, 6, 0"
|
||||
];
|
||||
|
||||
# Window effect
|
||||
blur = 0
|
||||
blur_layer = 0
|
||||
blur_optimized = 1
|
||||
blur_params_num_passes = 2
|
||||
blur_params_radius = 5
|
||||
blur_params_noise = 0.02
|
||||
blur_params_brightness = 0.9
|
||||
blur_params_contrast = 0.9
|
||||
blur_params_saturation = 1.2
|
||||
blur = 0;
|
||||
blur_layer = 0;
|
||||
blur_optimized = 1;
|
||||
blur_params_num_passes = 2;
|
||||
blur_params_radius = 5;
|
||||
blur_params_noise = 0.02;
|
||||
blur_params_brightness = 0.9;
|
||||
blur_params_contrast = 0.9;
|
||||
blur_params_saturation = 1.2;
|
||||
|
||||
shadows = 0
|
||||
layer_shadows = 0
|
||||
shadow_only_floating = 1
|
||||
shadows_size = 10
|
||||
shadows_blur = 15
|
||||
shadows_position_x = 0
|
||||
shadows_position_y = 0
|
||||
shadowscolor = 0x000000ff
|
||||
shadows = 0;
|
||||
layer_shadows = 0;
|
||||
shadow_only_floating = 1;
|
||||
shadows_size = 10;
|
||||
shadows_blur = 15;
|
||||
shadows_position_x = 0;
|
||||
shadows_position_y = 0;
|
||||
shadowscolor = "0x000000ff";
|
||||
|
||||
# Animation
|
||||
animations = 1
|
||||
layer_animations = 1
|
||||
animation_type_open = slide
|
||||
animation_type_close = fade
|
||||
animation_fade_in = 1
|
||||
animation_fade_out = 1
|
||||
tag_animation_direction = 1
|
||||
zoom_initial_ratio = 0.3
|
||||
zoom_end_ratio = 0.8
|
||||
fadein_begin_opacity = 0.5
|
||||
fadeout_begin_opacity = 0.8
|
||||
animations = 1;
|
||||
layer_animations = 1;
|
||||
animation_type_open = "slide";
|
||||
animation_type_close = "fade";
|
||||
animation_fade_in = 1;
|
||||
animation_fade_out = 1;
|
||||
tag_animation_direction = 1;
|
||||
zoom_initial_ratio = 0.3;
|
||||
zoom_end_ratio = 0.8;
|
||||
fadein_begin_opacity = 0.5;
|
||||
fadeout_begin_opacity = 0.8;
|
||||
|
||||
animation_duration_move = 100
|
||||
animation_duration_open = 100
|
||||
animation_duration_close = 100
|
||||
animation_duration_tag = 200
|
||||
animation_duration_focus = 0
|
||||
animation_duration_move = 100;
|
||||
animation_duration_open = 100;
|
||||
animation_duration_close = 100;
|
||||
animation_duration_tag = 200;
|
||||
animation_duration_focus = 0;
|
||||
|
||||
animation_curve_open = 0.46, 1.0, 0.29, 1
|
||||
animation_curve_move = 0.46, 1.0, 0.29, 1
|
||||
animation_curve_tag = 0.46, 1.0, 0.29, 1
|
||||
animation_curve_close = 0.08, 0.92, 0, 1
|
||||
animation_curve_focus = 0.46, 1.0, 0.29, 1
|
||||
animation_curve_opafadeout = 0.5, 0.5, 0.5, 0.5
|
||||
animation_curve_opafadein = 0.46, 1.0, 0.29, 1
|
||||
animation_curve_open = "0.46, 1.0, 0.29, 1";
|
||||
animation_curve_move = "0.46, 1.0, 0.29, 1";
|
||||
animation_curve_tag = "0.46, 1.0, 0.29, 1";
|
||||
animation_curve_close = "0.08, 0.92, 0, 1";
|
||||
animation_curve_focus = "0.46, 1.0, 0.29, 1";
|
||||
animation_curve_opafadeout = "0.5, 0.5, 0.5, 0.5";
|
||||
animation_curve_opafadein = "0.46, 1.0, 0.29, 1";
|
||||
|
||||
# Appearance
|
||||
borderpx = 0
|
||||
gappih = 10
|
||||
gappiv = 10
|
||||
gappoh = 10
|
||||
gappov = 10
|
||||
borderpx = 0;
|
||||
gappih = 10;
|
||||
gappiv = 10;
|
||||
gappoh = 10;
|
||||
gappov = 10;
|
||||
|
||||
rootcolor = 0x201b14ff
|
||||
bordercolor = 0x444444ff
|
||||
focuscolor = 0xc9b890ff
|
||||
maximizescreencolor = 0x89aa61ff
|
||||
urgentcolor = 0xad401fff
|
||||
scratchpadcolor = 0x516c93ff
|
||||
globalcolor = 0xb153a7ff
|
||||
overlaycolor = 0x14a57cff
|
||||
rootcolor = "0x201b14ff";
|
||||
bordercolor = "0x444444ff";
|
||||
focuscolor = "0xc9b890ff";
|
||||
maximizescreencolor = "0x89aa61ff";
|
||||
urgentcolor = "0xad401fff";
|
||||
scratchpadcolor = "0x516c93ff";
|
||||
globalcolor = "0xb153a7ff";
|
||||
overlaycolor = "0x14a57cff";
|
||||
|
||||
# Misc
|
||||
adaptive_sync = 1
|
||||
syncobj_enable = 1
|
||||
syncobj_enable = 1;
|
||||
|
||||
exec-once = awww-daemon
|
||||
exec-once = kdeconnectd
|
||||
exec-once = kdeconnect-indicator
|
||||
exec-once = dbus-update-activation-environment --systemd --all; systemctl --user reset-failed && systemctl --user start mango-session.target
|
||||
'';
|
||||
exec-once = [
|
||||
"awww-daemon"
|
||||
"kdeconnectd"
|
||||
"kdeconnect-indicator"
|
||||
"dbus-update-activation-environment --systemd --all; systemctl --user reset-failed && systemctl --user start mango-session.target"
|
||||
];
|
||||
};
|
||||
};
|
||||
}
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
username,
|
||||
...
|
||||
}: {
|
||||
home.file.".mozilla/firefox/${username}/chrome".source = pkgs.firefox-mod-blur;
|
||||
home.file.".config/mozilla/firefox/${username}/chrome".source = pkgs.firefox-mod-blur;
|
||||
|
||||
programs.firefox = {
|
||||
enable = true;
|
||||
|
||||
@@ -83,8 +83,8 @@
|
||||
python312
|
||||
python312Packages.pipx
|
||||
nodejs
|
||||
nodePackages.pnpm
|
||||
nodePackages.yarn
|
||||
pnpm
|
||||
yarn
|
||||
rustup
|
||||
bun
|
||||
nixpkgs-fmt
|
||||
|
||||
@@ -1,8 +1,10 @@
|
||||
{
|
||||
programs.opencode = {
|
||||
enable = true;
|
||||
settings = {
|
||||
tui = {
|
||||
theme = "system";
|
||||
};
|
||||
settings = {
|
||||
provider = {
|
||||
google = {
|
||||
options = {
|
||||
|
||||
@@ -48,7 +48,7 @@
|
||||
polkit_gnome
|
||||
xdotool
|
||||
xclip
|
||||
xorg.xbacklight
|
||||
xbacklight
|
||||
gpick
|
||||
alsa-utils
|
||||
pavucontrol
|
||||
|
||||
@@ -1,4 +1,23 @@
|
||||
{...}: {
|
||||
{pkgs, ...}: {
|
||||
services = {
|
||||
displayManager = {
|
||||
defaultSession = "none+awesome";
|
||||
ly = {
|
||||
enable = true;
|
||||
settings = {
|
||||
session_log = "null";
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
acpid.enable = true;
|
||||
picom.enable = true;
|
||||
upower.enable = true;
|
||||
blueman.enable = true;
|
||||
};
|
||||
|
||||
programs.dconf.enable = true;
|
||||
|
||||
xdg.mime = {
|
||||
enable = true;
|
||||
defaultApplications = {
|
||||
@@ -10,4 +29,27 @@
|
||||
"x-scheme-handler/unknown" = ["brave-browser.desktop"];
|
||||
};
|
||||
};
|
||||
|
||||
environment.systemPackages = with pkgs; [
|
||||
acpi
|
||||
linuxKernel.packages.linux_zen.acpi_call
|
||||
inotify-tools
|
||||
polkit_gnome
|
||||
xdotool
|
||||
xclip
|
||||
xbacklight
|
||||
gpick
|
||||
alsa-utils
|
||||
pavucontrol
|
||||
brightnessctl
|
||||
libnotify
|
||||
feh
|
||||
maim
|
||||
mpdris2
|
||||
xdg-utils
|
||||
playerctl
|
||||
pulsemixer
|
||||
easyeffects
|
||||
procps
|
||||
];
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user