aboutsummaryrefslogtreecommitdiff
path: root/nixos/.flake/home/hyprland.nix.org
diff options
context:
space:
mode:
authorJacob Janzen <jacob.a.s.janzen@gmail.com>2024-10-07 18:55:30 -0500
committerJacob Janzen <jacob.a.s.janzen@gmail.com>2024-10-07 18:55:30 -0500
commit616c0b69313ce28bcc727b1763e99604929c30da (patch)
treed09cf3083ead9885000487440f48ce4e43a920f8 /nixos/.flake/home/hyprland.nix.org
parent0ef7783a21a5f63f45d8c1bc466d0dce435f966e (diff)
begin nix migration for mac
Diffstat (limited to 'nixos/.flake/home/hyprland.nix.org')
l---------[-rw-r--r--]nixos/.flake/home/hyprland.nix.org176
1 files changed, 1 insertions, 175 deletions
diff --git a/nixos/.flake/home/hyprland.nix.org b/nixos/.flake/home/hyprland.nix.org
index 725f920..d2a0693 100644..120000
--- a/nixos/.flake/home/hyprland.nix.org
+++ b/nixos/.flake/home/hyprland.nix.org
@@ -1,175 +1 @@
-#+title: Hyprland Configuration
-
-Open my Hyprland configuration.
-#+begin_src nix :tangle ~/.flake/home/hyprland.nix :mkdirp yes
- { config, pkgs, ... }:
-
- {
- wayland.windowManager.hyprland = {
- enable = true;
- settings = {
-#+end_src
-
-I have a 1440p monitor and a 1080p monitor to its left rotated to be vertical.
-#+begin_src nix :tangle ~/.flake/home/hyprland.nix :mkdirp yes
- monitor = [ "DP-2, 2560x1440@180, 0x0, 1" "HDMI-A-2, 1920x1080@60, -1080x-100, 1, transform, 3" ];
-#+end_src
-
-Set terminal, file manager, and menu.
-#+begin_src nix :tangle ~/.flake/home/hyprland.nix :mkdirp yes
- "$terminal" = "foot";
- "$fileManager" = "dolphin";
- "$menu" = "fuzzel";
-#+end_src
-
-Enable startup applications:
-- =nm-applet= for network configuration
-- =blueman-applet= for bluetooth configuration
-- =waybar= as top bar
-- =swaybg= to set wallpaper
-- =mpdscribble= as Last.fm scrobbler program.
-#+begin_src nix :tangle ~/.flake/home/hyprland.nix :mkdirp yes
- exec-once = [
- "nm-applet &"
- "blueman-applet &"
- "waybar"
- "swaybg -m fill -i ~/.wallpaper"
- "mpdscribble"
- ];
-#+end_src
-
-Specify cursor size.
-#+begin_src nix :tangle ~/.flake/home/hyprland.nix :mkdirp yes
- env = [
- "XCURSOR_SIZE,24"
- "HYPRCURSOR_SIZE,24"
- ];
-#+end_src
-
-Set general appearance of the window manager.
-#+begin_src nix :tangle ~/.flake/home/hyprland.nix :mkdirp yes
- general = {
- gaps_in = 5;
- gaps_out = 20;
- border_size = 2;
- resize_on_border = false;
- layout = "dwindle";
- "col.active_border" = "rgba(33ccffee) rgba(00ff99ee) 45deg";
- "col.inactive_border" = "rgba(595959aa)";
- };
-#+end_src
-
-Set window decorations.
-#+begin_src nix :tangle ~/.flake/home/hyprland.nix :mkdirp yes
- decoration = {
- rounding = 10;
- active_opacity = 1.0;
- inactive_opacity = 1.0;
- drop_shadow = true;
- shadow_range = 4;
- shadow_render_power = 3;
- "col.shadow" = "rgba(1a1a1aee)";
- blur = {
- enabled = true;
- size = 3;
- passes = 1;
- vibrancy = "0.1696";
- };
- };
-#+end_src
-
-Set window animations.
-#+begin_src nix :tangle ~/.flake/home/hyprland.nix :mkdirp yes
- animations = {
- enabled = true;
- bezier = "myBezier, 0.05, 0.9, 0.1, 1.05";
- animation = [
- "windows, 1, 7, myBezier"
- "windowsOut, 1, 7, default, popin 80%"
- "border, 1, 10, default" "borderangle, 1, 8, default"
- "fade, 1, 7, default" "workspaces, 1, 6, default"
- ];
- };
-#+end_src
-
-Configure layouts.
-#+begin_src nix :tangle ~/.flake/home/hyprland.nix :mkdirp yes
- dwindle = {
- pseudotile = true;
- preserve_split = true;
- };
- master = {
- new_status = "master";
- };
-#+end_src
-
-Configure the inputs.
-#+begin_src nix :tangle ~/.flake/home/hyprland.nix :mkdirp yes
- input = {
- kb_layout = "us";
- follow_mouse = 1;
- sensitivity = 0;
- };
-#+end_src
-
-Configure window manager controls.
-#+begin_src nix :tangle ~/.flake/home/hyprland.nix :mkdirp yes
- "$mainMod" = "SUPER";
- bind = [
- "$mainMod, RETURN, exec, $terminal"
- "$mainMod SHIFT, Q, killactive"
- "$mainMod, E, exec, $fileManager"
- "$mainMod SHIFT, SPACE, togglefloating"
- "$mainMod, D, exec, $menu"
- "$mainMod, P, pseudo"
- "$mainMod SHIFT, E, togglesplit"
- "$mainMod, H, movefocus, l"
- "$mainMod, J, movefocus, d"
- "$mainMod, K, movefocus, u"
- "$mainMod, L, movefocus, r"
- "$mainMod, 1, workspace, 1"
- "$mainMod, 2, workspace, 2"
- "$mainMod, 3, workspace, 3"
- "$mainMod, 4, workspace, 4"
- "$mainMod, 5, workspace, 5"
- "$mainMod, 6, workspace, 6"
- "$mainMod, 7, workspace, 7"
- "$mainMod, 8, workspace, 8"
- "$mainMod, 9, workspace, 9"
- "$mainMod, 0, workspace, 10"
- "$mainMod SHIFT, 1, movetoworkspace, 1"
- "$mainMod SHIFT, 2, movetoworkspace, 2"
- "$mainMod SHIFT, 3, movetoworkspace, 3"
- "$mainMod SHIFT, 4, movetoworkspace, 4"
- "$mainMod SHIFT, 5, movetoworkspace, 5"
- "$mainMod SHIFT, 6, movetoworkspace, 6"
- "$mainMod SHIFT, 7, movetoworkspace, 7"
- "$mainMod SHIFT, 8, movetoworkspace, 8"
- "$mainMod SHIFT, 9, movetoworkspace, 9"
- "$mainMod SHIFT, 0, movetoworkspace, 10"
- "$mainMod CONTROL, L, exec, hyprlock"
- "$mainMod, S, exec, hyprshot -m window --clipboard-only"
- "$mainMod SHIFT, S, exec, hyprshot -m region --clipboard-only"
- "$mainMod SHIFT CONTROL, S, exec, hyprshot -m output --clipboard-only"
- "$mainMod, M, exec, ~/.local/bin/poweroptions.sh"
- "$mainMod, F, fullscreen"
- ];
- bindel = [
- ",XF86AudioRaiseVolume, exec, wpctl set-volume @DEFAULT_AUDIO_SINK@ 5%+"
- ",XF86AudioLowerVolume, exec, wpctl set-volume @DEFAULT_AUDIO_SINK@ 5%-"
- ",XF86AudioMute, exec, wpctl set-mute @DEFAULT_AUDIO_SINK@ toggle"
- ",XF86Eject, exec, mpc toggle"
- ];
- bindm = [
- "$mainMod, mouse:272, movewindow"
- "$mainMod, mouse:273, resizewindow"
- ];
- windowrulev2 = "suppressevent maximize, class:.*";
-#+end_src
-
-Close my Hyprland configuration.
-#+begin_src nix :tangle ~/.flake/home/hyprland.nix :mkdirp yes
- };
- };
- }
-#+end_src
+../../../common/.flake/home/hyprland.nix.org \ No newline at end of file