proper repo
This commit is contained in:
parent
33d01daa3d
commit
8a35a32445
17 changed files with 338 additions and 109 deletions
|
|
@ -3,17 +3,16 @@ let
|
|||
wallpaper = ../../wallpapers/miku.png;
|
||||
in {
|
||||
home.sessionVariables = {
|
||||
XDG_SESSION_TYPE = "wayland";
|
||||
XDG_CURRENT_DESKTOP = "niri";
|
||||
XDG_SESSION_DESKTOP = "niri";
|
||||
QT_QPA_PLATFORM = "wayland;xcb";
|
||||
QT_AUTO_SCREEN_SCALE_FACTOR = "1";
|
||||
QT_ENABLE_HIGHDPI_SCALING = "1";
|
||||
QT_SCALE_FACTOR_ROUNDING_POLICY = "RoundPreferFloor";
|
||||
XDG_CURRENT_DESKTOP = "niri";
|
||||
XDG_SESSION_DESKTOP = "niri";
|
||||
QT_QPA_PLATFORM = "wayland;xcb";
|
||||
QT_AUTO_SCREEN_SCALE_FACTOR = "1";
|
||||
QT_ENABLE_HIGHDPI_SCALING = "1";
|
||||
QT_SCALE_FACTOR_ROUNDING_POLICY = "RoundPreferFloor";
|
||||
QT_WAYLAND_DISABLE_WINDOWDECORATION = "1";
|
||||
XDG_MENU_PREFIX = "plasma-";
|
||||
};
|
||||
|
||||
XDG_MENU_PREFIX = "plasma-";
|
||||
};
|
||||
|
||||
home.packages = with pkgs; [
|
||||
grim
|
||||
slurp
|
||||
|
|
@ -26,7 +25,7 @@ in {
|
|||
text = ''
|
||||
#!/usr/bin/env bash
|
||||
MODE="''${1:-region}"
|
||||
SAVE_DIR="$HOME/Images/screenshots"
|
||||
SAVE_DIR="${config.xdg.userDirs.pictures}/screenshots"
|
||||
mkdir -p "$SAVE_DIR"
|
||||
FILENAME="$SAVE_DIR/$(date '+%Y%m%d-%H%M%S').png"
|
||||
|
||||
|
|
@ -44,12 +43,11 @@ in {
|
|||
esac
|
||||
'';
|
||||
};
|
||||
|
||||
|
||||
xdg.configFile."quickshell".source =
|
||||
config.lib.file.mkOutOfStoreSymlink "${config.home.homeDirectory}/repos/nixos/quickshell";
|
||||
|
||||
xdg.configFile."niri/config.kdl".text = ''
|
||||
// Modificadores: Mod = Super (tecla Windows)
|
||||
input {
|
||||
keyboard {
|
||||
xkb {
|
||||
|
|
@ -67,7 +65,7 @@ in {
|
|||
border {
|
||||
width 2
|
||||
active-color "#fabd2f"
|
||||
inactive-color "#504945"
|
||||
inactive-color "#504945"
|
||||
}
|
||||
|
||||
focus-ring {
|
||||
|
|
@ -75,7 +73,7 @@ in {
|
|||
active-color "#fabd2f"
|
||||
inactive-color "transparent"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
prefer-no-csd
|
||||
|
||||
|
|
@ -83,21 +81,21 @@ in {
|
|||
spawn-at-startup "swww" "img" "${wallpaper}" "--transition-type" "none"
|
||||
spawn-at-startup "quickshell"
|
||||
|
||||
screenshot-path "~/Imagens/screenshots/%Y-%m-%d %H-%M-%S.png"
|
||||
screenshot-path "${config.xdg.userDirs.pictures}/screenshots/%Y-%m-%d %H-%M-%S.png"
|
||||
|
||||
binds {
|
||||
// Aplicativos
|
||||
// Applications
|
||||
Mod+Return { spawn "kitty"; }
|
||||
Mod+D { spawn "fuzzel"; }
|
||||
Mod+Q { close-window; }
|
||||
|
||||
// Foco
|
||||
// Focus
|
||||
Mod+Left { focus-column-left; }
|
||||
Mod+Right { focus-column-right; }
|
||||
Mod+Up { focus-window-up; }
|
||||
Mod+Down { focus-window-down; }
|
||||
|
||||
// Mover janelas
|
||||
// Move windows
|
||||
Mod+Shift+Left { move-column-left; }
|
||||
Mod+Shift+Right { move-column-right; }
|
||||
Mod+Shift+Up { move-window-up; }
|
||||
|
|
@ -115,7 +113,7 @@ in {
|
|||
Mod+Shift+4 { move-window-to-workspace 4; }
|
||||
Mod+Shift+5 { move-window-to-workspace 5; }
|
||||
|
||||
// Sistema
|
||||
// System
|
||||
Mod+Shift+E { quit; }
|
||||
Mod+L { spawn "swaylock" "-i" "${wallpaper}" "--scaling" "fill"; }
|
||||
|
||||
|
|
@ -124,16 +122,16 @@ in {
|
|||
XF86AudioLowerVolume { spawn "wpctl" "set-volume" "@DEFAULT_AUDIO_SINK@" "5%-"; }
|
||||
XF86AudioMute { spawn "wpctl" "set-mute" "@DEFAULT_AUDIO_SINK@" "toggle"; }
|
||||
|
||||
// Zen mode (toggle quickshell bar)
|
||||
// Toggle quickshell bar (zen mode)
|
||||
Mod+Z { spawn "quickshell" "ipc" "call" "zen" "toggle"; }
|
||||
|
||||
// Input layout
|
||||
Mod+Space { switch-layout "next"; }
|
||||
|
||||
// Screenshot
|
||||
// Screenshots
|
||||
Mod+Shift+S { spawn "bash" "-c" "$HOME/.local/bin/screenshot region"; }
|
||||
Mod+Shift+Alt+S { spawn "bash" "-c" "$HOME/.local/bin/screenshot screen"; }
|
||||
Mod+Shift+Ctrl+S { spawn "bash" "-c" "$HOME/.local/bin/screenshot monitor"; }
|
||||
}
|
||||
}
|
||||
'';
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue