Rofi config

This commit is contained in:
Tyler Mayoff 2025-02-16 20:58:36 -05:00
parent 5ffd82053d
commit 03b3066880
3 changed files with 38 additions and 32 deletions

View file

@ -1,8 +1,11 @@
{...}: let {...}: let
mod = "Mod4"; mod = "Mod4";
term = "kitty"; term = "kitty";
menu = "wmenu-run";
in { in {
imports = [
./rofi.nix
];
wayland.windowManager.sway = { wayland.windowManager.sway = {
enable = true; enable = true;
checkConfig = true; checkConfig = true;
@ -13,42 +16,21 @@ in {
}; };
startup = [ 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 # Home row direction keys, like vim
up = "k"; up = "k";
left = "h"; left = "h";
down = "j"; down = "j";
right = "l"; 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 = { input = {
"*" = { "*" = {
tap = "enabled"; tap = "enabled";
@ -68,7 +50,7 @@ in {
"${mod}+q" = "kill"; "${mod}+q" = "kill";
# Start launcher # Start launcher
"${mod}+space" = "exec ${menu}"; "${mod}+space" = "exec \"${menu}\"";
# Reload the configuration file # Reload the configuration file
"${mod}+Shift+c" = "reload"; "${mod}+Shift+c" = "reload";

View file

@ -0,0 +1,18 @@
{pkgs, ...}: {
programs.rofi = {
enable = true;
package = pkgs.rofi-wayland;
location = "center";
extraConfig = {
modes = [
"window"
"drun"
"run"
"ssh"
"combi"
];
};
};
}

View file

@ -99,10 +99,10 @@
enable = true; enable = true;
enableWifi = true; enableWifi = true;
geoProviderUrl = "https://api.beacondb.net/v1/geolocate"; geoProviderUrl = "https://api.beacondb.net/v1/geolocate";
enableDemoAgent = true;
}; };
services.flatpak.enable = true;
# Enable touchpad support (enabled default in most desktopManager). # Enable touchpad support (enabled default in most desktopManager).
# services.xserver.libinput.enable = true; # services.xserver.libinput.enable = true;
@ -115,6 +115,7 @@
}; };
environment.systemPackages = with pkgs; [ environment.systemPackages = with pkgs; [
# unstable.bitwarden-desktop
sqlite sqlite
vscode vscode
lm_sensors lm_sensors
@ -133,6 +134,11 @@
wrapperFeatures.gtk = true; wrapperFeatures.gtk = true;
}; };
programs.appimage = {
enable = true;
binfmt = true;
};
# Some programs need SUID wrappers, can be configured further or are # Some programs need SUID wrappers, can be configured further or are
# started in user sessions. # started in user sessions.
# programs.mtr.enable = true; # programs.mtr.enable = true;