diff options
Diffstat (limited to 'mixins')
-rw-r--r-- | mixins/greet.nix | 26 | ||||
-rw-r--r-- | mixins/multimedia.nix | 34 | ||||
-rw-r--r-- | mixins/sway.nix | 29 |
3 files changed, 63 insertions, 26 deletions
diff --git a/mixins/greet.nix b/mixins/greet.nix index 103b37a..794d322 100644 --- a/mixins/greet.nix +++ b/mixins/greet.nix @@ -10,25 +10,33 @@ greet = "${pkgs.greetd.gtkgreet.out}/bin/gtkgreet -l -s ${pkgs.writeText "gtkgreet.css" " window { background-image: url(\"${pkgs.fetchurl { - url = "https://external-content.duckduckgo.com/iu/?u=https%3A%2F%2Fget.wallhere.com%2Fphoto%2FSerial-Experiments-Lain-anime-1363057.jpg&f=1&nofb=1&ipt=ba4bec61767537f6da6f0298f40e6a8ff2a5f1dc0e075a40bf77ba3a98654e15&ipo=images"; - sha256 = "sha256-oFUfNBdodHP7p/tAlwttzsY2SIyfsEgya6sN2GXEGy8="; + url = "https://i.imgur.com/D6qCaQG.png"; + sha256 = "sha256-Yt5JxmqN6++76cWu8EI/gsmelsJT/3jvLxyeRASQUhI="; }}\"); background-size: cover; background-position: center; + color: white; } box#body { - background-color: rgba(50, 50, 50, 0.5); - border-radius: 10px; + background-color: rgba(50, 50, 50, 0.8); + border-radius: 40px; padding: 50px; } + +# log in text +.text-button { + color: white; +} + + "}"; kiosk = command: "${pkgs.cage.out}/bin/cage -- ${command}"; in { options.greeter.initialSession = lib.mkOption { type = lib.types.str; - default = "sh -c ${pkgs.sway}/bin/sway"; + default = "${pkgs.sway.out}/bin/sway"; }; config = { @@ -43,10 +51,10 @@ in { inherit user; command = kiosk "${greet} -l &>/dev/null"; }; - # initial_session = { - # inherit user; - # command = config.greeter.initialSession; - # }; + initial_session = { + inherit user; + command = config.greeter.initialSession; + }; }; }; }; diff --git a/mixins/multimedia.nix b/mixins/multimedia.nix index d36be17..9d5c4b2 100644 --- a/mixins/multimedia.nix +++ b/mixins/multimedia.nix @@ -6,16 +6,42 @@ ... }: { config = { - home-manager.users.tzlil = {...}: { + home-manager.users.tzlil = {config, ...}: { fonts.fontconfig.enable = true; - home.packages = with pkgs; [ - mpv - zathura ffmpeg gimp transmission + xdg-utils + xdg-user-dirs ]; + xdg = { + enable = true; + mime.enable = true; + mimeApps = { + enable = true; + defaultApplications = { + "application/pdf" = ["${pkgs.zathura}/share/applications/org.pwmt.zathura.desktop"]; + }; + }; + userDirs = { + createDirectories = true; + desktop = "${config.home.homeDirectory}/desktop"; + download = "${config.home.homeDirectory}/downloads"; + }; + }; + + programs = { + mpv = { + enable = true; + scripts = [ + pkgs.mpvScripts.mpris + ]; + }; + zathura = { + enable = true; + }; + }; }; }; } diff --git a/mixins/sway.nix b/mixins/sway.nix index e559602..dd8a44c 100644 --- a/mixins/sway.nix +++ b/mixins/sway.nix @@ -66,6 +66,7 @@ in { font-awesome_6 waypipe foot + alsa-utils ]; services.swayidle = let @@ -207,8 +208,8 @@ in { input = { "type:keyboard" = { xkb_layout = "us"; - xkb_variant = "colemak_dh"; - xkb_options = "altwin:swap_lalt_lwin,caps:backspace"; + # xkb_variant = "colemak_dh"; + xkb_options = "caps:backspace"; }; "type:touchpad" = { tap = "enabled"; @@ -236,6 +237,7 @@ in { hide_edge_borders smart smart_borders on + # if want to use in the future use fetchurl # output * bg ~/tmp/graveyard.png fill @@ -252,15 +254,15 @@ in { font Iosevka 10 bindsym $mod+p exec passmenu $menu_args - bindsym --locked XF86AudioMute exec pactl set-sink-mute @DEFAULT_SINK@ toggle - bindsym --locked XF86AudioLowerVolume exec pactl set-sink-volume @DEFAULT_SINK@ -5% - bindsym --locked XF86AudioRaiseVolume exec pactl set-sink-volume @DEFAULT_SINK@ +5% - bindsym --locked XF86AudioMicMute exec pactl set-source-mute @DEFAULT_SOURCE@ toggle + bindsym --locked XF86AudioMute exec ${pkgs.pulseaudio}/bin/playerctl set-sink-mute @DEFAULT_SINK@ toggle + bindsym --locked XF86AudioLowerVolume exec ${pkgs.pulseaudio}/bin/playerctl set-sink-volume @DEFAULT_SINK@ -5% + bindsym --locked XF86AudioRaiseVolume exec ${pkgs.pulseaudio}/bin/playerctl set-sink-volume @DEFAULT_SINK@ +5% + bindsym --locked XF86AudioMicMute exec ${pkgs.pulseaudio}/bin/playerctl set-source-mute @DEFAULT_SOURCE@ toggle - bindsym --locked XF86AudioNext exec playerctl next - bindsym --locked XF86AudioPlay exec playerctl play-pause - bindsym --locked XF86AudioPrev exec playerctl previous - bindsym --locked XF86AudioStop exec playerctl stop + bindsym --locked XF86AudioNext exec ${pkgs.playerctl}/bin/playerctl next + bindsym --locked XF86AudioPlay exec ${pkgs.playerctl}/bin/playerctl play-pause + bindsym --locked XF86AudioPrev exec ${pkgs.playerctl}/bin/playerctl previous + bindsym --locked XF86AudioStop exec ${pkgs.playerctl}/bin/playerctl stop for_window [app_id="^menu$"] floating enable, border none for_window [app_id="mpv"] sticky enable @@ -270,8 +272,8 @@ in { for_window [app_id="imv"] floating enable for_window [class="PacketTracer"] floating enable - bindsym XF86MonBrightnessUp exec light -A 5 - bindsym XF86MonBrightnessDown exec light -U 5 + bindsym XF86MonBrightnessUp exec ${pkgs.brightnessctl}/bin/brightnessctl s +5% + bindsym XF86MonBrightnessDown exec ${pkgs.brightnessctl}/bin/brightnessctl s 5%- bindsym Print exec ${pkgs.grim}/bin/grim - | tee $(xdg-user-dir PICTURES)/$(date +'%s_grim.png') | wl-copy bindsym Shift+Print exec ${pkgs.grim}/bin/grim -g "$(${sel})" - | tee $(xdg-user-dir PICTURES)/$(date +'%s_grim.png') | wl-copy @@ -280,8 +282,9 @@ in { bindsym $mod+l exec ${pkgs.swaylock}/bin/swaylock -c 070D0D exec ${pkgs.mako}/bin/mako >/tmp/mako.log 2>&1 - exec_always kanshi >/tmp/kanshi.log 2>&1 + exec_always ${pkgs.kanshi}/bin/kanshi >/tmp/kanshi.log 2>&1 + exec foot include /etc/sway/config.d/* ''; }; |