remove(wallpapers): redundancies
@@ -1,4 +1,5 @@
|
|||||||
{pkgs, ...}: {
|
{pkgs, ...}: {
|
||||||
|
# TODO: implement a way to show binds, preferably use vicinae.
|
||||||
wayland.windowManager.hyprland.settings = {
|
wayland.windowManager.hyprland.settings = {
|
||||||
bindel = [
|
bindel = [
|
||||||
", XF86MonBrightnessUp, exec, ddcutil setvcp 10 + 10"
|
", XF86MonBrightnessUp, exec, ddcutil setvcp 10 + 10"
|
||||||
|
|||||||
@@ -1,16 +1,12 @@
|
|||||||
{pkgs, ...}: let
|
{pkgs, ...}: let
|
||||||
hakase-workspace-switch-force = pkgs.writeShellScriptBin "hakase-workspace-switch-force" ''
|
hakase-workspace-switch-force = pkgs.writeShellScriptBin "hakase-workspace-switch-force" ''
|
||||||
# Define binary paths to ensure they work regardless of environment PATH
|
|
||||||
HYPRCTL="${pkgs.hyprland}/bin/hyprctl"
|
HYPRCTL="${pkgs.hyprland}/bin/hyprctl"
|
||||||
JQ="${pkgs.jq}/bin/jq"
|
JQ="${pkgs.jq}/bin/jq"
|
||||||
|
|
||||||
# Get the special workspace name
|
|
||||||
special_workspace=$($HYPRCTL monitors -j | $JQ -r '.[] | select(.focused) | .specialWorkspace.name')
|
special_workspace=$($HYPRCTL monitors -j | $JQ -r '.[] | select(.focused) | .specialWorkspace.name')
|
||||||
|
|
||||||
# Strip the "special:" prefix (Nix escape: ''${var#*:})
|
|
||||||
workspace_name=''${special_workspace#*:}
|
workspace_name=''${special_workspace#*:}
|
||||||
|
|
||||||
# Get the target workspace number from argument
|
|
||||||
chosen_workspace_num=$1
|
chosen_workspace_num=$1
|
||||||
|
|
||||||
if [[ -z ''${chosen_workspace_num} ]]; then
|
if [[ -z ''${chosen_workspace_num} ]]; then
|
||||||
@@ -18,14 +14,11 @@
|
|||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Check if we are actually in a special workspace
|
|
||||||
if [[ "''${special_workspace}" == *"special"* ]]; then
|
if [[ "''${special_workspace}" == *"special"* ]]; then
|
||||||
echo "[LOG] workspace is ''${special_workspace}"
|
echo "[LOG] workspace is ''${special_workspace}"
|
||||||
|
|
||||||
# Toggle the special workspace OFF
|
|
||||||
$HYPRCTL dispatch togglespecialworkspace "''${workspace_name}"
|
$HYPRCTL dispatch togglespecialworkspace "''${workspace_name}"
|
||||||
|
|
||||||
# Switch to the requested normal workspace
|
|
||||||
$HYPRCTL dispatch workspace "''${chosen_workspace_num}"
|
$HYPRCTL dispatch workspace "''${chosen_workspace_num}"
|
||||||
else
|
else
|
||||||
echo "[LOG] workspace is not special"
|
echo "[LOG] workspace is not special"
|
||||||
|
|||||||
@@ -1,31 +1,28 @@
|
|||||||
{pkgs, ...}: let
|
{pkgs, ...}: let
|
||||||
# Screenshot script with swappy integration
|
# Screenshot script using grimblast (Hyprland-native)
|
||||||
screenshot = pkgs.writeShellScriptBin "screenshot" ''
|
screenshot = pkgs.writeShellScriptBin "screenshot" ''
|
||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
case "$1" in
|
case "$1" in
|
||||||
region)
|
region)
|
||||||
# Select region and edit
|
# Select region and edit
|
||||||
grim -g "$(slurp)" - | swappy -f -
|
grimblast --freeze save area - | swappy -f -
|
||||||
;;
|
;;
|
||||||
window)
|
window)
|
||||||
# Screenshot active window
|
# Screenshot active window and edit
|
||||||
grim -g "$(hyprctl -j activewindow | jq -r '"\(.at[0]),\(.at[1]) \(.size[0])x\(.size[1])"')" - | swappy -f -
|
grimblast --freeze save active - | swappy -f -
|
||||||
;;
|
;;
|
||||||
screen)
|
screen)
|
||||||
# Screenshot current monitor
|
# Screenshot current monitor and edit
|
||||||
grim -o "$(hyprctl -j monitors | jq -r '.[] | select(.focused) | .name')" - | swappy -f -
|
grimblast save output - | swappy -f -
|
||||||
;;
|
;;
|
||||||
all)
|
all)
|
||||||
# Screenshot all monitors
|
# Screenshot all monitors and edit
|
||||||
grim - | swappy -f -
|
grimblast save screen - | swappy -f -
|
||||||
;;
|
;;
|
||||||
region-save)
|
region-save)
|
||||||
# Quick region screenshot (save without editing and copy to clipboard)
|
# Quick region screenshot (save and copy to clipboard)
|
||||||
filepath=~/Pictures/Screenshots/$(date +'%Y-%m-%d_%H-%M-%S.png')
|
grimblast --freeze --notify copysave area ~/Pictures/Screenshots/$(date +'%Y-%m-%d_%H-%M-%S.png')
|
||||||
grim -g "$(slurp)" "$filepath"
|
|
||||||
wl-copy < "$filepath"
|
|
||||||
notify-send "Screenshot saved" "Saved and copied to clipboard"
|
|
||||||
;;
|
;;
|
||||||
*)
|
*)
|
||||||
echo "Usage: screenshot {region|window|screen|all|region-save}"
|
echo "Usage: screenshot {region|window|screen|all|region-save}"
|
||||||
@@ -35,12 +32,10 @@
|
|||||||
'';
|
'';
|
||||||
in {
|
in {
|
||||||
home.packages = with pkgs; [
|
home.packages = with pkgs; [
|
||||||
grim # Screenshot utility
|
grimblast # Hyprland screenshot utility
|
||||||
slurp # Region selector
|
swappy # Annotation tool
|
||||||
swappy # Annotation tool
|
wl-clipboard # For clipboard operations
|
||||||
jq # For window selection
|
screenshot # Our wrapper script
|
||||||
wl-clipboard # For copying to clipboard
|
|
||||||
screenshot # Our wrapper script
|
|
||||||
];
|
];
|
||||||
|
|
||||||
# Create Screenshots directory
|
# Create Screenshots directory
|
||||||
|
|||||||
|
Before Width: | Height: | Size: 1.4 MiB |
@@ -1 +0,0 @@
|
|||||||
/nix/store/yckzy9k5i7pvmlk6xjkdj4wwbfms1zpl-home-manager-files/Pictures/Wallpapers/1-Pawel-Czerwinski-Abstract-Purple-Blue.jpg
|
|
||||||
@@ -1 +0,0 @@
|
|||||||
/nix/store/yckzy9k5i7pvmlk6xjkdj4wwbfms1zpl-home-manager-files/Pictures/Wallpapers/1-everforest.jpg
|
|
||||||
|
Before Width: | Height: | Size: 3.4 MiB |
|
Before Width: | Height: | Size: 28 KiB |
|
After Width: | Height: | Size: 282 KiB |
|
Before Width: | Height: | Size: 510 KiB |
|
Before Width: | Height: | Size: 451 KiB |
|
Before Width: | Height: | Size: 488 KiB |
@@ -1 +0,0 @@
|
|||||||
/nix/store/yckzy9k5i7pvmlk6xjkdj4wwbfms1zpl-home-manager-files/Pictures/Wallpapers/gruvbox-1.jpg
|
|
||||||
@@ -1 +0,0 @@
|
|||||||
/nix/store/yckzy9k5i7pvmlk6xjkdj4wwbfms1zpl-home-manager-files/Pictures/Wallpapers/kanagawa-1.png
|
|
||||||
|
Before Width: | Height: | Size: 607 KiB |
|
Before Width: | Height: | Size: 6.0 MiB |
|
Before Width: | Height: | Size: 152 KiB |
@@ -1 +0,0 @@
|
|||||||
/nix/store/yckzy9k5i7pvmlk6xjkdj4wwbfms1zpl-home-manager-files/Pictures/Wallpapers/nord-1.png
|
|
||||||
|
After Width: | Height: | Size: 476 KiB |
@@ -23,7 +23,7 @@
|
|||||||
"HDMI-A-1, highres@highrr@120, 3440x1440, 1.6"
|
"HDMI-A-1, highres@highrr@120, 3440x1440, 1.6"
|
||||||
];
|
];
|
||||||
|
|
||||||
wallpaper = "ai_pixel_purple.jpg";
|
wallpaper = "firewatch.png";
|
||||||
};
|
};
|
||||||
firefox = {
|
firefox = {
|
||||||
bookmarks = [
|
bookmarks = [
|
||||||
|
|||||||