Small config fix/cleanup and add amazing wayland OCR global link hint feature

This commit is contained in:
Curt Spark 2025-12-03 22:32:03 +00:00
parent 1b91d2e7d8
commit f3319cbfc2
2 changed files with 48 additions and 65 deletions

View File

@ -25,69 +25,6 @@
gtk-pipe-viewer
mpdcron
];
# Enable OpenGL/Vulkan hardware acceleration etc
hardware = {
## radv: an open-source Vulkan driver from freedesktop
graphics = {
enable = true;
enable32Bit = true;
driSupport = true;
driSupport32Bit = true;
extraPackages = with pkgs; [
#gfxreconstruct # Issue with cmake
glslang
spirv-cross
spirv-headers
spirv-tools
vulkan-extension-layer
vulkan-headers
vulkan-loader
vulkan-tools
vulkan-tools-lunarg
vulkan-utility-libraries
vulkan-validation-layers
vkdisplayinfo
vkd3d
vkd3d-proton
vk-bootstrap
rocmPackages.clr.icd
];
};
services.xserver = {
# Enable touchpad support (enabled default in most desktopManager).
libinput.enable = true;
};
## amdvlk: an open-source Vulkan driver from AMD
#amdgpu.amdvlk = {
# enable = true;
# support32Bit.enable = true;
# extraPackages = with pkgs; [
# gfxreconstruct
# glslang
# spirv-cross
# spirv-headers
# spirv-tools
# vulkan-extension-layer
# vulkan-headers
# vulkan-loader
# vulkan-tools
# vulkan-tools-lunarg
# vulkan-utility-libraries
# vulkan-validation-layers
# vkdisplayinfo
# vkd3d
# vkd3d-proton
# vk-bootstrap
# ];
#};
};
# Enable proper support for USB wifi/Wwan adapters.
hardware.usbWwan.enable = true;
# You can specify here what python packages you waint available to python
# Custom Python package with all the (Python) imports I need
my-python-packages = python-packages: with python-packages; [ # ...
@ -353,6 +290,7 @@
yazi
ueberzugpp # To display images in yazi via alacritty
wl-kbptr # Controlling the mouse using the keyboard + optical recognition
ncdu
@ -366,6 +304,48 @@
] ++ stablePackages;
# Enable OpenGL/Vulkan hardware acceleration etc
hardware = {
## radv: an open-source Vulkan driver from freedesktop
graphics = {
enable = true;
enable32Bit = true;
};
## amdvlk: an open-source Vulkan driver from AMD
#amdgpu.amdvlk = {
# enable = true;
# support32Bit.enable = true;
# extraPackages = with pkgs; [
# gfxreconstruct
# glslang
# spirv-cross
# spirv-headers
# spirv-tools
# vulkan-extension-layer
# vulkan-headers
# vulkan-loader
# vulkan-tools
# vulkan-tools-lunarg
# vulkan-utility-libraries
# vulkan-validation-layers
# vkdisplayinfo
# vkd3d
# vkd3d-proton
# vk-bootstrap
# ];
#};
# Enable proper support for USB wifi/Wwan adapters.
usbWwan.enable = true;
};
services.xserver = {
# Enable touchpad support (enabled default in most desktopManager).
libinput.enable = true;
};
# Steam Game Platform
programs.steam = {
enable = true;

View File

@ -312,6 +312,9 @@ binds {
Super+L { spawn "swaylock"; }
Ctrl+Alt+P { spawn "fuzzel-pass"; }
// Link hints using OCR
Alt+F { spawn "wl-kbptr" "-o" "modes=floating,click" "-o" "mode_floating.source=detect"; }
// You can also use a shell:
// Alt+T { spawn "bash" "-c" "notify-send hello && exec alacritty"; }
@ -473,8 +476,8 @@ binds {
// Alt+R { switch-preset-column-width; }
// Alt+Shift+R { reset-window-height; }
Alt+F { maximize-column; }
Alt+Shift+F { fullscreen-window; }
Alt+Shift+F { maximize-column; }
Alt+F11 { fullscreen-window; }
Alt+C { center-column; }
// Finer width adjustments.