Skip to content

Commit

Permalink
feat(nix): fix rbw
Browse files Browse the repository at this point in the history
  • Loading branch information
sbulav committed Jan 31, 2024
1 parent e4e3406 commit 38c2c50
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion nix/modules/nixos/desktop/addons/rofi/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ in {
};

config = mkIf cfg.enable {
environment.systemPackages = with pkgs; [rbw rofi-rbw];
environment.systemPackages = with pkgs; [rbw rofi-rbw wtype];
home.programs.rofi = {
enable = true;
plugins = with pkgs; [
Expand Down
1 change: 1 addition & 0 deletions nix/modules/nixos/desktop/hyprland/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@ in {
CLUTTER_BACKEND = "wayland";
XDG_CURRENT_DESKTOP = "Hyprland";
XDG_SESSION_DESKTOP = "Hyprland";
XDG_SCREENSHOTS_DIR = "~/Pictures/Screenshots";
};

programs.hyprland = {
Expand Down
4 changes: 2 additions & 2 deletions nix/modules/nixos/desktop/hyprland/hyprland.conf
Original file line number Diff line number Diff line change
Expand Up @@ -207,8 +207,8 @@ bind = , XF86MonBrightnessUp, exec, brightnessctl s 5%+
bind = , XF86MonBrightnessDown, exec, brightnessctl s 5%-

# Screenshot a region and output to Pictures
bind = ,Print, exec, grim -g "$(slurp)"
bind = ,Print, exec, grim -g "$(slurp)" ~/Pictures/Screenshots/$(date +'ss_%s.png')
# Screenshot a region and output clipboard
bind = CONTROL, Print, exec, grim -g "$(slurp)" - | wl-copy
# Screenshot full screen
bind = SHIFT, Print, exec, grim
bind = SHIFT, Print, exec, grim ~/Pictures/Screenshots/$(date +'ss_%s.png')

0 comments on commit 38c2c50

Please sign in to comment.