Compare commits
46
Commits
764967bd53
..
main
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
76168f8b05 | ||
|
|
673284c227 | ||
|
|
9eadcbf6a7 | ||
|
|
ba42268e49 | ||
|
|
01e8bed0fc | ||
|
|
5210fb36a0 | ||
|
|
cf553889d6 | ||
|
|
0aa11e118c | ||
|
|
8aafd5c9b9 | ||
|
|
37bcd81e39 | ||
|
|
19ec68c058 | ||
|
|
c48368b501 | ||
|
|
eb69b51756 | ||
|
|
63404da10f | ||
|
|
ad1b6da6cf | ||
|
|
8c7e72d18c | ||
|
|
1ec7ef8ccd | ||
|
|
ffac8ef90a | ||
|
|
10d3cb4dbe | ||
|
|
42bd0e2cac | ||
|
|
f495530a86 | ||
|
|
067e656a05 | ||
|
|
d980e233e4 | ||
|
|
5a79c1cf68 | ||
|
|
70299a152e | ||
|
|
50bab47767 | ||
|
|
a65672e1bf | ||
|
|
e21894da75 | ||
|
|
5b116bfe53 | ||
|
|
cb978aae73 | ||
|
|
af11b7eddf | ||
|
|
bf89c7cfaf | ||
|
|
55f2f5e6f8 | ||
|
|
2e7ba8e8ba | ||
|
|
ca39e1f8c4 | ||
|
|
f85aad4f95 | ||
|
|
14b36f71bf | ||
|
|
44df22fef4 | ||
|
|
892e5681a1 | ||
|
|
91c03b7751 | ||
|
|
c7762fdebd | ||
|
|
a6da384ba0 | ||
|
|
a8ad063d7a | ||
|
|
4f6d2e0350 | ||
|
|
664c5a332a | ||
|
|
fbf381f476 |
@@ -1,3 +1,4 @@
|
|||||||
convert hyprland config to nix
|
convert hyprland config to nix
|
||||||
simplify the config
|
simplify the config
|
||||||
remove useless modules
|
remove useless modules
|
||||||
|
move things from groups to configs
|
||||||
|
|||||||
@@ -0,0 +1,18 @@
|
|||||||
|
---------------
|
||||||
|
--- SOURCES ---
|
||||||
|
---------------
|
||||||
|
|
||||||
|
-- MONITORS
|
||||||
|
require("source/monitors")
|
||||||
|
-- BINDS
|
||||||
|
require("source/binds")
|
||||||
|
-- AUTOSTART
|
||||||
|
require("source/autostart")
|
||||||
|
-- ENVIRONMENT VARIABLES
|
||||||
|
require("source/ev")
|
||||||
|
-- LOOK AND FEEL
|
||||||
|
require("source/look")
|
||||||
|
-- INPUT
|
||||||
|
require("source/input")
|
||||||
|
-- WINDOWS AND WORKSPACES
|
||||||
|
require("source/winandwork")
|
||||||
@@ -0,0 +1,18 @@
|
|||||||
|
-- Autostarts here
|
||||||
|
|
||||||
|
-- exec_once
|
||||||
|
hl.on("hyprland.start", function ()
|
||||||
|
hl.exec_cmd("waybar")
|
||||||
|
hl.exec_cmd("hyprpaper")
|
||||||
|
hl.exec_cmd("wl-paste --type text --watch cliphist store")
|
||||||
|
hl.exec_cmd("wl-paste --type image --watch cliphist store")
|
||||||
|
hl.exec_cmd("systemctl --user start hyprpolkitagent")
|
||||||
|
hl.exec_cmd("mako")
|
||||||
|
hl.exec_cmd("thunderbird", {workspace = "10 silent"})
|
||||||
|
end)
|
||||||
|
|
||||||
|
-- exec at each reload
|
||||||
|
hl.on("config.reloaded", function ()
|
||||||
|
hl.exec_cmd("killall waybar && waybar")
|
||||||
|
hl.exec_cmd("killall hyprpaper && hyprpaper")
|
||||||
|
end)
|
||||||
@@ -0,0 +1,103 @@
|
|||||||
|
------------------------------------
|
||||||
|
--- USE WEV TO GET THE KEYS CODE ---
|
||||||
|
------------------------------------
|
||||||
|
|
||||||
|
--------------------
|
||||||
|
--- KEYBINDINGSS ---
|
||||||
|
--------------------
|
||||||
|
|
||||||
|
-- MainMod
|
||||||
|
mainMod = "SUPER"
|
||||||
|
|
||||||
|
-- exec
|
||||||
|
hl.bind(mainMod .. " + comma", hl.dsp.exit())
|
||||||
|
hl.bind(mainMod .. " + F", hl.dsp.window.fullscreen())
|
||||||
|
hl.bind(mainMod .. " + T", hl.dsp.window.float())
|
||||||
|
hl.bind(mainMod .. " + C", hl.dsp.window.close())
|
||||||
|
hl.bind(mainMod .. " + Q", hl.dsp.exec_cmd("kitty"))
|
||||||
|
hl.bind(mainMod .. " + A", hl.dsp.exec_cmd("alacritty"))
|
||||||
|
hl.bind(mainMod .. " + E", hl.dsp.exec_cmd("dolphin"))
|
||||||
|
hl.bind(mainMod .. " + R", hl.dsp.exec_cmd("wofi --show drun"))
|
||||||
|
hl.bind(mainMod .. " + W", hl.dsp.exec_cmd("wlogout"))
|
||||||
|
|
||||||
|
-- Quick
|
||||||
|
hl.bind("XF86AudioMute", hl.dsp.exec_cmd("obsidian"))
|
||||||
|
hl.bind("XF86AudioRaiseVolume", hl.dsp.exec_cmd("virt-manager"))
|
||||||
|
hl.bind("XF86AudioLowerVolume", hl.dsp.exec_cmd("virt-manager"))
|
||||||
|
|
||||||
|
-- Reload waybar
|
||||||
|
hl.bind(mainMod .. " + SHIFT + B", hl.dsp.exec_cmd("pkill waybar && waybar"))
|
||||||
|
|
||||||
|
-- Hide waybar
|
||||||
|
hl.bind(mainMod .. " + X", hl.dsp.exec_cmd("pkill waybar || waybar"))
|
||||||
|
|
||||||
|
-- Clipboard history
|
||||||
|
hl.bind(mainMod .. " + V", hl.dsp.exec_cmd("cliphist list | wofi -dmenu | cliphist decode | wl-copy"))
|
||||||
|
|
||||||
|
-- Screenshot to clipboard
|
||||||
|
hl.bind(mainMod .. " + SHIFT + S", hl.dsp.exec_cmd("grim -g \"$(slurp -d)\" - | wl-copy"))
|
||||||
|
|
||||||
|
-- Move focus with mainMod + arrow keys
|
||||||
|
hl.bind(mainMod .. " + h", hl.dsp.focus({direction = "left"}))
|
||||||
|
hl.bind(mainMod .. " + l", hl.dsp.focus({direction = "right"}))
|
||||||
|
hl.bind(mainMod .. " + k", hl.dsp.focus({direction = "up"}))
|
||||||
|
hl.bind(mainMod .. " + j", hl.dsp.focus({direction = "down"}))
|
||||||
|
|
||||||
|
-- Move/resize windows with mainMod + LMB/RMB and dragging
|
||||||
|
hl.bind(mainMod .. " + mouse:272", hl.dsp.window.drag(), { mouse = true })
|
||||||
|
hl.bind(mainMod .. " + mouse:273", hl.dsp.window.resize(), { mouse = true })
|
||||||
|
|
||||||
|
-- Resize Windows
|
||||||
|
hl.bind(mainMod .. " + CTRL + h", hl.dsp.window.resize({ x = -20 , y = 0 , relative = true }))
|
||||||
|
hl.bind(mainMod .. " + CTRL + l", hl.dsp.window.resize({ x = 20 , y = 0 , relative = true }))
|
||||||
|
hl.bind(mainMod .. " + CTRL + k", hl.dsp.window.resize({ x = 0 , y = -20 , relative = true }))
|
||||||
|
hl.bind(mainMod .. " + CTRL + j", hl.dsp.window.resize({ x = 0 , y = 20 , relative = true }))
|
||||||
|
|
||||||
|
-- Set default workspace
|
||||||
|
hl.workspace_rule({workspace = "1", monitor = "DP-1", default = true})
|
||||||
|
hl.workspace_rule({workspace = "2", monitor = "DP-1"})
|
||||||
|
hl.workspace_rule({workspace = "3", monitor = "DP-1"})
|
||||||
|
hl.workspace_rule({workspace = "4", monitor = "DP-1"})
|
||||||
|
hl.workspace_rule({workspace = "5", monitor = "DP-1"})
|
||||||
|
hl.workspace_rule({workspace = "6", monitor = "DP-1"})
|
||||||
|
hl.workspace_rule({workspace = "7", monitor = "DP-1"})
|
||||||
|
hl.workspace_rule({workspace = "8", monitor = "DP-1"})
|
||||||
|
hl.workspace_rule({workspace = "9", monitor = "DP-1"})
|
||||||
|
hl.workspace_rule({workspace = "10", monitor = "DP-1"})
|
||||||
|
|
||||||
|
hl.workspace_rule({workspace = "11", monitor = "DP-2", default = true})
|
||||||
|
hl.workspace_rule({workspace = "12", monitor = "DP-2"})
|
||||||
|
hl.workspace_rule({workspace = "13", monitor = "DP-2"})
|
||||||
|
hl.workspace_rule({workspace = "14", monitor = "DP-2"})
|
||||||
|
|
||||||
|
-- Switch workspaces
|
||||||
|
hl.bind(mainMod .. " + ampersand", hl.dsp.focus({ workspace = "1"}))
|
||||||
|
hl.bind(mainMod .. " + eacute", hl.dsp.focus({ workspace = "2"}))
|
||||||
|
hl.bind(mainMod .. " + quotedbl", hl.dsp.focus({ workspace = "3"}))
|
||||||
|
hl.bind(mainMod .. " + apostrophe", hl.dsp.focus({ workspace = "4"}))
|
||||||
|
hl.bind(mainMod .. " + parenleft", hl.dsp.focus({ workspace = "5"}))
|
||||||
|
hl.bind(mainMod .. " + minus", hl.dsp.focus({ workspace = "6"}))
|
||||||
|
hl.bind(mainMod .. " + egrave", hl.dsp.focus({ workspace = "7"}))
|
||||||
|
hl.bind(mainMod .. " + underscore", hl.dsp.focus({ workspace = "8"}))
|
||||||
|
hl.bind(mainMod .. " + ccedilla", hl.dsp.focus({ workspace = "9"}))
|
||||||
|
hl.bind(mainMod .. " + agrave", hl.dsp.focus({ workspace = "10"}))
|
||||||
|
hl.bind(mainMod .. " + dead_circumflex", hl.dsp.focus({ workspace = "11"}))
|
||||||
|
hl.bind(mainMod .. " + dollar", hl.dsp.focus({ workspace = "12"}))
|
||||||
|
hl.bind(mainMod .. " + ugrave", hl.dsp.focus({ workspace = "13"}))
|
||||||
|
hl.bind(mainMod .. " + asterisk", hl.dsp.focus({ workspace = "14"}))
|
||||||
|
|
||||||
|
-- Move active window to a workspace
|
||||||
|
hl.bind(mainMod .. " + SHIFT + ampersand", hl.dsp.window.move({ workspace = "1"}))
|
||||||
|
hl.bind(mainMod .. " + SHIFT + eacute", hl.dsp.window.move({ workspace = "2"}))
|
||||||
|
hl.bind(mainMod .. " + SHIFT + quotedbl", hl.dsp.window.move({ workspace = "3"}))
|
||||||
|
hl.bind(mainMod .. " + SHIFT + apostrophe", hl.dsp.window.move({ workspace = "4"}))
|
||||||
|
hl.bind(mainMod .. " + SHIFT + parenleft", hl.dsp.window.move({ workspace = "5"}))
|
||||||
|
hl.bind(mainMod .. " + SHIFT + minus", hl.dsp.window.move({ workspace = "6"}))
|
||||||
|
hl.bind(mainMod .. " + SHIFT + egrave", hl.dsp.window.move({ workspace = "7"}))
|
||||||
|
hl.bind(mainMod .. " + SHIFT + underscore", hl.dsp.window.move({ workspace = "8"}))
|
||||||
|
hl.bind(mainMod .. " + SHIFT + ccedilla", hl.dsp.window.move({ workspace = "9"}))
|
||||||
|
hl.bind(mainMod .. " + SHIFT + agrave", hl.dsp.window.move({ workspace = "10"}))
|
||||||
|
hl.bind(mainMod .. " + SHIFT + dead_circumflex", hl.dsp.window.move({ workspace = "11"}))
|
||||||
|
hl.bind(mainMod .. " + SHIFT + dollar", hl.dsp.window.move({ workspace = "12"}))
|
||||||
|
hl.bind(mainMod .. " + SHIFT + ugrave", hl.dsp.window.move({ workspace = "13"}))
|
||||||
|
hl.bind(mainMod .. " + SHIFT + asterisk", hl.dsp.window.move({ workspace = "14"}))
|
||||||
@@ -5,8 +5,6 @@ env = LIBVA_DRIVER_NAME,nvidia
|
|||||||
env = XDG_SESSION_TYPE,wayland
|
env = XDG_SESSION_TYPE,wayland
|
||||||
env = GBM_BACKEND,nvidia-drm
|
env = GBM_BACKEND,nvidia-drm
|
||||||
env = __GLX_VENDOR_LIBRARY_NAME,nvidia
|
env = __GLX_VENDOR_LIBRARY_NAME,nvidia
|
||||||
env = GTK_THEME, Adwaita-dark
|
|
||||||
|
|
||||||
|
|
||||||
cursor {
|
cursor {
|
||||||
no_hardware_cursors = true
|
no_hardware_cursors = true
|
||||||
|
|||||||
@@ -0,0 +1,9 @@
|
|||||||
|
-- Set env here
|
||||||
|
hl.env("XCURSOR_SIZE", "24")
|
||||||
|
hl.env("HYPRCURSOR_SIZE", "24")
|
||||||
|
hl.env("LIBVA_DRIVER_NAME", "nvidia")
|
||||||
|
hl.env("XDG_SESSION_TYPE", "wayland")
|
||||||
|
hl.env("GBM_BACKEND", "nvidia-drm")
|
||||||
|
hl.env("__GLX_VENDOR_LIBRARY_NAME", "nvidia")
|
||||||
|
hl.env("HYPRLAND_NO_SD_VARS", "1")
|
||||||
|
hl.env("LD_LIBRARY_PATH", "/nix/store/p5c2hfgw9pipp2vd0xvxjmly99nbsdki-pipewire-1.6.8-jack/lib/")
|
||||||
@@ -0,0 +1,23 @@
|
|||||||
|
--Set inputs here
|
||||||
|
|
||||||
|
hl.config({
|
||||||
|
input = {
|
||||||
|
kb_layout = "fr",
|
||||||
|
kb_variant = "",
|
||||||
|
kb_model = "",
|
||||||
|
kb_options = "",
|
||||||
|
kb_rules = "",
|
||||||
|
|
||||||
|
follow_mouse = 1,
|
||||||
|
|
||||||
|
sensitivity = 0,
|
||||||
|
|
||||||
|
touchpad = {
|
||||||
|
natural_scroll = false,
|
||||||
|
},
|
||||||
|
},
|
||||||
|
cursor = {
|
||||||
|
no_hardware_cursors = 0,
|
||||||
|
min_refresh_rate = 165
|
||||||
|
}
|
||||||
|
})
|
||||||
@@ -59,7 +59,6 @@ animations {
|
|||||||
|
|
||||||
# See https://wiki.hyprland.org/Configuring/Dwindle-Layout/ for more
|
# See https://wiki.hyprland.org/Configuring/Dwindle-Layout/ for more
|
||||||
dwindle {
|
dwindle {
|
||||||
pseudotile = true # Master switch for pseudotiling. Enabling is bound to mainMod + P in the keybinds section below
|
|
||||||
preserve_split = true # You probably want this
|
preserve_split = true # You probably want this
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -0,0 +1,61 @@
|
|||||||
|
--Set look and feel here
|
||||||
|
|
||||||
|
hl.config({
|
||||||
|
general = {
|
||||||
|
layout = "dwindle",
|
||||||
|
gaps_in = 3,
|
||||||
|
gaps_out = 5,
|
||||||
|
border_size = 1,
|
||||||
|
col = {
|
||||||
|
active_border = { colors = {"rgba(33ccffee)", "rgba(00ff99ee)"}, angle = 45 },
|
||||||
|
inactive_border = "rgba(595959aa)",
|
||||||
|
},
|
||||||
|
},
|
||||||
|
|
||||||
|
decoration = {
|
||||||
|
rounding = 6,
|
||||||
|
rounding_power = 2,
|
||||||
|
|
||||||
|
active_opacity = 1.0,
|
||||||
|
inactive_opacity = 1.0,
|
||||||
|
|
||||||
|
shadow = {
|
||||||
|
enabled = false
|
||||||
|
},
|
||||||
|
|
||||||
|
blur = {
|
||||||
|
enabled = false,
|
||||||
|
},
|
||||||
|
},
|
||||||
|
|
||||||
|
animations = {
|
||||||
|
enabled = true,
|
||||||
|
},
|
||||||
|
|
||||||
|
dwindle = {
|
||||||
|
preserve_split = true,
|
||||||
|
},
|
||||||
|
|
||||||
|
master = {
|
||||||
|
new_status = "master",
|
||||||
|
},
|
||||||
|
|
||||||
|
misc = {
|
||||||
|
force_default_wallpaper = 0,
|
||||||
|
disable_hyprland_logo = true,
|
||||||
|
},
|
||||||
|
|
||||||
|
ecosystem = {
|
||||||
|
no_update_news = true,
|
||||||
|
no_donation_nag = true,
|
||||||
|
}
|
||||||
|
})
|
||||||
|
|
||||||
|
hl.curve( "mybezier", { type = "bezier", points = { {0.05, 0.9}, {0.1, 1.05} } })
|
||||||
|
|
||||||
|
hl.animation({ leaf = "windows", enabled = true, speed = 7, bezier = "mybezier" })
|
||||||
|
hl.animation({ leaf = "windowsOut", enabled = true, speed = 7, bezier = "mybezier" })
|
||||||
|
hl.animation({ leaf = "border", enabled = true, speed = 7, bezier = "mybezier" })
|
||||||
|
hl.animation({ leaf = "borderangle", enabled = true, speed = 7, bezier = "mybezier" })
|
||||||
|
hl.animation({ leaf = "fade", enabled = true, speed = 7, bezier = "mybezier" })
|
||||||
|
hl.animation({ leaf = "workspaces", enabled = true, speed = 7, bezier = "mybezier" })
|
||||||
@@ -0,0 +1,15 @@
|
|||||||
|
-- Set monitors here
|
||||||
|
hl.monitor({
|
||||||
|
output = "DP-1",
|
||||||
|
mode = "1920x1080@165",
|
||||||
|
position = "0x0",
|
||||||
|
scale = 1
|
||||||
|
})
|
||||||
|
|
||||||
|
hl.monitor({
|
||||||
|
output = "DP-2",
|
||||||
|
mode = "1920x1080@165",
|
||||||
|
position = "-1080x-520",
|
||||||
|
transform = 1,
|
||||||
|
scale = 1
|
||||||
|
})
|
||||||
@@ -0,0 +1,19 @@
|
|||||||
|
hl.window_rule({
|
||||||
|
name = "suppress-maximize-events",
|
||||||
|
match = {class = ".*"},
|
||||||
|
suppress_event = "maximize"
|
||||||
|
})
|
||||||
|
|
||||||
|
hl.window_rule({
|
||||||
|
name = "fix-xwayland-drags",
|
||||||
|
match = {
|
||||||
|
class = "^$",
|
||||||
|
title = "^$",
|
||||||
|
xwayland = true,
|
||||||
|
float = true,
|
||||||
|
fullscreen = false,
|
||||||
|
pin = false,
|
||||||
|
},
|
||||||
|
|
||||||
|
no_focus = true,
|
||||||
|
})
|
||||||
@@ -6,7 +6,7 @@
|
|||||||
### KEYBINDINGSS ###
|
### KEYBINDINGSS ###
|
||||||
####################
|
####################
|
||||||
|
|
||||||
$terminal = alacritty
|
$terminal = kitty
|
||||||
$fileManager = dolphin
|
$fileManager = dolphin
|
||||||
$menu = wofi --show drun
|
$menu = wofi --show drun
|
||||||
$calc = qalculate-gtk
|
$calc = qalculate-gtk
|
||||||
@@ -26,6 +26,9 @@ bind = $mainMod, F, fullscreen
|
|||||||
bind = $mainMod, T, togglefloating
|
bind = $mainMod, T, togglefloating
|
||||||
bind = , XF86Calculator, exec, $calc
|
bind = , XF86Calculator, exec, $calc
|
||||||
|
|
||||||
|
# Clipboard history
|
||||||
|
bind = $mainMod, V, exec, cliphist list | wofi -dmenu | cliphist decode | wl-copy
|
||||||
|
|
||||||
# Change Wallpaper
|
# Change Wallpaper
|
||||||
bind = $mainMod SHIFT, W, exec, echo trigger > /tmp/wallpaper-trigger
|
bind = $mainMod SHIFT, W, exec, echo trigger > /tmp/wallpaper-trigger
|
||||||
|
|
||||||
|
|||||||
@@ -33,6 +33,8 @@ exec = killall waybar && waybar
|
|||||||
exec-once = mako
|
exec-once = mako
|
||||||
exec-once = systemctl --user start hyprpolkitagent
|
exec-once = systemctl --user start hyprpolkitagent
|
||||||
exec-once = [workspace 10 silent] thunderbird
|
exec-once = [workspace 10 silent] thunderbird
|
||||||
|
exec-once = wl-paste --type text --watch cliphist store
|
||||||
|
exec-once = wl-paste --type image --watch cliphist store
|
||||||
|
|
||||||
|
|
||||||
#############################
|
#############################
|
||||||
@@ -107,7 +109,6 @@ animations {
|
|||||||
|
|
||||||
# See https://wiki.hyprland.org/Configuring/Dwindle-Layout/ for more
|
# See https://wiki.hyprland.org/Configuring/Dwindle-Layout/ for more
|
||||||
dwindle {
|
dwindle {
|
||||||
pseudotile = true # Master switch for pseudotiling. Enabling is bound to mainMod + P in the keybinds section below
|
|
||||||
preserve_split = true # You probably want this
|
preserve_split = true # You probably want this
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -0,0 +1,18 @@
|
|||||||
|
---------------
|
||||||
|
--- SOURCES ---
|
||||||
|
---------------
|
||||||
|
|
||||||
|
-- MONITORS
|
||||||
|
require("source/monitors")
|
||||||
|
-- BINDS
|
||||||
|
require("source/binds")
|
||||||
|
-- AUTOSTART
|
||||||
|
require("source/autostart")
|
||||||
|
-- ENVIRONMENT VARIABLES
|
||||||
|
require("source/ev")
|
||||||
|
-- LOOK AND FEEL
|
||||||
|
require("source/look")
|
||||||
|
-- INPUT
|
||||||
|
require("source/input")
|
||||||
|
-- WINDOWS AND WORKSPACES
|
||||||
|
require("source/winandwork")
|
||||||
@@ -0,0 +1,16 @@
|
|||||||
|
-- exec_once
|
||||||
|
hl.on("hyprland.start", function ()
|
||||||
|
hl.exec_cmd("waybar")
|
||||||
|
hl.exec_cmd("/home/smayzy/.config/hypr/battery.sh")
|
||||||
|
hl.exec_cmd("systemctl --user start hypr-wallpaper.service")
|
||||||
|
hl.exec_cmd("wl-paste --type text --watch cliphist store")
|
||||||
|
hl.exec_cmd("wl-paste --type image --watch cliphist store")
|
||||||
|
hl.exec_cmd("systemctl --user start hyprpolkitagent")
|
||||||
|
hl.exec_cmd("mako")
|
||||||
|
hl.exec_cmd("thunderbird", {workspace = "10 silent"})
|
||||||
|
end)
|
||||||
|
|
||||||
|
-- exec at each reload
|
||||||
|
hl.on("config.reloaded", function ()
|
||||||
|
hl.exec_cmd("killall waybar && waybar")
|
||||||
|
end)
|
||||||
@@ -0,0 +1,94 @@
|
|||||||
|
------------------------------------
|
||||||
|
--- USE WEV TO GET THE KEYS CODE ---
|
||||||
|
------------------------------------
|
||||||
|
|
||||||
|
--------------------
|
||||||
|
--- KEYBINDINGSS ---
|
||||||
|
--------------------
|
||||||
|
|
||||||
|
-- MainMod
|
||||||
|
mainMod = "SUPER"
|
||||||
|
|
||||||
|
-- exec
|
||||||
|
hl.bind(mainMod .. " + comma", hl.dsp.exit())
|
||||||
|
hl.bind(mainMod .. " + F", hl.dsp.window.fullscreen())
|
||||||
|
hl.bind(mainMod .. " + T", hl.dsp.window.float())
|
||||||
|
hl.bind(mainMod .. " + C", hl.dsp.window.close())
|
||||||
|
hl.bind(mainMod .. " + Q", hl.dsp.exec_cmd("kitty"))
|
||||||
|
hl.bind(mainMod .. " + A", hl.dsp.exec_cmd("alacritty"))
|
||||||
|
hl.bind(mainMod .. " + E", hl.dsp.exec_cmd("dolphin"))
|
||||||
|
hl.bind(mainMod .. " + R", hl.dsp.exec_cmd("wofi --show drun"))
|
||||||
|
hl.bind(mainMod .. " + W", hl.dsp.exec_cmd("wlogout"))
|
||||||
|
hl.bind("XF86Calculator", hl.dsp.exec_cmd("qalculate-gtk"))
|
||||||
|
|
||||||
|
-- Volume
|
||||||
|
hl.bind("XF86AudioMute" , hl.dsp.exec_cmd("pactl set-sink-volume @DEFAULT_SINK@ 0%"))
|
||||||
|
hl.bind("XF86AudioRaiseVolume", hl.dsp.exec_cmd("pactl set-sink-volume @DEFAULT_SINK@ +5%"))
|
||||||
|
hl.bind("XF86AudioLowerVolume", hl.dsp.exec_cmd("pactl set-sink-volume @DEFAULT_SINK@ -5%"))
|
||||||
|
|
||||||
|
-- Brightness
|
||||||
|
hl.bind("XF86MonBrightnessDown", hl.dsp.exec_cmd("brightnessctl set 5%-"))
|
||||||
|
hl.bind("XF86MonBrightnessUp", hl.dsp.exec_cmd("brightnessctl set 5%+"))
|
||||||
|
|
||||||
|
-- Change wallpaper
|
||||||
|
hl.bind(mainMod .. " + SHIFT + W", hl.dsp.exec_cmd("echo trigger > /tmp/wallpaper-trigger"))
|
||||||
|
|
||||||
|
-- Reload waybar
|
||||||
|
hl.bind(mainMod .. " + SHIFT + B", hl.dsp.exec_cmd("pkill waybar && waybar"))
|
||||||
|
|
||||||
|
-- Hide waybar
|
||||||
|
hl.bind(mainMod .. " + X", hl.dsp.exec_cmd("pkill waybar || waybar"))
|
||||||
|
|
||||||
|
-- Clipboard history
|
||||||
|
hl.bind(mainMod .. " + V", hl.dsp.exec_cmd("cliphist list | wofi -dmenu | cliphist decode | wl-copy"))
|
||||||
|
|
||||||
|
-- Screenshot to clipboard
|
||||||
|
hl.bind(mainMod .. " + SHIFT + S", hl.dsp.exec_cmd("grim -g \"$(slurp -d)\" - | wl-copy"))
|
||||||
|
|
||||||
|
-- Move focus with mainMod + arrow keys
|
||||||
|
hl.bind(mainMod .. " + h", hl.dsp.focus({direction = "left"}))
|
||||||
|
hl.bind(mainMod .. " + l", hl.dsp.focus({direction = "right"}))
|
||||||
|
hl.bind(mainMod .. " + k", hl.dsp.focus({direction = "up"}))
|
||||||
|
hl.bind(mainMod .. " + j", hl.dsp.focus({direction = "down"}))
|
||||||
|
|
||||||
|
-- Move/resize windows with mainMod + LMB/RMB and dragging
|
||||||
|
hl.bind(mainMod .. " + mouse:272", hl.dsp.window.drag(), { mouse = true })
|
||||||
|
hl.bind(mainMod .. " + mouse:273", hl.dsp.window.resize(), { mouse = true })
|
||||||
|
|
||||||
|
-- Resize Windows
|
||||||
|
hl.bind(mainMod .. " + CTRL + h", hl.dsp.window.resize({ x = -20 , y = 0 , relative = true }))
|
||||||
|
hl.bind(mainMod .. " + CTRL + l", hl.dsp.window.resize({ x = 20 , y = 0 , relative = true }))
|
||||||
|
hl.bind(mainMod .. " + CTRL + k", hl.dsp.window.resize({ x = 0 , y = -20 , relative = true }))
|
||||||
|
hl.bind(mainMod .. " + CTRL + j", hl.dsp.window.resize({ x = 0 , y = 20 , relative = true }))
|
||||||
|
|
||||||
|
-- Switch workspaces
|
||||||
|
hl.bind(mainMod .. " + ampersand", hl.dsp.focus({ workspace = "1"}))
|
||||||
|
hl.bind(mainMod .. " + eacute", hl.dsp.focus({ workspace = "2"}))
|
||||||
|
hl.bind(mainMod .. " + quotedbl", hl.dsp.focus({ workspace = "3"}))
|
||||||
|
hl.bind(mainMod .. " + apostrophe", hl.dsp.focus({ workspace = "4"}))
|
||||||
|
hl.bind(mainMod .. " + parenleft", hl.dsp.focus({ workspace = "5"}))
|
||||||
|
hl.bind(mainMod .. " + minus", hl.dsp.focus({ workspace = "6"}))
|
||||||
|
hl.bind(mainMod .. " + egrave", hl.dsp.focus({ workspace = "7"}))
|
||||||
|
hl.bind(mainMod .. " + underscore", hl.dsp.focus({ workspace = "8"}))
|
||||||
|
hl.bind(mainMod .. " + ccedilla", hl.dsp.focus({ workspace = "9"}))
|
||||||
|
hl.bind(mainMod .. " + agrave", hl.dsp.focus({ workspace = "10"}))
|
||||||
|
hl.bind(mainMod .. " + dead_circumflex", hl.dsp.focus({ workspace = "11"}))
|
||||||
|
hl.bind(mainMod .. " + dollar", hl.dsp.focus({ workspace = "12"}))
|
||||||
|
hl.bind(mainMod .. " + ugrave", hl.dsp.focus({ workspace = "13"}))
|
||||||
|
hl.bind(mainMod .. " + asterisk", hl.dsp.focus({ workspace = "14"}))
|
||||||
|
|
||||||
|
-- Move active window to a workspace
|
||||||
|
hl.bind(mainMod .. " + SHIFT + ampersand", hl.dsp.window.move({ workspace = "1"}))
|
||||||
|
hl.bind(mainMod .. " + SHIFT + eacute", hl.dsp.window.move({ workspace = "2"}))
|
||||||
|
hl.bind(mainMod .. " + SHIFT + quotedbl", hl.dsp.window.move({ workspace = "3"}))
|
||||||
|
hl.bind(mainMod .. " + SHIFT + apostrophe", hl.dsp.window.move({ workspace = "4"}))
|
||||||
|
hl.bind(mainMod .. " + SHIFT + parenleft", hl.dsp.window.move({ workspace = "5"}))
|
||||||
|
hl.bind(mainMod .. " + SHIFT + minus", hl.dsp.window.move({ workspace = "6"}))
|
||||||
|
hl.bind(mainMod .. " + SHIFT + egrave", hl.dsp.window.move({ workspace = "7"}))
|
||||||
|
hl.bind(mainMod .. " + SHIFT + underscore", hl.dsp.window.move({ workspace = "8"}))
|
||||||
|
hl.bind(mainMod .. " + SHIFT + ccedilla", hl.dsp.window.move({ workspace = "9"}))
|
||||||
|
hl.bind(mainMod .. " + SHIFT + agrave", hl.dsp.window.move({ workspace = "10"}))
|
||||||
|
hl.bind(mainMod .. " + SHIFT + dead_circumflex", hl.dsp.window.move({ workspace = "11"}))
|
||||||
|
hl.bind(mainMod .. " + SHIFT + dollar", hl.dsp.window.move({ workspace = "12"}))
|
||||||
|
hl.bind(mainMod .. " + SHIFT + ugrave", hl.dsp.window.move({ workspace = "13"}))
|
||||||
|
hl.bind(mainMod .. " + SHIFT + asterisk", hl.dsp.window.move({ workspace = "14"}))
|
||||||
@@ -0,0 +1,6 @@
|
|||||||
|
-- Set env here
|
||||||
|
hl.env("XCURSOR_SIZE", "24")
|
||||||
|
hl.env("HYPRCURSOR_SIZE", "24")
|
||||||
|
hl.env("XDG_SESSION_TYPE", "wayland")
|
||||||
|
hl.env("HYPRLAND_NO_SD_VARS", "1")
|
||||||
|
hl.env("LD_LIBRARY_PATH", "/nix/store/p5c2hfgw9pipp2vd0xvxjmly99nbsdki-pipewire-1.6.8-jack/lib/")
|
||||||
@@ -0,0 +1,22 @@
|
|||||||
|
--Set inputs here
|
||||||
|
|
||||||
|
hl.config({
|
||||||
|
input = {
|
||||||
|
kb_layout = "fr",
|
||||||
|
kb_variant = "",
|
||||||
|
kb_model = "pc105",
|
||||||
|
kb_options = "terminate:ctrl_alt_bksp",
|
||||||
|
kb_rules = "",
|
||||||
|
|
||||||
|
follow_mouse = 1,
|
||||||
|
|
||||||
|
sensitivity = 0,
|
||||||
|
|
||||||
|
touchpad = {
|
||||||
|
natural_scroll = false,
|
||||||
|
},
|
||||||
|
},
|
||||||
|
cursor = {
|
||||||
|
no_hardware_cursors = 0,
|
||||||
|
}
|
||||||
|
})
|
||||||
@@ -0,0 +1,61 @@
|
|||||||
|
--Set look and feel here
|
||||||
|
|
||||||
|
hl.config({
|
||||||
|
general = {
|
||||||
|
layout = "dwindle",
|
||||||
|
gaps_in = 3,
|
||||||
|
gaps_out = 5,
|
||||||
|
border_size = 1,
|
||||||
|
col = {
|
||||||
|
active_border = { colors = {"rgba(33ccffee)", "rgba(00ff99ee)"}, angle = 45 },
|
||||||
|
inactive_border = "rgba(595959aa)",
|
||||||
|
},
|
||||||
|
},
|
||||||
|
|
||||||
|
decoration = {
|
||||||
|
rounding = 6,
|
||||||
|
rounding_power = 2,
|
||||||
|
|
||||||
|
active_opacity = 1.0,
|
||||||
|
inactive_opacity = 1.0,
|
||||||
|
|
||||||
|
shadow = {
|
||||||
|
enabled = false
|
||||||
|
},
|
||||||
|
|
||||||
|
blur = {
|
||||||
|
enabled = false,
|
||||||
|
},
|
||||||
|
},
|
||||||
|
|
||||||
|
animations = {
|
||||||
|
enabled = true,
|
||||||
|
},
|
||||||
|
|
||||||
|
dwindle = {
|
||||||
|
preserve_split = true,
|
||||||
|
},
|
||||||
|
|
||||||
|
master = {
|
||||||
|
new_status = "master",
|
||||||
|
},
|
||||||
|
|
||||||
|
misc = {
|
||||||
|
force_default_wallpaper = 0,
|
||||||
|
disable_hyprland_logo = true,
|
||||||
|
},
|
||||||
|
|
||||||
|
ecosystem = {
|
||||||
|
no_update_news = true,
|
||||||
|
no_donation_nag = true,
|
||||||
|
}
|
||||||
|
})
|
||||||
|
|
||||||
|
hl.curve( "mybezier", { type = "bezier", points = { {0.05, 0.9}, {0.1, 1.05} } })
|
||||||
|
|
||||||
|
hl.animation({ leaf = "windows", enabled = true, speed = 7, bezier = "mybezier" })
|
||||||
|
hl.animation({ leaf = "windowsOut", enabled = true, speed = 7, bezier = "mybezier" })
|
||||||
|
hl.animation({ leaf = "border", enabled = true, speed = 7, bezier = "mybezier" })
|
||||||
|
hl.animation({ leaf = "borderangle", enabled = true, speed = 7, bezier = "mybezier" })
|
||||||
|
hl.animation({ leaf = "fade", enabled = true, speed = 7, bezier = "mybezier" })
|
||||||
|
hl.animation({ leaf = "workspaces", enabled = true, speed = 7, bezier = "mybezier" })
|
||||||
@@ -0,0 +1,6 @@
|
|||||||
|
hl.monitor({
|
||||||
|
output = "",
|
||||||
|
mode = "preferred",
|
||||||
|
position = "auto",
|
||||||
|
scale = 1
|
||||||
|
})
|
||||||
@@ -0,0 +1,19 @@
|
|||||||
|
hl.window_rule({
|
||||||
|
name = "suppress-maximize-events",
|
||||||
|
match = {class = ".*"},
|
||||||
|
suppress_event = "maximize"
|
||||||
|
})
|
||||||
|
|
||||||
|
hl.window_rule({
|
||||||
|
name = "fix-xwayland-drags",
|
||||||
|
match = {
|
||||||
|
class = "^$",
|
||||||
|
title = "^$",
|
||||||
|
xwayland = true,
|
||||||
|
float = true,
|
||||||
|
fullscreen = false,
|
||||||
|
pin = false,
|
||||||
|
},
|
||||||
|
|
||||||
|
no_focus = true,
|
||||||
|
})
|
||||||
Generated
+45
-88
@@ -46,11 +46,11 @@
|
|||||||
"flake-compat": {
|
"flake-compat": {
|
||||||
"flake": false,
|
"flake": false,
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1751685974,
|
"lastModified": 1777699697,
|
||||||
"narHash": "sha256-NKw96t+BgHIYzHUjkTK95FqYRVKB8DHpVhefWSz/kTw=",
|
"narHash": "sha256-Eg9b/rq/ECYwNwEXs5i9wHyhxNI0JrYx2srdI2uZMaQ=",
|
||||||
"ref": "refs/heads/main",
|
"ref": "refs/heads/main",
|
||||||
"rev": "549f2762aebeff29a2e5ece7a7dc0f955281a1d1",
|
"rev": "382052b74656a369c5408822af3f2501e9b1af81",
|
||||||
"revCount": 92,
|
"revCount": 94,
|
||||||
"type": "git",
|
"type": "git",
|
||||||
"url": "https://git.lix.systems/lix-project/flake-compat.git"
|
"url": "https://git.lix.systems/lix-project/flake-compat.git"
|
||||||
},
|
},
|
||||||
@@ -59,27 +59,6 @@
|
|||||||
"url": "https://git.lix.systems/lix-project/flake-compat.git"
|
"url": "https://git.lix.systems/lix-project/flake-compat.git"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"flake-parts": {
|
|
||||||
"inputs": {
|
|
||||||
"nixpkgs-lib": [
|
|
||||||
"nvf",
|
|
||||||
"nixpkgs"
|
|
||||||
]
|
|
||||||
},
|
|
||||||
"locked": {
|
|
||||||
"lastModified": 1769996383,
|
|
||||||
"narHash": "sha256-AnYjnFWgS49RlqX7LrC4uA+sCCDBj0Ry/WOJ5XWAsa0=",
|
|
||||||
"owner": "hercules-ci",
|
|
||||||
"repo": "flake-parts",
|
|
||||||
"rev": "57928607ea566b5db3ad13af0e57e921e6b12381",
|
|
||||||
"type": "github"
|
|
||||||
},
|
|
||||||
"original": {
|
|
||||||
"owner": "hercules-ci",
|
|
||||||
"repo": "flake-parts",
|
|
||||||
"type": "github"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"home-manager": {
|
"home-manager": {
|
||||||
"inputs": {
|
"inputs": {
|
||||||
"nixpkgs": [
|
"nixpkgs": [
|
||||||
@@ -108,11 +87,11 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1774379316,
|
"lastModified": 1785531816,
|
||||||
"narHash": "sha256-0nGNxWDUH2Hzlj/R3Zf4FEK6fsFNB/dvewuboSRZqiI=",
|
"narHash": "sha256-vkMnV0JIyw+g/NmcfoajlGaAO+9a0ezia+FZohQJrik=",
|
||||||
"owner": "nix-community",
|
"owner": "nix-community",
|
||||||
"repo": "home-manager",
|
"repo": "home-manager",
|
||||||
"rev": "1eb0549a1ab3fe3f5acf86668249be15fa0e64f7",
|
"rev": "bf9ce9fec78f95f374e8dd3b503863a3ec128ebe",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
@@ -123,11 +102,11 @@
|
|||||||
},
|
},
|
||||||
"mnw": {
|
"mnw": {
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1770419553,
|
"lastModified": 1780772958,
|
||||||
"narHash": "sha256-b1XqsH7AtVf2dXmq2iyRr2NC1yG7skY7Z6N2MpWHlK4=",
|
"narHash": "sha256-VKKe8r4pwCGWZ3Yr9CPN129R4S3CKLSrlYqdYz3vKpM=",
|
||||||
"owner": "Gerg-L",
|
"owner": "Gerg-L",
|
||||||
"repo": "mnw",
|
"repo": "mnw",
|
||||||
"rev": "2aaffa8030d0b262176146adbb6b0e6374ce2957",
|
"rev": "0871dbf63a53610c95db04439ed8ea4d6ec9c160",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
@@ -136,28 +115,6 @@
|
|||||||
"type": "github"
|
"type": "github"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"ndg": {
|
|
||||||
"inputs": {
|
|
||||||
"nixpkgs": [
|
|
||||||
"nvf",
|
|
||||||
"nixpkgs"
|
|
||||||
]
|
|
||||||
},
|
|
||||||
"locked": {
|
|
||||||
"lastModified": 1768214250,
|
|
||||||
"narHash": "sha256-hnBZDQWUxJV3KbtvyGW5BKLO/fAwydrxm5WHCWMQTbw=",
|
|
||||||
"owner": "feel-co",
|
|
||||||
"repo": "ndg",
|
|
||||||
"rev": "a6bd3c1ce2668d096e4fdaaa03ad7f03ba1fbca8",
|
|
||||||
"type": "github"
|
|
||||||
},
|
|
||||||
"original": {
|
|
||||||
"owner": "feel-co",
|
|
||||||
"ref": "refs/tags/v2.6.0",
|
|
||||||
"repo": "ndg",
|
|
||||||
"type": "github"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"nix-flatpak": {
|
"nix-flatpak": {
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1767983141,
|
"lastModified": 1767983141,
|
||||||
@@ -174,6 +131,26 @@
|
|||||||
"type": "github"
|
"type": "github"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
"nix-index-database": {
|
||||||
|
"inputs": {
|
||||||
|
"nixpkgs": [
|
||||||
|
"nixpkgs"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"locked": {
|
||||||
|
"lastModified": 1785650611,
|
||||||
|
"narHash": "sha256-q4kR7g+pCcz6NASvoVPYu+CWWUurX03wogtBqGmR4h0=",
|
||||||
|
"owner": "nix-community",
|
||||||
|
"repo": "nix-index-database",
|
||||||
|
"rev": "dbc756c9d7287de19b3e0e38c928c47510d42c3e",
|
||||||
|
"type": "github"
|
||||||
|
},
|
||||||
|
"original": {
|
||||||
|
"owner": "nix-community",
|
||||||
|
"repo": "nix-index-database",
|
||||||
|
"type": "github"
|
||||||
|
}
|
||||||
|
},
|
||||||
"nixpkgs": {
|
"nixpkgs": {
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1754028485,
|
"lastModified": 1754028485,
|
||||||
@@ -192,11 +169,11 @@
|
|||||||
},
|
},
|
||||||
"nixpkgs_2": {
|
"nixpkgs_2": {
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1774106199,
|
"lastModified": 1785571196,
|
||||||
"narHash": "sha256-US5Tda2sKmjrg2lNHQL3jRQ6p96cgfWh3J1QBliQ8Ws=",
|
"narHash": "sha256-KoTsyMQqnXQZq8deCEnu4QkyldkwH/bpMMhUcfMdGIw=",
|
||||||
"owner": "nixos",
|
"owner": "nixos",
|
||||||
"repo": "nixpkgs",
|
"repo": "nixpkgs",
|
||||||
"rev": "6c9a78c09ff4d6c21d0319114873508a6ec01655",
|
"rev": "148bab9c1c3c53136ecb44a6ea356a0ed5b39b06",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
@@ -208,35 +185,29 @@
|
|||||||
},
|
},
|
||||||
"nixpkgs_3": {
|
"nixpkgs_3": {
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1771008912,
|
"lastModified": 1784796856,
|
||||||
"narHash": "sha256-gf2AmWVTs8lEq7z/3ZAsgnZDhWIckkb+ZnAo5RzSxJg=",
|
"narHash": "sha256-vwxWgF+Gj276WznzGb1LxGsK/39HaQwgQXiU3EkC844=",
|
||||||
"owner": "nixos",
|
"rev": "e2587caef70cea85dd97d7daab492899902dbf5d",
|
||||||
"repo": "nixpkgs",
|
"type": "tarball",
|
||||||
"rev": "a82ccc39b39b621151d6732718e3e250109076fa",
|
"url": "https://releases.nixos.org/nixos/unstable/nixos-26.11pre1040357.e2587caef70c/nixexprs.tar.xz"
|
||||||
"type": "github"
|
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
"owner": "nixos",
|
"type": "tarball",
|
||||||
"ref": "nixos-unstable",
|
"url": "https://channels.nixos.org/nixos-unstable/nixexprs.tar.xz"
|
||||||
"repo": "nixpkgs",
|
|
||||||
"type": "github"
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"nvf": {
|
"nvf": {
|
||||||
"inputs": {
|
"inputs": {
|
||||||
"flake-compat": "flake-compat",
|
"flake-compat": "flake-compat",
|
||||||
"flake-parts": "flake-parts",
|
|
||||||
"mnw": "mnw",
|
"mnw": "mnw",
|
||||||
"ndg": "ndg",
|
"nixpkgs": "nixpkgs_3"
|
||||||
"nixpkgs": "nixpkgs_3",
|
|
||||||
"systems": "systems_2"
|
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1774375131,
|
"lastModified": 1785632973,
|
||||||
"narHash": "sha256-d22VIgsDXagQQWnAnebYeQWGHlmF81YRwuGCzAgNZAQ=",
|
"narHash": "sha256-j4NzdhN4dgpvORbKdteIcw8M2WJyKrIgalBxT/CNk+c=",
|
||||||
"owner": "notashelf",
|
"owner": "notashelf",
|
||||||
"repo": "nvf",
|
"repo": "nvf",
|
||||||
"rev": "d847d401bea4dcb1478d02a61a3209fa8512f71d",
|
"rev": "c82d4e47cc1baab21d4954760db49941aaa39b49",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
@@ -250,6 +221,7 @@
|
|||||||
"agenix": "agenix",
|
"agenix": "agenix",
|
||||||
"home-manager": "home-manager_2",
|
"home-manager": "home-manager_2",
|
||||||
"nix-flatpak": "nix-flatpak",
|
"nix-flatpak": "nix-flatpak",
|
||||||
|
"nix-index-database": "nix-index-database",
|
||||||
"nixpkgs": "nixpkgs_2",
|
"nixpkgs": "nixpkgs_2",
|
||||||
"nvf": "nvf"
|
"nvf": "nvf"
|
||||||
}
|
}
|
||||||
@@ -268,21 +240,6 @@
|
|||||||
"repo": "default",
|
"repo": "default",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
}
|
}
|
||||||
},
|
|
||||||
"systems_2": {
|
|
||||||
"locked": {
|
|
||||||
"lastModified": 1681028828,
|
|
||||||
"narHash": "sha256-Vy1rq5AaRuLzOxct8nz4T6wlgyUR7zLU309k9mBC768=",
|
|
||||||
"owner": "nix-systems",
|
|
||||||
"repo": "default",
|
|
||||||
"rev": "da67096a3b9bf56a91d16901293e51ba5b49a27e",
|
|
||||||
"type": "github"
|
|
||||||
},
|
|
||||||
"original": {
|
|
||||||
"owner": "nix-systems",
|
|
||||||
"repo": "default",
|
|
||||||
"type": "github"
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"root": "root",
|
"root": "root",
|
||||||
|
|||||||
@@ -10,6 +10,11 @@
|
|||||||
|
|
||||||
agenix.url = "github:ryantm/agenix";
|
agenix.url = "github:ryantm/agenix";
|
||||||
|
|
||||||
|
nix-index-database = {
|
||||||
|
url = "github:nix-community/nix-index-database";
|
||||||
|
inputs.nixpkgs.follows = "nixpkgs";
|
||||||
|
};
|
||||||
|
|
||||||
nix-flatpak.url = "github:gmodena/nix-flatpak/?ref=latest";
|
nix-flatpak.url = "github:gmodena/nix-flatpak/?ref=latest";
|
||||||
|
|
||||||
nvf.url = "github:notashelf/nvf";
|
nvf.url = "github:notashelf/nvf";
|
||||||
@@ -30,6 +35,7 @@
|
|||||||
inputs.nix-flatpak.nixosModules.nix-flatpak
|
inputs.nix-flatpak.nixosModules.nix-flatpak
|
||||||
inputs.nvf.nixosModules.default
|
inputs.nvf.nixosModules.default
|
||||||
inputs.agenix.nixosModules.default
|
inputs.agenix.nixosModules.default
|
||||||
|
inputs.nix-index-database.nixosModules.default
|
||||||
];
|
];
|
||||||
|
|
||||||
mkHost =
|
mkHost =
|
||||||
|
|||||||
@@ -31,8 +31,11 @@
|
|||||||
fsType = "nfs";
|
fsType = "nfs";
|
||||||
options = [
|
options = [
|
||||||
"x-systemd.automount"
|
"x-systemd.automount"
|
||||||
|
"nofail"
|
||||||
"noauto"
|
"noauto"
|
||||||
"nfsvers=4"
|
"nfsvers=4"
|
||||||
|
"soft"
|
||||||
|
"timeo=50"
|
||||||
];
|
];
|
||||||
depends = [ "/home" ];
|
depends = [ "/home" ];
|
||||||
};
|
};
|
||||||
@@ -41,8 +44,11 @@
|
|||||||
fsType = "nfs";
|
fsType = "nfs";
|
||||||
options = [
|
options = [
|
||||||
"x-systemd.automount"
|
"x-systemd.automount"
|
||||||
|
"nofail"
|
||||||
"noauto"
|
"noauto"
|
||||||
"nfsvers=4"
|
"nfsvers=4"
|
||||||
|
"soft"
|
||||||
|
"timeo=50"
|
||||||
];
|
];
|
||||||
depends = [ "/home" ];
|
depends = [ "/home" ];
|
||||||
};
|
};
|
||||||
@@ -51,8 +57,11 @@
|
|||||||
fsType = "nfs";
|
fsType = "nfs";
|
||||||
options = [
|
options = [
|
||||||
"x-systemd.automount"
|
"x-systemd.automount"
|
||||||
|
"nofail"
|
||||||
"noauto"
|
"noauto"
|
||||||
"nfsvers=4"
|
"nfsvers=4"
|
||||||
|
"soft"
|
||||||
|
"timeo=50"
|
||||||
];
|
];
|
||||||
depends = [ "/home" ];
|
depends = [ "/home" ];
|
||||||
};
|
};
|
||||||
@@ -73,6 +82,19 @@
|
|||||||
hyprland.enable = true;
|
hyprland.enable = true;
|
||||||
kde.enable = true;
|
kde.enable = true;
|
||||||
docker.enable = true;
|
docker.enable = true;
|
||||||
|
steam.enable = true;
|
||||||
|
office.enable = true;
|
||||||
|
mullvad.enable = true;
|
||||||
|
alacritty.enable = true;
|
||||||
|
ardour.enable = true;
|
||||||
|
mail.enable = true;
|
||||||
|
supertuxkart.enable = true;
|
||||||
|
flatpak = {
|
||||||
|
enable = true;
|
||||||
|
media.enable = true;
|
||||||
|
dev.enable = true;
|
||||||
|
gaming.enable = true;
|
||||||
|
};
|
||||||
containers = {
|
containers = {
|
||||||
nixos = {
|
nixos = {
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -10,6 +10,7 @@
|
|||||||
laptop.enable = true;
|
laptop.enable = true;
|
||||||
hyprland.enable = true;
|
hyprland.enable = true;
|
||||||
kde.enable = true;
|
kde.enable = true;
|
||||||
|
ardour.enable = true;
|
||||||
};
|
};
|
||||||
|
|
||||||
home-manager = {
|
home-manager = {
|
||||||
|
|||||||
@@ -1,31 +1,45 @@
|
|||||||
# Do not modify this file! It was generated by ‘nixos-generate-config’
|
# Do not modify this file! It was generated by ‘nixos-generate-config’
|
||||||
# and may be overwritten by future invocations. Please make changes
|
# and may be overwritten by future invocations. Please make changes
|
||||||
# to /etc/nixos/configuration.nix instead.
|
# to /etc/nixos/configuration.nix instead.
|
||||||
{ config, lib, pkgs, modulesPath, ... }:
|
{
|
||||||
|
config,
|
||||||
|
lib,
|
||||||
|
pkgs,
|
||||||
|
modulesPath,
|
||||||
|
...
|
||||||
|
}:
|
||||||
|
|
||||||
{
|
{
|
||||||
imports =
|
imports = [
|
||||||
[ (modulesPath + "/installer/scan/not-detected.nix")
|
(modulesPath + "/installer/scan/not-detected.nix")
|
||||||
];
|
];
|
||||||
|
|
||||||
boot.initrd.availableKernelModules = [ "xhci_pci" "nvme" "usb_storage" "sd_mod" ];
|
boot.initrd.availableKernelModules = [
|
||||||
|
"xhci_pci"
|
||||||
|
"nvme"
|
||||||
|
"usb_storage"
|
||||||
|
"sd_mod"
|
||||||
|
];
|
||||||
boot.initrd.kernelModules = [ ];
|
boot.initrd.kernelModules = [ ];
|
||||||
boot.kernelModules = [ "kvm-intel" ];
|
boot.kernelModules = [ "kvm-intel" ];
|
||||||
boot.extraModulePackages = [ ];
|
boot.extraModulePackages = [ ];
|
||||||
|
|
||||||
fileSystems."/" =
|
fileSystems."/" = {
|
||||||
{ device = "/dev/disk/by-uuid/ceed0ac4-72b3-4050-b8a3-0b91aa845da0";
|
device = "/dev/disk/by-uuid/ceed0ac4-72b3-4050-b8a3-0b91aa845da0";
|
||||||
fsType = "ext4";
|
fsType = "ext4";
|
||||||
};
|
};
|
||||||
|
|
||||||
fileSystems."/boot" =
|
fileSystems."/boot" = {
|
||||||
{ device = "/dev/disk/by-uuid/65F0-BF7E";
|
device = "/dev/disk/by-uuid/65F0-BF7E";
|
||||||
fsType = "vfat";
|
fsType = "vfat";
|
||||||
options = [ "fmask=0077" "dmask=0077" ];
|
options = [
|
||||||
|
"fmask=0077"
|
||||||
|
"dmask=0077"
|
||||||
|
];
|
||||||
};
|
};
|
||||||
|
|
||||||
swapDevices =
|
swapDevices = [
|
||||||
[ { device = "/dev/disk/by-uuid/3567a75d-12cc-4c3e-a37d-9b99708cbfea"; }
|
{ device = "/dev/disk/by-uuid/3567a75d-12cc-4c3e-a37d-9b99708cbfea"; }
|
||||||
];
|
];
|
||||||
|
|
||||||
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
|
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
|
||||||
|
|||||||
@@ -15,7 +15,7 @@ in
|
|||||||
enable = true;
|
enable = true;
|
||||||
commands = {
|
commands = {
|
||||||
dragon-out = ''%${pkgs.dragon-drop}/bin/xdragon -a -x "$fx"'';
|
dragon-out = ''%${pkgs.dragon-drop}/bin/xdragon -a -x "$fx"'';
|
||||||
editor-open = ''$$EDITOR $f'';
|
editor-open = "$$EDITOR $f";
|
||||||
mkdir = ''
|
mkdir = ''
|
||||||
''${{
|
''${{
|
||||||
printf "Directory Name: "
|
printf "Directory Name: "
|
||||||
|
|||||||
@@ -18,11 +18,13 @@ in
|
|||||||
environment.systemPackages = with pkgs; [
|
environment.systemPackages = with pkgs; [
|
||||||
ardour
|
ardour
|
||||||
guitarix
|
guitarix
|
||||||
|
tuxguitar
|
||||||
caps
|
caps
|
||||||
lsp-plugins
|
lsp-plugins
|
||||||
calf
|
calf
|
||||||
dragonfly-reverb
|
dragonfly-reverb
|
||||||
tap-plugins
|
tap-plugins
|
||||||
|
hydrogen
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
{ config, lib, ... }:
|
{ config, lib, pkgs, ... }:
|
||||||
let
|
let
|
||||||
inherit (lib) mkIf mkOption types;
|
inherit (lib) mkIf mkOption types;
|
||||||
in
|
in
|
||||||
@@ -18,6 +18,15 @@ in
|
|||||||
alsa.support32Bit = true;
|
alsa.support32Bit = true;
|
||||||
pulse.enable = true;
|
pulse.enable = true;
|
||||||
jack.enable = true;
|
jack.enable = true;
|
||||||
|
extraConfig.pipewire."92-low-latency" = {
|
||||||
|
"context.properties" = {
|
||||||
|
"default.clock.rate" = 48000;
|
||||||
|
"default.clock.quantum" = 128;
|
||||||
|
"default.clock.min-quantum" = 128;
|
||||||
|
"default.clock.max-quantum" = 128;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
};
|
||||||
|
environment.systemPackages = with pkgs; [ pulseaudioFull ];
|
||||||
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -32,6 +32,9 @@ in
|
|||||||
nix.enable = true;
|
nix.enable = true;
|
||||||
clang.enable = true;
|
clang.enable = true;
|
||||||
rust.enable = true;
|
rust.enable = true;
|
||||||
|
arduino.enable = true;
|
||||||
|
bash.enable = true;
|
||||||
|
lua.enable = true;
|
||||||
};
|
};
|
||||||
theme = {
|
theme = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
|||||||
@@ -24,6 +24,8 @@ in
|
|||||||
btop
|
btop
|
||||||
file
|
file
|
||||||
vim
|
vim
|
||||||
|
man-pages
|
||||||
|
man-pages-posix
|
||||||
fastfetch
|
fastfetch
|
||||||
lf
|
lf
|
||||||
tshark
|
tshark
|
||||||
@@ -35,9 +37,9 @@ in
|
|||||||
efibootmgr
|
efibootmgr
|
||||||
nfs-utils
|
nfs-utils
|
||||||
nmap
|
nmap
|
||||||
comma
|
|
||||||
nix-index
|
|
||||||
agenix.packages.${stdenv.hostPlatform.system}.default
|
agenix.packages.${stdenv.hostPlatform.system}.default
|
||||||
|
nixpkgs-review
|
||||||
];
|
];
|
||||||
|
programs.nix-index-database.comma.enable = true;
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -58,7 +58,8 @@ in
|
|||||||
''"sonarr.internal.smayzy.ovh. A 192.168.1.203"''
|
''"sonarr.internal.smayzy.ovh. A 192.168.1.203"''
|
||||||
''"srv1-proxmox.internal.smayzy.ovh. A 192.168.1.203"''
|
''"srv1-proxmox.internal.smayzy.ovh. A 192.168.1.203"''
|
||||||
''"srv2-proxmox.internal.smayzy.ovh. A 192.168.1.203"''
|
''"srv2-proxmox.internal.smayzy.ovh. A 192.168.1.203"''
|
||||||
''"srv1-pbs.internal.smayzy.ovh. A 192.168.1.203"''
|
''"srv1-pbs.internal.smayzy.ovh. A 192.168.1.79"''
|
||||||
|
''"srv2-pbs.internal.smayzy.ovh. A 192.168.1.80"''
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -2,5 +2,6 @@
|
|||||||
{
|
{
|
||||||
imports = [
|
imports = [
|
||||||
./steam.nix
|
./steam.nix
|
||||||
|
./supertuxkart.nix
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -16,6 +16,6 @@ in
|
|||||||
|
|
||||||
config = mkIf config.smayzy.steam.enable {
|
config = mkIf config.smayzy.steam.enable {
|
||||||
programs.steam.enable = true;
|
programs.steam.enable = true;
|
||||||
environment.systemPackages = with pkgs; [ depotdownloader];
|
environment.systemPackages = with pkgs; [ depotdownloader gamescope ];
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -0,0 +1,20 @@
|
|||||||
|
{
|
||||||
|
lib,
|
||||||
|
config,
|
||||||
|
pkgs,
|
||||||
|
...
|
||||||
|
}:
|
||||||
|
let
|
||||||
|
inherit (lib) mkIf mkOption types;
|
||||||
|
in
|
||||||
|
{
|
||||||
|
options.smayzy.supertuxkart.enable = mkOption {
|
||||||
|
type = types.bool;
|
||||||
|
default = false;
|
||||||
|
description = "supertuxkart";
|
||||||
|
};
|
||||||
|
|
||||||
|
config = mkIf config.smayzy.supertuxkart.enable {
|
||||||
|
environment.systemPackages = with pkgs; [ supertuxkart ];
|
||||||
|
};
|
||||||
|
}
|
||||||
@@ -17,5 +17,6 @@ in
|
|||||||
nvf.enable = true;
|
nvf.enable = true;
|
||||||
zsh.enable = true;
|
zsh.enable = true;
|
||||||
};
|
};
|
||||||
|
documentation.dev.enable = true;
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,4 +1,9 @@
|
|||||||
{ lib, config, pkgs, ... }:
|
{
|
||||||
|
lib,
|
||||||
|
config,
|
||||||
|
pkgs,
|
||||||
|
...
|
||||||
|
}:
|
||||||
let
|
let
|
||||||
inherit (lib) mkIf mkOption types;
|
inherit (lib) mkIf mkOption types;
|
||||||
in
|
in
|
||||||
@@ -13,24 +18,12 @@ in
|
|||||||
smayzy = {
|
smayzy = {
|
||||||
base = true;
|
base = true;
|
||||||
power = "desktop";
|
power = "desktop";
|
||||||
steam.enable = true;
|
|
||||||
audio.enable = true;
|
audio.enable = true;
|
||||||
office.enable = true;
|
|
||||||
sddm.enable = true;
|
sddm.enable = true;
|
||||||
mullvad.enable = true;
|
|
||||||
wireguard.enable = true;
|
wireguard.enable = true;
|
||||||
gui-utilities.enable = true;
|
gui-utilities.enable = true;
|
||||||
mouse.enable = true;
|
mouse.enable = true;
|
||||||
flatpak = {
|
|
||||||
enable = true;
|
|
||||||
media.enable = true;
|
|
||||||
dev.enable = true;
|
|
||||||
gaming.enable = true;
|
|
||||||
};
|
|
||||||
tor.enable = true;
|
tor.enable = true;
|
||||||
alacritty.enable = true;
|
|
||||||
mail.enable = true;
|
|
||||||
ardour.enable = true;
|
|
||||||
};
|
};
|
||||||
programs.firefox.enable = true;
|
programs.firefox.enable = true;
|
||||||
programs.wireshark.enable = true;
|
programs.wireshark.enable = true;
|
||||||
@@ -42,7 +35,6 @@ in
|
|||||||
komikku
|
komikku
|
||||||
inkscape
|
inkscape
|
||||||
blender
|
blender
|
||||||
bitwarden-desktop
|
|
||||||
aegisub
|
aegisub
|
||||||
kdePackages.kdenlive
|
kdePackages.kdenlive
|
||||||
freecad-wayland
|
freecad-wayland
|
||||||
@@ -59,6 +51,7 @@ in
|
|||||||
android-tools
|
android-tools
|
||||||
gdb
|
gdb
|
||||||
chromium
|
chromium
|
||||||
|
rpi-imager
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -35,6 +35,11 @@ in
|
|||||||
steam.enable = true;
|
steam.enable = true;
|
||||||
mail.enable = true;
|
mail.enable = true;
|
||||||
};
|
};
|
||||||
|
hardware.bluetooth = {
|
||||||
|
enable = true;
|
||||||
|
powerOnBoot = false;
|
||||||
|
};
|
||||||
|
services.blueman.enable = true;
|
||||||
programs.firefox.enable = true;
|
programs.firefox.enable = true;
|
||||||
programs.wireshark.enable = true;
|
programs.wireshark.enable = true;
|
||||||
networking.networkmanager.enable = true;
|
networking.networkmanager.enable = true;
|
||||||
@@ -45,7 +50,6 @@ in
|
|||||||
obsidian
|
obsidian
|
||||||
komikku
|
komikku
|
||||||
inkscape
|
inkscape
|
||||||
bitwarden-desktop
|
|
||||||
aegisub
|
aegisub
|
||||||
kdePackages.kdenlive
|
kdePackages.kdenlive
|
||||||
freecad-wayland
|
freecad-wayland
|
||||||
@@ -60,6 +64,7 @@ in
|
|||||||
firejail
|
firejail
|
||||||
gdb
|
gdb
|
||||||
chromium
|
chromium
|
||||||
|
rpi-imager
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -21,7 +21,7 @@ in
|
|||||||
};
|
};
|
||||||
|
|
||||||
xdg.portal.enable = true;
|
xdg.portal.enable = true;
|
||||||
xdg.portal.extraPortals = [ pkgs.xdg-desktop-portal-gtk ];
|
xdg.portal.extraPortals = [ pkgs.xdg-desktop-portal-hyprland ];
|
||||||
|
|
||||||
fonts.packages = with pkgs; [ nerd-fonts.jetbrains-mono ];
|
fonts.packages = with pkgs; [ nerd-fonts.jetbrains-mono ];
|
||||||
|
|
||||||
@@ -42,6 +42,7 @@ in
|
|||||||
slurp
|
slurp
|
||||||
mako
|
mako
|
||||||
kdePackages.dolphin
|
kdePackages.dolphin
|
||||||
|
brightnessctl
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user