Compare commits

...

3 Commits

Author SHA1 Message Date
d1ef9c5331 Added clipboard history 2025-08-30 00:05:47 +03:00
73f1f5a7c9 Added xdg-portals 2025-08-30 00:05:39 +03:00
37c9872360 Fixed screenshot not getting copied 2025-08-30 00:05:29 +03:00
3 changed files with 33 additions and 22 deletions

View File

@@ -23,8 +23,8 @@ $fileManager = dolphin
$menu = wofi --show drun
# ctrl-c to copy from the flameshot gui gives warped images sometimes, but
# setting the env fixes it
$screenshot = XDG_CURRENT_DESKTOP=sway flameshot gui -p ~/Pictures/Screenshots/ -c
$screenshotFull = XDG_CURRENT_DESKTOP=sway flameshot full -p ~/Pictures/Screenshots/ -c
$screenshot = XDG_CURRENT_DESKTOP=sway flameshot gui -p ~/Pictures/Screenshots/ -r | wl-copy
$screenshotFull = XDG_CURRENT_DESKTOP=sway flameshot full -p ~/Pictures/Screenshots/ -r | wl-copy
$passwordmanager = keepassxc
$notifications = swaync-client -t -sw
@@ -41,6 +41,9 @@ exec-once = hyprctl plugin load "$HYPR_PLUGIN_DIR/lib/libhyprbars.so"
# exec-once = waybar & hyprpaper
exec-once = swaync
exec-once = wl-paste --type text --watch cliphist store # Stores only text data
exec-once = wl-paste --type image --watch cliphist store # Stores only image data
#############################
### ENVIRONMENT VARIABLES ###
@@ -258,6 +261,8 @@ bind = $mainMod, space, exec, $menu
bind = SUPER, SUPER_L, exec, $menu
bind = $mainMod, N, exec, $notifications
bind = SUPER, N, exec, $notifications
bind = $mainMod, H, exec, cliphist list | wofi --dmenu | cliphist decode | wl-copy
bind = SUPER, H, exec, cliphist list | wofi --dmenu | cliphist decode | wl-copy
# Terminal
bind = $mainMod, 1, workspace, 1

View File

@@ -1,11 +1,4 @@
{
pkgs,
lib,
config,
inputs,
...
}:
{
{ pkgs, lib, config, inputs, ... }: {
options.apps.enable = lib.mkOption {
type = lib.types.bool;
@@ -27,6 +20,9 @@
libnotify
wl-clipboard
jdk
waybar
swaynotificationcenter # For notifications
cliphist # Clipboard history
nerd-fonts.jetbrains-mono
@@ -71,8 +67,6 @@
kdePackages.qt5compat
kdePackages.qt6ct
kdePackages.breeze-icons
waybar
swaynotificationcenter # For notifications
# Communication
wasistlos # Whatsapp

View File

@@ -1,11 +1,5 @@
{
pkgs,
lib,
inputs,
...
}:
with lib;
let
{ pkgs, lib, inputs, ... }:
with lib; let
hyprPluginPkgs = inputs.hyprland-plugins.packages.${pkgs.system};
hypr-plugin-dir = pkgs.symlinkJoin {
name = "hyrpland-plugins";
@@ -13,8 +7,7 @@ let
hyprbars
];
};
in
{
in {
programs.hyprland = {
enable = true;
@@ -26,6 +19,25 @@ in
HYPR_PLUGIN_DIR = hypr-plugin-dir;
};
xdg.portal = {
enable = true;
xdgOpenUsePortal = true;
extraPortals = with pkgs; [
kdePackages.xdg-desktop-portal-kde
xdg-desktop-portal-gtk
xdg-desktop-portal-wlr
];
config = {
hyprland = {
default = [ "hyprland" "gtk" ];
# "org.freedesktop.impl.portal.Secret" = [ "gnome-keyring" ];
"org.freedesktop.impl.portal.FileChooser" = [ "kde" ];
};
};
};
# Optional, hint electron apps to use wayland:
# environment.sessionVariables.NIXOS_OZONE_WL = "1";