1 Commits

Author SHA1 Message Date
6e305eb081 added configuration for the screenshare picker 2026-02-01 15:58:43 +01:00
8 changed files with 97 additions and 73 deletions

38
flake.lock generated
View File

@@ -3,16 +3,20 @@
"elephant": {
"inputs": {
"nixpkgs": [
"walker",
"nixpkgs"
],
"systems": "systems"
"systems": [
"walker",
"systems"
]
},
"locked": {
"lastModified": 1769329000,
"narHash": "sha256-0vibWqmCsG1t4xL2euR6PScB3M4QZigB5JGl+BIH4NY=",
"lastModified": 1759675127,
"narHash": "sha256-AsYUdOukKNXIu47CpQNJeAccu524sIj9UTuP9Aadycs=",
"owner": "abenz1267",
"repo": "elephant",
"rev": "1988112d1f54dd76e8a90f551945df763586bdad",
"rev": "abfa18c844f1028b0b2beef456fee6d40e98dfad",
"type": "github"
},
"original": {
@@ -23,7 +27,7 @@
},
"flake-utils": {
"inputs": {
"systems": "systems_2"
"systems": "systems"
},
"locked": {
"lastModified": 1731533236,
@@ -100,7 +104,6 @@
},
"root": {
"inputs": {
"elephant": "elephant",
"nix-options-doc": "nix-options-doc",
"nixpkgs": "nixpkgs",
"walker": "walker",
@@ -129,21 +132,6 @@
}
},
"systems": {
"locked": {
"lastModified": 1689347949,
"narHash": "sha256-12tWmuL2zgBgZkdoB6qXZsgJEH9LR3oUgpaQq2RbI80=",
"owner": "nix-systems",
"repo": "default-linux",
"rev": "31732fcf5e8fea42e59c2488ad31a0e651500f68",
"type": "github"
},
"original": {
"owner": "nix-systems",
"repo": "default-linux",
"type": "github"
}
},
"systems_2": {
"locked": {
"lastModified": 1681028828,
"narHash": "sha256-Vy1rq5AaRuLzOxct8nz4T6wlgyUR7zLU309k9mBC768=",
@@ -158,7 +146,7 @@
"type": "github"
}
},
"systems_3": {
"systems_2": {
"locked": {
"lastModified": 1689347949,
"narHash": "sha256-12tWmuL2zgBgZkdoB6qXZsgJEH9LR3oUgpaQq2RbI80=",
@@ -175,13 +163,11 @@
},
"walker": {
"inputs": {
"elephant": [
"elephant"
],
"elephant": "elephant",
"nixpkgs": [
"nixpkgs"
],
"systems": "systems_3"
"systems": "systems_2"
},
"locked": {
"lastModified": 1760434150,

View File

@@ -31,9 +31,17 @@
};
"*.yaml" = {
indent_style = "space";
indent_size = 2;
indent_size = 4;
};
"*.yml" = {
indent_style = "space";
indent_size = 4;
};
"compose.yml" = {
indent_style = "space";
indent_size = 2;
};
"compose.yaml" = {
indent_style = "space";
indent_size = 2;
};

View File

@@ -9,7 +9,20 @@ let
in
{
options = {
modules.hyprland.enable = lib.mkEnableOption "hyprland";
modules.hyprland.enable = lib.mkOption {
type = lib.types.bool;
default = false;
description = ''
Whether to enable the hyprland configuration module.
Warning: This does not include the installation of hyprland itself.
recommended dependencies:
hyprpaper
hypridle
hyprlock
hyprshot
https://github.com/WhySoBad/hyprland-preview-share-picker/tree/master
'';
};
};
config = lib.mkIf config.modules.hyprland.enable {
@@ -22,6 +35,7 @@ in
"hypr/hyprpaper.conf".source = config.lib.file.mkOutOfStoreSymlink ./hyprland/hyprpaper.conf;
"hypr/hypridle.conf".source = config.lib.file.mkOutOfStoreSymlink ./hyprland/hypridle.conf;
"hypr/hyprlock.conf".source = config.lib.file.mkOutOfStoreSymlink ./hyprland/hyprlock.conf;
"hypr/xdph.conf".source = config.lib.file.mkOutOfStoreSymlink ./hyprland/xdph.conf;
"backgrounds".source = config.lib.file.mkOutOfStoreSymlink ./backgrounds;
"hypr/nix.conf".text = ''

View File

@@ -26,7 +26,7 @@ source = ~/.config/hypr/nix.conf
# Set programs that you use
$terminal = ghostty
$fileManager = nautilus
$browser = zen-beta
$browser = zen
$menu = walker
#################
@@ -42,17 +42,17 @@ exec-once = gsettings set org.gnome.desktop.interface cursor-size 24
# This requires gpu-screen-recorder to be installed. I installed it with this https://wiki.nixos.org/wiki/Gpu-screen-recorder.
exec-once = ~/.config/hypr/scripts/gpu-screen-recorder/start-replay.sh
exec-once = spotify & signal-desktop & thunderbird & gnome-calendar & bitwarden & $browser & discord & steam-silent
exec-once = [workspace 4 silent] signal-desktop
exec-once = [workspace 4 silent] spotify
exec-once = [workspace 4 silent] thunderbird
exec-once = [workspace 3 silent] gnome-calendar
exec-once = [workspace 3 silent] bitwarden
exec-once = [workspace 3 silent] errands
exec-once = [workspace 2 silent] $browser
exec-once = [workspace 1 silent] $terminal
windowrule = match:class ^(zen-beta)$, workspace 2 silent
windowrule = match:class ^(org.gnome.Calendar)$, workspace 3 silent
windowrule = match:class ^(Bitwarden)$, workspace 3 silent
windowrule = match:class ^(discord)$, workspace 4 silent
windowrule = match:class ^(thunderbird)$, workspace 4 silent
windowrule = match:class ^(signal)$, workspace 4 silent
windowrule = match:class ^(Spotify)$, workspace 4 silent
# exec-once = [workspace 4 silent] discord
# windowrulev2 = workspace 4 silent once, class:^(discord)$
env = HYPRCURSOR_SIZE,28
@@ -216,7 +216,7 @@ bind = $mainMod, T, exec, $terminal
bind = $mainMod, B, exec, $browser
bind = $mainMod, I, exec, hyprpanel toggleWindow bar-0
bind = $mainMod, C, killactive,
bind = $mainMod SHIFT, Q, exit,
bind = $mainMod, Q, exit,
bind = $mainMod, F, fullscreen, 1
bind = $mainMod ALT, F, fullscreen, 0
bind = $mainMod, E, exec, $fileManager
@@ -289,3 +289,25 @@ bindl=, XF86AudioMute, exec, wpctl set-mute @DEFAULT_AUDIO_SINK@ toggle
bindl=, XF86AudioPlay, exec, playerctl play-pause # the stupid key is called play , but it toggles
bindl=, XF86AudioNext, exec, playerctl next
bindl=, XF86AudioPrev, exec, playerctl previous
##############################
### WINDOWS AND WORKSPACES ###
##############################
# See https://wiki.hyprland.org/Configuring/Window-Rules/ for more
# See https://wiki.hyprland.org/Configuring/Workspace-Rules/ for workspace rules
# Example windowrule v1
# windowrule = float, ^(kitty)$
# Example windowrule v2
# windowrulev2 = float,class:^(kitty)$,title:^(kitty)$
windowrulev2 = suppressevent maximize, class:.* # You'll probably like this.
# windowrulev2 = noanim,class:ulauncher
windowrulev2 = noborder,class:ulauncher
windowrulev2 = noblur,class:ulauncher
windowrulev2 = noshadow,class:ulauncher
# layerrule = blur, wofi
# layerrule = blur, waybar

View File

@@ -0,0 +1,3 @@
screencopy {
custom_picker_binary = hyprland-preview-share-picker
}

View File

@@ -36,5 +36,3 @@ vim.opt.showtabline = 1
-- remove indicators above statusline
vim.opt.showmode = false
vim.opt.diffopt = "vertical"

View File

@@ -4,7 +4,7 @@ return {
build = ':TSUpdate',
event = { "BufReadPost", "BufNewFile" },
config = function()
require("nvim-treesitter").setup {
require("nvim-treesitter.configs").setup {
ensure_installed = {
"lua",
"typescript",
@@ -26,7 +26,14 @@ return {
},
indent = {
enable = true
},
}
}
end,
dependencies = {
{
"nvim-treesitter/nvim-treesitter-textobjects",
config = function()
require("nvim-treesitter.configs").setup {
textobjects = {
select = {
enable = true,
@@ -47,10 +54,7 @@ return {
}
}
}
end,
dependencies = {
{
"nvim-treesitter/nvim-treesitter-textobjects",
end
},
}
},

View File

@@ -29,9 +29,6 @@
};
};
programs.direnv.enable = true;
programs.direnv.silent = true;
home.packages = [
# note taking
@@ -47,9 +44,7 @@
pkgs.steam-run
pkgs.sops
pkgs.pavucontrol
# https://github.com/quirinecker/dotfiles-modules/issues/13
# pkgs.errands
pkgs.errands
# editors
# pkgs.zed-editor # updating softwar crashed the pc. Not in use right now anyway. disabled for now
@@ -78,11 +73,9 @@
pkgs.gnome-system-monitor
pkgs.geary
pkgs.nautilus
pkgs.baobab
# social
pkgs.discord
pkgs.element-desktop
pkgs.signal-desktop
pkgs.spotify
@@ -91,10 +84,6 @@
pkgs.python3
pkgs.typescript
pkgs.typst
# Gaming
pkgs.gdlauncher-carbon # Minecraft Launcher for mods and vanilla
];
};
}