Compare commits

...

7 commits

14 changed files with 184 additions and 2 deletions

View file

@ -12,6 +12,44 @@ in {
home.packages = with pkgs; [ home.packages = with pkgs; [
mpv mpv
]; ];
xdg.configFile = {
"mpv/mpv.conf".text = ''
loop=yes
'';
"mpv/input.conf".text = ''
# Vim keys seeking
l seek 5
h seek -5
j seek -60
k seek 60
# Set A-B Loop key to g, since l was rebound
g ab-loop
# Swap i and I, use lowercase for toggle
i script-binding stats/display-stats-toggle
I script-binding stats/display-stats
UP add volume 2
DOWN add volume -2
# Zooming
- add video-zoom -.25
+ add video-zoom .25
# Moving/panning video
kp8 add video-pan-y .05
kp6 add video-pan-x -.05
kp2 add video-pan-y -.05
kp4 add video-pan-x .05
kp5 set video-pan-x 0; set video-pan-y 0; set video-zoom 0
# Rotation
ctrl+r cycle_values video-rotate "90" "180" "270" "0"
'';
};
}; };
} }

View file

@ -12,5 +12,100 @@ in {
home.packages = with pkgs; [ home.packages = with pkgs; [
nomacs nomacs
]; ];
xdg.configFile = {
"nomacs/Image Lounge.conf".text = ''
[General]
DkEditDock=2
DkExplorer=1
DkMetaDataDock=2
firstTime=false
[AppSettings]
appMode=0
currentAppMode=0
defaultJpgQuality=97
firstTime.nomacs.3=false
hideAllPanels=true
showMenuBar=false
showRecentFiles=false
[Crop]
AspectRatioHorizontal=0
AspectRatioVertical=0
cropToMetadata=false
guides=1
info=true
inverted=false
[DisplaySettings]
bgColorNoMacsRGBA=4281545523
bgColorWidgetRGBA=2852126720
fadeSec=0
fontColorRGBA=4292730333
highlightColorRGBA=4278233855
iconColorRGBA=4292730333
themeName312=Dark-Theme.css
transition=0
[DkAppManager]
Apps\size=0
[DkCompressionDialog]
CompressionCombo0=0
bgCompressionColor0=4294967295
[DkDialog]
deleteFileDialog=false
deleteFileDialog-answer=16384
overwriteDialog=false
overwriteDialog-answer=16384
saveEditDialog=false
saveEditDialog-answer=16384
saveTabsDialog=true
saveTabsDialog-answer=16384
[DkExplorer]
Date%20ModifiedHidden=true
Date%20ModifiedSize=0
LoadSelected=false
NameHidden=false
NameSize=243
ReadOnly=true
RootPath=/home/itsdrike
SizeHidden=true
SizeSize=0
TypeHidden=true
TypeSize=0
[DkFilePreview]
windowPosition=1
[DkMetaDataDock]
KeySize=100
ValueSize=113
expandedNames=@Invalid()
[DkMetaDataHUD]
keyValues=File.Filename, File.Path, File.Size, Exif.Image.Make, Exif.Image.Model, Exif.Image.DateTime, Exif.Image.ImageDescription, Exif.Photo.ISO, Exif.Photo.FocalLength, Exif.Photo.ExposureTime, Exif.Photo.Flash, Exif.Photo.FNumber
numColumns=-1
windowPosition=3
[GlobalSettings]
logRecentFiles=false
[MetaDataSettings]
ignoreExifOrientation=false
saveExifOrientation=false
[SynchronizeSettings]
checkForUpdates=true
disableUpdateInteraction=false
[zooming]
useLevels=false
zoomLevels="0.0001,0.001,0.01,0.05,0.1,0.125,0.166,0.25,0.333,0.5,0.66,1,1.5,2,3,4,5,6,7,8,12,16,32,64,128"
'';
};
}; };
} }

View file

@ -36,6 +36,7 @@
# TODO: Requires programs # TODO: Requires programs
"SUPER_SHIFT, L, exec, wlogout -p layer-shell" "SUPER_SHIFT, L, exec, wlogout -p layer-shell"
"SUPER_CTRL, L, exec, loginctl lock-session" "SUPER_CTRL, L, exec, loginctl lock-session"
"SUPER_SHIFT, T, exec, toggle-idle"
# #
# Screenshots # Screenshots

View file

@ -21,6 +21,7 @@ in {
hyprPkgs.quick-record hyprPkgs.quick-record
hyprPkgs.toggle-fake-fullscreen hyprPkgs.toggle-fake-fullscreen
hyprPkgs.toggle-notifications hyprPkgs.toggle-notifications
hyprPkgs.toggle-idle
hyprPkgs.brightness hyprPkgs.brightness
pkgs.brightnessctl pkgs.brightnessctl
pkgs.hyprpicker pkgs.hyprpicker

View file

@ -9,6 +9,7 @@
quick-record = pkgs.callPackage ./quick-record {}; quick-record = pkgs.callPackage ./quick-record {};
toggle-fake-fullscreen = pkgs.callPackage ./toggle-fake-fullscreen {}; toggle-fake-fullscreen = pkgs.callPackage ./toggle-fake-fullscreen {};
toggle-notifications = pkgs.callPackage ./toggle-notifications {}; toggle-notifications = pkgs.callPackage ./toggle-notifications {};
toggle-idle = pkgs.callPackage ./toggle-idle {};
}; };
in in
packages packages

View file

@ -0,0 +1,14 @@
{pkgs, ...}:
pkgs.writeShellApplication {
name = "toggle-idle";
runtimeInputs = with pkgs; [
coreutils
gnugrep
procps
libnotify
hypridle
];
text = ''
${builtins.readFile ./toggle-idle.sh}
'';
}

View file

@ -0,0 +1,18 @@
#!/usr/bin/env bash
set -euo pipefail
idleprog="hypridle" # or swayidle
pid="$(pidof "$idleprog" || true)"
if [ -n "$pid" ]; then
# is process suspended?
if ps -o stat= -p "$pid" | grep T >/dev/null; then
kill -CONT "$pid"
notify-send "Idle-Toggle" "Idle timeouts enabled"
else
kill -STOP "$pid"
notify-send "Idle-Toggle" "Idle timeouts disabled"
fi
else
notify-send "Idle-Toggle" "$idleprog not running!"
fi

View file

@ -3,6 +3,7 @@
./mime-apps.nix ./mime-apps.nix
./user-dirs.nix ./user-dirs.nix
./config-files.nix ./config-files.nix
./portal.nix
]; ];
xdg = { xdg = {

View file

@ -0,0 +1,8 @@
{pkgs, ...}: {
xdg.portal = {
enable = true;
extraPortals = with pkgs; [
xdg-desktop-portal-gtk
];
};
}

View file

@ -70,7 +70,6 @@
# Applications # Applications
".config/spotify" ".config/spotify"
".config/vesktop" ".config/vesktop"
"./config/nomacs"
".local/share/Smart Code ltd/Stremio" ".local/share/Smart Code ltd/Stremio"
# Tools # Tools

View file

@ -46,6 +46,12 @@
options = [ "fmask=0022" "dmask=0022" ]; options = [ "fmask=0022" "dmask=0022" ];
}; };
fileSystems."/.btrfs" =
{ device = "/dev/disk/by-label/NIXOS-FS";
fsType = "btrfs";
options = [ "noatime" "compress=zstd:3" ];
};
swapDevices = swapDevices =
[ { device = "/dev/disk/by-label/SWAP"; } [ { device = "/dev/disk/by-label/SWAP"; }
]; ];

View file

@ -11,7 +11,6 @@ _: {
./programs.nix ./programs.nix
./system.nix ./system.nix
./network.nix ./network.nix
./bluetooth.nix
./localisation.nix ./localisation.nix
./packages.nix ./packages.nix
]; ];

View file

@ -3,6 +3,7 @@ _: {
./cpu ./cpu
./gpu ./gpu
./tpm.nix ./tpm.nix
./bluetooth.nix
./generic.nix ./generic.nix
]; ];
} }