mirror of
https://codeberg.org/tmayoff/.dotfiles.git
synced 2025-12-06 08:48:34 -05:00
Rofi config
This commit is contained in:
parent
5ffd82053d
commit
03b3066880
3 changed files with 38 additions and 32 deletions
|
|
@ -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";
|
||||
|
|
|
|||
18
dot_config/flake/home/sway/rofi.nix
Normal file
18
dot_config/flake/home/sway/rofi.nix
Normal file
|
|
@ -0,0 +1,18 @@
|
|||
{pkgs, ...}: {
|
||||
programs.rofi = {
|
||||
enable = true;
|
||||
package = pkgs.rofi-wayland;
|
||||
|
||||
location = "center";
|
||||
|
||||
extraConfig = {
|
||||
modes = [
|
||||
"window"
|
||||
"drun"
|
||||
"run"
|
||||
"ssh"
|
||||
"combi"
|
||||
];
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue