From 03b30668809bbfbd09d6079631de16ab5c42de04 Mon Sep 17 00:00:00 2001 From: Tyler Mayoff Date: Sun, 16 Feb 2025 20:58:36 -0500 Subject: [PATCH] Rofi config --- dot_config/flake/home/sway/default.nix | 42 ++++++------------- dot_config/flake/home/sway/rofi.nix | 18 ++++++++ .../flake/machines/wash/configuration.nix | 10 ++++- 3 files changed, 38 insertions(+), 32 deletions(-) create mode 100644 dot_config/flake/home/sway/rofi.nix diff --git a/dot_config/flake/home/sway/default.nix b/dot_config/flake/home/sway/default.nix index 98a2e62..7c5e5e3 100644 --- a/dot_config/flake/home/sway/default.nix +++ b/dot_config/flake/home/sway/default.nix @@ -1,8 +1,11 @@ {...}: let mod = "Mod4"; term = "kitty"; - menu = "wmenu-run"; in { + imports = [ + ./rofi.nix + ]; + wayland.windowManager.sway = { enable = true; checkConfig = true; @@ -13,42 +16,21 @@ in { }; startup = [ - # {command = "swaybg -i .config/flake/wallpaper.jpg";} + ### Idle configuration + # This will lock your screen after 300 seconds of inactivity, then turn off + # your displays after another 300 seconds, and turn your screens back on when + # resumed. It will also lock your screen before your computer goes to sleep. + {command = "swayidle -w timeout 300 'swaylock -f -c 000000' timeout 600 'swaymsg \"output * power off\"' resume 'swaymsg \"output * power on\"' before-sleep 'swaylock -f -c 000000'";} ]; + menu = "rofi -combi-modi window,drun,ssh -show combi -show-icons"; + # Home row direction keys, like vim up = "k"; left = "h"; down = "j"; right = "l"; - ### Idle configuration - # - # Example configuration: - # - # exec swayidle -w \ - # timeout 300 'swaylock -f -c 000000' \ - # timeout 600 'swaymsg "output * power off"' resume 'swaymsg "output * power on"' \ - # before-sleep 'swaylock -f -c 000000' - # - # This will lock your screen after 300 seconds of inactivity, then turn off - # your displays after another 300 seconds, and turn your screens back on when - # resumed. It will also lock your screen before your computer goes to sleep. - - ### Input configuration - # - # Example configuration: - # - # input "2:14:SynPS/2_Synaptics_TouchPad" { - # dwt enabled - # tap enabled - # natural_scroll enabled - # middle_emulation enabled - # } - # - # You can get the names of your inputs by running: swaymsg -t get_inputs - # Read `man 5 sway-input` for more information about this section. - input = { "*" = { tap = "enabled"; @@ -68,7 +50,7 @@ in { "${mod}+q" = "kill"; # Start launcher - "${mod}+space" = "exec ${menu}"; + "${mod}+space" = "exec \"${menu}\""; # Reload the configuration file "${mod}+Shift+c" = "reload"; diff --git a/dot_config/flake/home/sway/rofi.nix b/dot_config/flake/home/sway/rofi.nix new file mode 100644 index 0000000..699ef16 --- /dev/null +++ b/dot_config/flake/home/sway/rofi.nix @@ -0,0 +1,18 @@ +{pkgs, ...}: { + programs.rofi = { + enable = true; + package = pkgs.rofi-wayland; + + location = "center"; + + extraConfig = { + modes = [ + "window" + "drun" + "run" + "ssh" + "combi" + ]; + }; + }; +} diff --git a/dot_config/flake/machines/wash/configuration.nix b/dot_config/flake/machines/wash/configuration.nix index d849b5e..1b9a40d 100644 --- a/dot_config/flake/machines/wash/configuration.nix +++ b/dot_config/flake/machines/wash/configuration.nix @@ -99,10 +99,10 @@ enable = true; enableWifi = true; geoProviderUrl = "https://api.beacondb.net/v1/geolocate"; - - enableDemoAgent = true; }; + services.flatpak.enable = true; + # Enable touchpad support (enabled default in most desktopManager). # services.xserver.libinput.enable = true; @@ -115,6 +115,7 @@ }; environment.systemPackages = with pkgs; [ + # unstable.bitwarden-desktop sqlite vscode lm_sensors @@ -133,6 +134,11 @@ wrapperFeatures.gtk = true; }; + programs.appimage = { + enable = true; + binfmt = true; + }; + # Some programs need SUID wrappers, can be configured further or are # started in user sessions. # programs.mtr.enable = true;