summaryrefslogtreecommitdiff
path: root/home
diff options
context:
space:
mode:
authoradikro <adikro@disroot.org>2025-11-22 23:17:50 +0100
committeradikro <adikro@disroot.org>2025-11-22 23:17:50 +0100
commit2d4dc906719fd9cd0b784cffd405d09fc17f86c5 (patch)
tree3539a2f8341250c7697ac765f5bc3370bcab9133 /home
parent803585323bdd11dba7113f66d94f0357f4bfe1ce (diff)
idek
Diffstat (limited to 'home')
-rw-r--r--home/home.nix3
-rw-r--r--home/programs/nixcord.nix113
-rw-r--r--home/programs/satty.nix4
-rw-r--r--home/wayland/niri/binds.nix70
-rw-r--r--home/wayland/niri/niri.nix3
5 files changed, 108 insertions, 85 deletions
diff --git a/home/home.nix b/home/home.nix
index 636225c..0345d25 100644
--- a/home/home.nix
+++ b/home/home.nix
@@ -31,7 +31,8 @@
slurp
satty
- kdePackages.kdenlive
+ imagemagick
+ exiftool
brave
ripgrep
nix-index
diff --git a/home/programs/nixcord.nix b/home/programs/nixcord.nix
index 98e0a74..d37b88b 100644
--- a/home/programs/nixcord.nix
+++ b/home/programs/nixcord.nix
@@ -17,10 +17,10 @@
};
config = {
frameless = true;
- transparent = true;
+ # transparent = true;
plugins = {
- allCallTimers.enable = true;
- altKrispSwitch.enable = true;
+ # allCallTimers.enable = true;
+ # altKrispSwitch.enable = true;
alwaysExpandRoles = {
enable = true;
hideArrow = true;
@@ -29,13 +29,13 @@
enable = true;
domain = false;
};
- amITyping.enable = true;
+ # amITyping.enable = true;
anammox.enable = true;
- arRpcBun.enable = true;
- autoDndWhilePlaying = {
- enable = true;
- excludeInvisible = true;
- };
+ # arRpcBun.enable = true;
+ # autoDndWhilePlaying = {
+ # enable = true;
+ # excludeInvisible = true;
+ # };
betterActivities.enable = true;
betterAudioPlayer.enable = true;
betterGifAltText.enable = true;
@@ -45,7 +45,7 @@
enable = true;
hide = true;
};
- betterPlusReacts.enable = true;
+ # betterPlusReacts.enable = true;
betterQuickReact = {
enable = true;
columns = 6.0;
@@ -59,11 +59,11 @@
};
betterUploadButton.enable = true;
biggerStreamPreview.enable = true;
- bypassStatus = {
- enable = true;
- guilds = "1361802769576624278";
- users = "281482570456367104";
- };
+ # bypassStatus = {
+ # enable = true;
+ # guilds = "1361802769576624278";
+ # users = "281482570456367104";
+ # };
callTimer.enable = true;
# channelTabs.enable = true;
characterCounter = {
@@ -74,7 +74,7 @@
cleanUserArea.enable = true;
clearUrLs.enable = true;
clientSideBlock.enable = true;
- commandPalette.enable = true;
+ # commandPalette.enable = true;
copyFileContents.enable = true;
copyStickerLinks.enable = true;
crashHandler.enable = true;
@@ -89,10 +89,10 @@
noMirroredCamera = true;
};
equicordToolbox.enable = true;
- exportMessages = {
- enable = true;
- openFileAfterExport = false;
- };
+ # exportMessages = {
+ # enable = true;
+ # openFileAfterExport = false;
+ # };
expressionCloner.enable = true;
fakeNitro = {
enable = true;
@@ -105,13 +105,13 @@
fixImagesQuality.enable = true;
fixSpotifyEmbeds.enable = true;
fixYoutubeEmbeds.enable = true;
- followVoiceUser.enable = true;
+ # followVoiceUser.enable = true;
forceOwnerCrown.enable = true;
friendsSince.enable = true;
fullSearchContext.enable = true;
fullUserInChatbox.enable = true;
- fullVcpfp.enable = true;
- gameActivityToggle.enable = true;
+ # fullVcpfp.enable = true;
+ # gameActivityToggle.enable = true;
gifCollections = {
enable = true;
preventDuplicates = true;
@@ -121,9 +121,9 @@
enable = true;
pingOwnerChance = true;
};
- gitHubRepos.enable = true;
- hideServers.enable = true;
- holyNotes.enable = true;
+ # gitHubRepos.enable = true;
+ # hideServers.enable = true;
+ # holyNotes.enable = true;
homeTyping.enable = true;
iLoveSpam.enable = true;
imageFilename.enable = true;
@@ -137,7 +137,7 @@
imgToGif.enable = true;
inRole.enable = true;
inviteDefaults.enable = true;
- jumpTo.enable = true;
+ # jumpTo.enable = true;
memberCount.enable = true;
mentionAvatars = {
enable = true;
@@ -150,27 +150,26 @@
};
moyai.enable = true;
musicControls.enable = true;
- mutualGroupDMs.enable = true;
+ # mutualGroupDMs.enable = true;
neverPausePreviews.enable = true;
newGuildSettings = {
enable = true;
messages = 1;
};
newPluginsManager.enable = true;
- noDevtoolsWarning.enable = true;
noF1.enable = true;
noMaskedUrlPaste.enable = true;
noModalAnimation.enable = true;
noNitroUpsell.enable = true;
noOnboarding.enable = true;
noMosaic.enable = true;
- noPendingCount = {
- enable = true;
- hideFriendRequestsCount = false;
- hideMessageRequestsCount = false;
- };
+ # noPendingCount = {
+ # enable = true;
+ # hideFriendRequestsCount = false;
+ # hideMessageRequestsCount = false;
+ # };
noProfileThemes.enable = true;
- noRoleHeaders.enable = true;
+ # noRoleHeaders.enable = true;
noTypingAnimation.enable = true;
notificationTitle.enable = true;
overrideForumDefaults = {
@@ -191,36 +190,36 @@
};
pinIcon.enable = true;
platformIndicators.enable = true;
- platformSpoofer = {
- enable = true;
- platform = "playstation";
- };
- quoter.enable = true;
+ # platformSpoofer = {
+ # enable = true;
+ # platform = "playstation";
+ # };
+ # quoter.enable = true;
relationshipNotifier.enable = true;
- replyPingControl.enable = true;
+ # replyPingControl.enable = true;
reverseImageSearch.enable = true;
roleColorEverywhere.enable = true;
saveFavoriteGiFs.enable = true;
sendTimestamps.enable = true;
serverInfo.enable = true;
- serverSearch.enable = true;
- showAllMessageButtons.enable = true;
+ # serverSearch.enable = true;
+ # showAllMessageButtons.enable = true;
showConnections.enable = true;
showHiddenChannels.enable = true;
showHiddenThings.enable = true;
showTimeoutDuration.enable = true;
- soggy = {
- enable = true;
- imageLink = "https://codeberg.org/adikro/wallpapers/raw/branch/main/kirkinator.gif";
- songLink = "https://video.twimg.com/amplify_video/1976076971651268608/vid/avc1/1080x720/KGLQcBQQDvLZUGKI.mp4?tag=21";
- };
- songLink.enable = true;
+ # soggy = {
+ # enable = true;
+ # imageLink = "https://codeberg.org/adikro/wallpapers/raw/branch/main/kirkinator.gif";
+ # songLink = "https://video.twimg.com/amplify_video/1976076971651268608/vid/avc1/1080x720/KGLQcBQQDvLZUGKI.mp4?tag=21";
+ # };
+ # songLink.enable = true;
sortFriendRequests = {
enable = true;
showDates = true;
};
- soundBoardLogger.enable = true;
- splitLargeMessages.enable = true;
+ # soundBoardLogger.enable = true;
+ # splitLargeMessages.enable = true;
spotifyCrack = {
enable = true;
noSpotifyAutoPause = false;
@@ -237,17 +236,17 @@
userVoiceShow.enable = true;
validReply.enable = true;
validUser.enable = true;
- vcPanelSettings.enable = true;
+ # vcPanelSettings.enable = true;
viewIcons = {
enable = true;
format = "png";
};
- voiceChannelLog = {
- enable = true;
- };
- voiceChatUtilities.enable = true;
+ # voiceChannelLog = {
+ # enable = true;
+ # };
+ # voiceChatUtilities.enable = true;
voiceDownload.enable = true;
- voiceJoinMessages.enable = true;
+ # voiceJoinMessages.enable = true;
voiceMessages.enable = true;
volumeBooster.enable = true;
whoReacted.enable = true;
diff --git a/home/programs/satty.nix b/home/programs/satty.nix
new file mode 100644
index 0000000..facb35d
--- /dev/null
+++ b/home/programs/satty.nix
@@ -0,0 +1,4 @@
+{ ... }:
+{
+
+}
diff --git a/home/wayland/niri/binds.nix b/home/wayland/niri/binds.nix
index e65a595..0277e50 100644
--- a/home/wayland/niri/binds.nix
+++ b/home/wayland/niri/binds.nix
@@ -1,40 +1,57 @@
{ config, pkgs, ... }:
+
+let
+ # helpers
+ actions = config.lib.niri.actions;
+ spawn = actions.spawn;
+
+ # common action factories
+ set-volume = spawn "wpctl" "set-volume" "@DEFAULT_AUDIO_SINK@";
+ playerctl = spawn "${pkgs.playerctl}/bin/playerctl";
+in
{
- programs.niri.settings.binds = with config.lib.niri.actions;
- let
- set-volume = spawn "wpctl" "set-volume" "@DEFAULT_AUDIO_SINK@";
- playerctl = spawn "${pkgs.playerctl}/bin/playerctl";
- in
- {
+ programs.niri.settings.binds = with actions; {
+
+ # Overview / help
"Mod+O" = {
action = toggle-overview;
repeat = false;
};
"Mod+Slash".action = show-hotkey-overlay;
+
+ # Audio
XF86AudioRaiseVolume.action = set-volume "2%+";
XF86AudioLowerVolume.action = set-volume "2%-";
XF86AudioMute.action = spawn "wpctl" "set-mute" "@DEFAULT_AUDIO_SINK@" "toggle";
XF86AudioMicMute.action = spawn "wpctl" "set-mute" "@DEFAULT_AUDIO_SOURCE@" "toggle";
+
+ # Media keys
XF86AudioPlay.action = playerctl "play-pause";
XF86AudioStop.action = playerctl "pause";
XF86AudioPrev.action = playerctl "previous";
XF86AudioNext.action = playerctl "next";
+
+ # Column sizing
"Mod+Minus".action = set-column-width "-10%";
"Mod+Equal".action = set-column-width "+10%";
- # // Finer height adjustments when in column with other windows.
+ # Finer height adjustments when in column with other windows.
"Mod+Shift+Minus".action = set-window-height "-10%";
"Mod+Shift+Equal".action = set-window-height "+10%";
+
+ # Misc
# "Mod+Shift+V".action = switch-focus-between-floating-and-tiling;
"Mod+Shift+P".action = power-off-monitors;
- "Mod+W".action = toggle-column-tabbed-display;
+ "Mod+W".action = toggle-column-tabbed-display;
+ # Screenshot (selection -> copy + save)
"Mod+S".action = spawn "sh" "-c"
''
filename="/media/ss/$(date +%Y-%m-%d_%H-%M-%S).png"
grim -g "$(slurp)" - | tee "$filename" | wl-copy
'';
+ # Screenshot (selection -> save -> edit with satty -> copy edited)
"Mod+Shift+S".action = spawn "sh" "-c"
''
filename="/media/ss/$(date +%Y-%m-%d_%H-%M-%S).png"
@@ -42,25 +59,29 @@
edited="/media/ss/$(date +%Y-%m-%d_%H-%M-%S)-edited.png"
satty --filename "$filename" --output-filename "$edited"
- wl-copy < "$edited"
+ '';
+
+ "Mod+Shift+D".action = spawn "sh" "-c"
+ ''
+ cliphist list | fuzzel --dmenu | cliphist decode | wl-copy
'';
# --- System / General ---
"Mod+Return".action = spawn "foot";
"Mod+D".action = spawn "fuzzel";
- "Mod+BracketLeft".action = consume-or-expel-window-left;
- "Mod+BracketRight".action = consume-or-expel-window-right;
-
- "Mod+R".action = switch-preset-column-width;
- "Mod+Shift+R".action = reset-window-height;
- "Mod+F".action = maximize-column;
- "Mod+Shift+F".action = fullscreen-window;
- "Mod+C".action = center-column;
-
- "Mod+Comma".action = consume-window-into-column;
- "Mod+Period".action = expel-window-from-column;
- # The 'quit' action without arguments performs the action with confirmation.
- "Mod+Shift+E".action = quit;
+ "Mod+BracketLeft".action = consume-or-expel-window-left;
+ "Mod+BracketRight".action = consume-or-expel-window-right;
+
+ "Mod+R".action = switch-preset-column-width;
+ "Mod+Shift+R".action = reset-window-height;
+ "Mod+F".action = maximize-column;
+ "Mod+Shift+F".action = fullscreen-window;
+ "Mod+C".action = center-column;
+
+ "Mod+Comma".action = consume-window-into-column;
+ "Mod+Period".action = expel-window-from-column;
+
+ "Mod+Shift+E".action = quit;
# --- Window Navigation (Focus) ---
"Mod+H".action = focus-column-left;
@@ -76,8 +97,6 @@
# --- Window State ---
"Mod+Shift+Q".action = close-window;
- # "Mod+F".action = maximize-column;
- # "Mod+V".action = toggle-window-floating; # Renamed from toggle-floating to match docs};
"Mod+1".action = focus-workspace 1;
"Mod+2".action = focus-workspace 2;
@@ -86,12 +105,11 @@
"Mod+5".action = focus-workspace 5;
"Mod+6".action = focus-workspace 6;
- # The wonky format used here is to work-around https://github.com/sodiboo/niri-flake/issues/944
"Mod+Ctrl+1".action.move-column-to-workspace = [ 1 ];
"Mod+Ctrl+2".action.move-column-to-workspace = [ 2 ];
"Mod+Ctrl+3".action.move-column-to-workspace = [ 3 ];
"Mod+Ctrl+4".action.move-column-to-workspace = [ 4 ];
"Mod+Ctrl+5".action.move-column-to-workspace = [ 5 ];
"Mod+Ctrl+6".action.move-column-to-workspace = [ 6 ];
- };
+ };
}
diff --git a/home/wayland/niri/niri.nix b/home/wayland/niri/niri.nix
index 9a3d85e..7d0537a 100644
--- a/home/wayland/niri/niri.nix
+++ b/home/wayland/niri/niri.nix
@@ -68,7 +68,8 @@
};
spawn-at-startup = [
{ command = [ "${lib.getExe pkgs.xwayland-satellite}" ]; }
- { command = [ "swaybg" "--image" "/media/pics/wallpapers/kita6.png" ]; }
+ { command = [ "awww-daemon" ]; }
+ { command = [ "wl-paste --watch cliphist store" ]; }
];
};
}