Przystosowywanie pod siebie.

This commit is contained in:
2025-09-25 16:25:58 +02:00
parent d01e114914
commit 244567f465
35 changed files with 640 additions and 345 deletions

View File

@@ -1,20 +1,30 @@
{
pkgs,
username,
profile,
...
}:
{
home.packages = [
home.packages = with pkgs; [
# hyprland
swww
grim
slurp
wl-clipboard
swappy
ydotool
hyprpolkitagent
hyprland-qtutils # needed for banners and ANR messages
# pyprland
pyprland
(import ./emopicker9000.nix { inherit pkgs; })
(import ./hm-find.nix { inherit pkgs; })
(import ./keybinds.nix { inherit pkgs; })
(import ./keybinds.nix { inherit pkgs username; })
(import ./note.nix { inherit pkgs; })
(import ./note-from-clipboard.nix { inherit pkgs; })
(import ./nvidia-offload.nix { inherit pkgs; })
(import ./rofi-launcher.nix { inherit pkgs; })
(import ./screenshootin.nix { inherit pkgs; })
(import ./squirtle.nix { inherit pkgs; })
(import ./task-waybar.nix { inherit pkgs; })
(import ./wallsetter.nix {
inherit pkgs;

View File

@@ -1,40 +0,0 @@
{ config, pkgs, ... }:
let
gemini-launcher = pkgs.writeShellScriptBin "gemini-launcher" ''
#!${pkgs.bash}/bin/bash
# Define the path to your API key file
KEY_FILE="${config.home.homeDirectory}/gem.key"
# Check if the key file exists and is readable
if [ -f "$KEY_FILE" ]; then
# Source the API key from the file.
source "$KEY_FILE"
# Launch Gemini directly; it will pick up the exported key.
exec ${pkgs.kitty}/bin/kitty -e ${pkgs.gemini-cli}/bin/gemini
else
# If the key file doesn't exist, launch kitty with an informational message, then start gemini.
exec ${pkgs.kitty}/bin/kitty -e bash -c "echo 'NOTE: Gemini API key file not found at ~/.gem.key.'; echo 'To use a key, create this file with content: export GEMINI_API_KEY=\"YOUR_KEY\"'; echo; echo 'Starting Gemini CLI, which will fall back to web-based login...'; echo; exec ${pkgs.gemini-cli}/bin/gemini"
fi
'';
in
{
home.packages = [
gemini-launcher
];
xdg.desktopEntries.gemini-cli = {
name = "Gemini CLI";
comment = "Launch the Gemini CLI in Kitty terminal";
icon = "utilities-terminal";
exec = "gemini-launcher";
terminal = false;
type = "Application";
categories = [
"Development"
"Utility"
];
};
}

View File

@@ -1,15 +1,18 @@
{ pkgs }:
{ pkgs, username, ... }:
let
desktopEntriesPath = "/home/${username}/.local/state/home-manager/gcroots/current-home/home-path/share/applications/";
in
pkgs.writeShellScriptBin "list-keybinds" ''
# check if rofi is already running
if pidof rofi > /dev/null; then
pkill rofi
fi
msg=' NOTE : Clicking with Mouse or Pressing ENTER will have NO function'
msg=' = Windows/Super/CAPS LOCK (Enter nie wykonuje skrótu)'
keybinds=$(cat ~/.config/hypr/hyprland.conf | grep -E '^bind')
# replace #modifier with SUPER in the displayed keybinds for rofi
display_keybinds=$(echo "$keybinds" | sed 's/\$modifier/SUPER/g')
display_keybinds=$(echo "$keybinds" | sed 's/\$modifier//g' | sed 's|${desktopEntriesPath}/||g')
# use rofi to display the keybinds with the modified content
echo "$display_keybinds" | rofi -dmenu -i -config ~/.config/rofi/config-long.rasi -mesg "$msg"

View File

@@ -1,23 +0,0 @@
{ pkgs }:
pkgs.writeShellScriptBin "squirtle" ''
echo "

  
  
  



 
 
 
 
 
 
 
 
 
 
"
''

View File

@@ -8,11 +8,23 @@ pkgs.writeShellScriptBin "web-search" ''
declare -A URLS
URLS=(
["🌎 Search"]="https://search.brave.com/search?q="
[" Unstable Packages"]="https://search.nixos.org/packages?channel=unstable&from=0&size=50&sort=relevance&type=packages&query="
["🎞 YouTube"]="https://www.youtube.com/results?search_query="
["🦥 Arch Wiki"]="https://wiki.archlinux.org/title/"
["🐃 Gentoo Wiki"]="https://wiki.gentoo.org/index.php?title="
[" Search"]="https://search.garandplg.com/search?q="
[" Nix Unstable Packages"]="https://search.nixos.org/packages?channel=unstable&query="
[" Nix Options"]="https://search.nixos.org/options?query="
[" Nix Wiki"]="https://wiki.nixos.org/w/index.php?search="
[" Home Manager Options"]="https://home-manager-options.extranix.com/release=master?query="
[" Kalkulator walutowy EUR"]="https://www.money.pl/pieniadze/kalkulator/?currencyFrom=EUR&currencyTo=PLN&amount="
["\$ Kalkulator walutowy USD"]="https://www.money.pl/pieniadze/kalkulator/?currencyFrom=USD&currencyTo=PLN&amount="
[" YouTube"]="https://www.youtube.com/results?search_query="
[" Wikipedia PL"]="https://pl.wikipedia.org/w/index.php?search="
[" StackOverflow"]="https://stackoverflow.com/search?q="
[" Eneba"]="https://www.eneba.com/pl/store/all?text="
[" Kinguin"]="https://www.kinguin.net/listing?active=1&hideUnavailable=0&type=kinguin?phrase="
[" Instant Gaming"]="https://www.instant-gaming.com/pl/search/?q="
[" Morele"]="https://www.morele.net/wyszukiwarka/?q="
[" X-kom"]="https://www.x-kom.pl/szukaj?q="
[" Komputrnik"]="https://www.komputronik.pl/search/category/1?q="
[" Allegro"]="https://allegro.pl/listing?string="
)
# List for rofi