Compare commits

..

4 commits

Author SHA1 Message Date
Tigor Hutasuhut d1d798bede btop: added 2024-11-20 19:09:23 +07:00
Tigor Hutasuhut 4a0710fb6a krita: added 2024-11-20 19:09:14 +07:00
Tigor Hutasuhut ed5120b070 wezterm: disabled 2024-11-20 19:08:50 +07:00
Tigor Hutasuhut c5f2267892 hyprland-rofi: added project launcher 2024-11-19 15:46:13 +07:00
8 changed files with 47 additions and 7 deletions

View file

@ -1,4 +1,9 @@
{ config, profile-path, ... }: {
config,
profile-path,
pkgs,
...
}:
let let
user = config.profile.user; user = config.profile.user;
stateVersion = config.profile.system.stateVersion; stateVersion = config.profile.system.stateVersion;
@ -21,6 +26,7 @@ in
username = user.name; username = user.name;
homeDirectory = "/home/${user.name}"; homeDirectory = "/home/${user.name}";
stateVersion = stateVersion; stateVersion = stateVersion;
packages = with pkgs; [ btop ];
}; };
programs.home-manager.enable = true; programs.home-manager.enable = true;
systemd.user.sessionVariables = { systemd.user.sessionVariables = {

View file

@ -41,6 +41,14 @@ let
fi fi
fi fi
''; '';
openProjectScript =
pkgs.writeShellScriptBin ''select-project.sh'' # sh
''
dir=$(zoxide query --list | rofi -dmenu -i -matching fuzzy)
if [[ "$dir" != "" ]]; then
foot --title="Project: $dir" --working-directory="$dir"
fi
'';
in in
{ {
config = lib.mkIf cfg.enable { config = lib.mkIf cfg.enable {
@ -57,6 +65,7 @@ in
wayland.windowManager.hyprland.settings.bind = [ wayland.windowManager.hyprland.settings.bind = [
"$mod, D, exec, rofi -show drun -replace -i" "$mod, D, exec, rofi -show drun -replace -i"
"$mod, F, exec, ${getExe selectWindowScript}" "$mod, F, exec, ${getExe selectWindowScript}"
"$mod, P, exec, ${getExe openProjectScript}"
]; ];
}; };
} }

View file

@ -16,6 +16,7 @@
./jellyfin.nix ./jellyfin.nix
./jetbrains-idea.nix ./jetbrains-idea.nix
./kitty.nix ./kitty.nix
./krita.nix
./lazysql.nix ./lazysql.nix
./microsoft-edge.nix ./microsoft-edge.nix
./mongodb-compass.nix ./mongodb-compass.nix

13
home/programs/krita.nix Normal file
View file

@ -0,0 +1,13 @@
{
config,
lib,
pkgs,
...
}:
let
cfg = config.profile.home.programs.krita;
inherit (lib) mkIf;
in
{
config = mkIf cfg.enable { home.packages = with pkgs; [ krita ]; };
}

View file

@ -4,7 +4,7 @@ local shortcuts = require('keys')
require('event_config') require('event_config')
return { return {
enable_wayland = false, enable_wayland = true,
font = wezterm.font_with_fallback({ font = wezterm.font_with_fallback({
-- 'Comic Code Ligatures', -- 'Comic Code Ligatures',
'JetBrainsMono Nerd Font Mono', 'JetBrainsMono Nerd Font Mono',

View file

@ -1,7 +1,8 @@
{ pkgs {
, lib pkgs,
, config lib,
, ... config,
...
}: }:
let let
inherit (lib.strings) optionalString concatStrings; inherit (lib.strings) optionalString concatStrings;
@ -93,6 +94,14 @@ in
nix build --impure --expr "with import <nixpkgs> {}; callPackage $1 {}" nix build --impure --expr "with import <nixpkgs> {}; callPackage $1 {}"
} }
nf() {
local selected=$(zoxide query --list | fzf)
if [ -n "$selected" ]; then
cd "$selected"
neovide
fi
}
# Completion settings # Completion settings
## Case insensitive completion ## Case insensitive completion
zstyle ':completion:*' matcher-list 'm:{a-zA-Z}={A-Za-z}' zstyle ':completion:*' matcher-list 'm:{a-zA-Z}={A-Za-z}'

View file

@ -75,6 +75,7 @@
zathura.enable = lib.mkEnableOption "zathura"; zathura.enable = lib.mkEnableOption "zathura";
floorp.enable = lib.mkEnableOption "floorp"; floorp.enable = lib.mkEnableOption "floorp";
java.enable = lib.mkEnableOption "java"; java.enable = lib.mkEnableOption "java";
krita.enable = lib.mkEnableOption "krita";
zellij = { zellij = {
enable = lib.mkEnableOption "zellij"; enable = lib.mkEnableOption "zellij";

View file

@ -109,6 +109,7 @@ in
home.programs = { home.programs = {
zathura.enable = true; zathura.enable = true;
bruno.enable = true; bruno.enable = true;
krita.enable = true;
zoom.enable = true; zoom.enable = true;
elisa.enable = true; elisa.enable = true;
obsidian.enable = true; obsidian.enable = true;
@ -118,7 +119,7 @@ in
programs.mongodb-compass.enable = true; programs.mongodb-compass.enable = true;
programs.easyeffects.enable = true; programs.easyeffects.enable = true;
programs.wezterm.enable = true; programs.wezterm.enable = false;
podman.enable = true; podman.enable = true;
services.ntfy-sh.client.enable = true; services.ntfy-sh.client.enable = true;
}; };