Initial commit
This commit is contained in:
commit
b79d352847
37 changed files with 2191 additions and 0 deletions
79
home/catppuccin/default.nix
Normal file
79
home/catppuccin/default.nix
Normal file
|
|
@ -0,0 +1,79 @@
|
|||
{
|
||||
lib,
|
||||
config,
|
||||
...
|
||||
}:
|
||||
{
|
||||
options = {
|
||||
custom.catppuccin.enable = lib.mkEnableOption "Enable catppuccin theme";
|
||||
};
|
||||
config = lib.mkIf config.custom.catppuccin.enable {
|
||||
gtk = {
|
||||
enable = true;
|
||||
colorScheme = "dark";
|
||||
};
|
||||
programs.hyprlock = {
|
||||
enable = true;
|
||||
settings = {
|
||||
background = {
|
||||
color = "$base";
|
||||
};
|
||||
|
||||
label = {
|
||||
color = "$text";
|
||||
};
|
||||
|
||||
image = {
|
||||
border_color = "$accent";
|
||||
};
|
||||
|
||||
input-field = {
|
||||
outer_color = "$accent";
|
||||
inner_color = "$surface0";
|
||||
font_color = "$text";
|
||||
check_color = "$accent";
|
||||
fail_color = "$red";
|
||||
capslock_color = "$yellow";
|
||||
};
|
||||
};
|
||||
};
|
||||
catppuccin = {
|
||||
enable = true;
|
||||
hyprlock.useDefaultConfig = false;
|
||||
cursors.enable = true;
|
||||
};
|
||||
wayland.windowManager.hyprland.settings.general = {
|
||||
"col.inactive_border" = "$surface2";
|
||||
"col.active_border" = "$accent";
|
||||
};
|
||||
xdg = {
|
||||
dataFile = {
|
||||
wallpaper = {
|
||||
source = ./wallpaper.jpg;
|
||||
target = "images/wallpaper.jpg";
|
||||
};
|
||||
};
|
||||
configFile = {
|
||||
hyprtoolkit = {
|
||||
source = ./hyprtoolkit.conf;
|
||||
target = "hypr/hyprtoolkit.conf";
|
||||
};
|
||||
mocha = {
|
||||
source = ./mocha.conf;
|
||||
target = "hypr/mocha.conf";
|
||||
};
|
||||
waybarColorscheme = {
|
||||
source = ./waybar.css;
|
||||
};
|
||||
};
|
||||
};
|
||||
services.hyprpaper = {
|
||||
settings = {
|
||||
wallpaper = {
|
||||
monitor = "";
|
||||
path = "$HOME/.local/share/images/wallpaper.jpg";
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
6
home/catppuccin/hyprtoolkit.conf
Normal file
6
home/catppuccin/hyprtoolkit.conf
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
source=~/.config/hypr/mocha.conf
|
||||
|
||||
base = $overlay0
|
||||
background = $surface0
|
||||
text = $text
|
||||
accent = $mauve
|
||||
78
home/catppuccin/mocha.conf
Normal file
78
home/catppuccin/mocha.conf
Normal file
|
|
@ -0,0 +1,78 @@
|
|||
|
||||
$rosewater = rgb(f5e0dc)
|
||||
$rosewaterAlpha = f5e0dc
|
||||
|
||||
$flamingo = rgb(f2cdcd)
|
||||
$flamingoAlpha = f2cdcd
|
||||
|
||||
$pink = rgb(f5c2e7)
|
||||
$pinkAlpha = f5c2e7
|
||||
|
||||
$mauve = rgb(cba6f7)
|
||||
$mauveAlpha = cba6f7
|
||||
|
||||
$red = rgb(f38ba8)
|
||||
$redAlpha = f38ba8
|
||||
|
||||
$maroon = rgb(eba0ac)
|
||||
$maroonAlpha = eba0ac
|
||||
|
||||
$peach = rgb(fab387)
|
||||
$peachAlpha = fab387
|
||||
|
||||
$yellow = rgb(f9e2af)
|
||||
$yellowAlpha = f9e2af
|
||||
|
||||
$green = rgb(a6e3a1)
|
||||
$greenAlpha = a6e3a1
|
||||
|
||||
$teal = rgb(94e2d5)
|
||||
$tealAlpha = 94e2d5
|
||||
|
||||
$sky = rgb(89dceb)
|
||||
$skyAlpha = 89dceb
|
||||
|
||||
$sapphire = rgb(74c7ec)
|
||||
$sapphireAlpha = 74c7ec
|
||||
|
||||
$blue = rgb(89b4fa)
|
||||
$blueAlpha = 89b4fa
|
||||
|
||||
$lavender = rgb(b4befe)
|
||||
$lavenderAlpha = b4befe
|
||||
|
||||
$text = rgb(cdd6f4)
|
||||
$textAlpha = cdd6f4
|
||||
|
||||
$subtext1 = rgb(bac2de)
|
||||
$subtext1Alpha = bac2de
|
||||
|
||||
$subtext0 = rgb(a6adc8)
|
||||
$subtext0Alpha = a6adc8
|
||||
|
||||
$overlay2 = rgb(9399b2)
|
||||
$overlay2Alpha = 9399b2
|
||||
|
||||
$overlay1 = rgb(7f849c)
|
||||
$overlay1Alpha = 7f849c
|
||||
|
||||
$overlay0 = rgb(6c7086)
|
||||
$overlay0Alpha = 6c7086
|
||||
|
||||
$surface2 = rgb(585b70)
|
||||
$surface2Alpha = 585b70
|
||||
|
||||
$surface1 = rgb(45475a)
|
||||
$surface1Alpha = 45475a
|
||||
|
||||
$surface0 = rgb(313244)
|
||||
$surface0Alpha = 313244
|
||||
|
||||
$base = rgb(1e1e2e)
|
||||
$baseAlpha = 1e1e2e
|
||||
|
||||
$mantle = rgb(181825)
|
||||
$mantleAlpha = 181825
|
||||
|
||||
$crust = rgb(11111b)
|
||||
$crustAlpha = 11111b
|
||||
BIN
home/catppuccin/wallpaper.jpg
Normal file
BIN
home/catppuccin/wallpaper.jpg
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 2.4 MiB |
17
home/catppuccin/waybar.css
Normal file
17
home/catppuccin/waybar.css
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
@import "catppuccin.css";
|
||||
|
||||
* {
|
||||
color: @text;
|
||||
}
|
||||
|
||||
window#waybar {
|
||||
background-color: @base;
|
||||
}
|
||||
|
||||
#workspaces button.active {
|
||||
background-color: @surface0;
|
||||
}
|
||||
|
||||
#workspaces button.active:hover {
|
||||
background-color: @surface0;
|
||||
}
|
||||
116
home/cli/default.nix
Normal file
116
home/cli/default.nix
Normal file
|
|
@ -0,0 +1,116 @@
|
|||
{
|
||||
config,
|
||||
lib,
|
||||
pkgs,
|
||||
...
|
||||
}:
|
||||
{
|
||||
options = {
|
||||
custom.cli.enable = lib.mkEnableOption "Enable CLI config";
|
||||
};
|
||||
config = lib.mkIf config.custom.cli.enable {
|
||||
programs.ssh = {
|
||||
enable = true;
|
||||
enableDefaultConfig = false;
|
||||
matchBlocks."*" = {
|
||||
setEnv = {
|
||||
TERM = "xterm-256color";
|
||||
};
|
||||
};
|
||||
};
|
||||
home.packages = with pkgs; [
|
||||
bottom
|
||||
clang
|
||||
deploy-rs
|
||||
devbox
|
||||
dig
|
||||
dust
|
||||
fastfetch
|
||||
imagemagick
|
||||
nh
|
||||
termusic
|
||||
];
|
||||
home = {
|
||||
shell.enableFishIntegration = true;
|
||||
};
|
||||
xdg.configFile = {
|
||||
termusicServerConfig = {
|
||||
source = ./termusic/server.toml;
|
||||
target = "termusic/server.toml";
|
||||
};
|
||||
termusicTuiConfig = {
|
||||
source = ./termusic/tui.toml;
|
||||
target = "termusic/tui.toml";
|
||||
};
|
||||
};
|
||||
programs = {
|
||||
opencode = {
|
||||
enable = true;
|
||||
settings = {
|
||||
provider = {
|
||||
ai-tunnel = {
|
||||
options = {
|
||||
baseURL = "https://api.aitunnel.ru/v1/";
|
||||
};
|
||||
models = {
|
||||
"glm-5" = {
|
||||
name = "glm-5";
|
||||
};
|
||||
"glm-4.7-flash" = {
|
||||
name = "glm-4.7-flash";
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
bat.enable = true;
|
||||
eza.enable = true;
|
||||
fd = {
|
||||
enable = true;
|
||||
hidden = true;
|
||||
extraOptions = [
|
||||
"--hidden"
|
||||
"-g"
|
||||
"!*.git/"
|
||||
];
|
||||
};
|
||||
yazi = {
|
||||
enable = true;
|
||||
shellWrapperName = "y";
|
||||
};
|
||||
ripgrep = {
|
||||
enable = true;
|
||||
arguments = [
|
||||
"--hidden"
|
||||
"-g"
|
||||
"!*.git/"
|
||||
];
|
||||
};
|
||||
lazygit.enable = true;
|
||||
direnv.enable = true;
|
||||
home-manager.enable = true;
|
||||
delta = {
|
||||
enable = true;
|
||||
enableGitIntegration = true;
|
||||
};
|
||||
fish = {
|
||||
enable = true;
|
||||
interactiveShellInit = ''
|
||||
set fish_greeting
|
||||
'';
|
||||
};
|
||||
zoxide.enable = true;
|
||||
starship.enable = true;
|
||||
git = {
|
||||
enable = true;
|
||||
settings = {
|
||||
user = {
|
||||
email = "flygrounder@flygrounder.ru";
|
||||
name = "Артём Белоусов";
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
45
home/cli/termusic/server.toml
Normal file
45
home/cli/termusic/server.toml
Normal file
|
|
@ -0,0 +1,45 @@
|
|||
version = "2"
|
||||
|
||||
[com]
|
||||
protocol = "uds"
|
||||
socket_path = "/tmp/termusic.socket"
|
||||
port = 50101
|
||||
address = "::1"
|
||||
|
||||
[player]
|
||||
music_dirs = ["/home/flygrounder/Музыка"]
|
||||
loop_mode = "playlist"
|
||||
volume = 30
|
||||
speed = 10
|
||||
gapless = true
|
||||
use_mediacontrols = true
|
||||
set_discord_status = false
|
||||
random_track_quantity = 20
|
||||
random_album_min_quantity = 5
|
||||
backend = "rusty"
|
||||
|
||||
[player.remember_position]
|
||||
music = "no"
|
||||
podcast = "yes"
|
||||
|
||||
[player.seek_step]
|
||||
short_tracks = 5
|
||||
long_tracks = 30
|
||||
|
||||
[podcast]
|
||||
concurrent_downloads_max = 3
|
||||
max_download_retries = 3
|
||||
download_dir = "/home/flygrounder/Музыка"
|
||||
|
||||
[backends.rusty]
|
||||
soundtouch = true
|
||||
file_buffer_size = "4.0 MiB"
|
||||
decoded_buffer_size = "750.0 KiB"
|
||||
output_sample_rate = 48000
|
||||
|
||||
[backends.mpv]
|
||||
audio_device = "auto"
|
||||
|
||||
[metadata]
|
||||
directory_scan_depth = 10
|
||||
artist_separators = [",", ";", "&", "ft.", "feat.", "/", "|", "×", "、", " x "]
|
||||
173
home/cli/termusic/tui.toml
Normal file
173
home/cli/termusic/tui.toml
Normal file
|
|
@ -0,0 +1,173 @@
|
|||
version = "2"
|
||||
com = "same"
|
||||
|
||||
[behavior]
|
||||
quit_server_on_exit = false
|
||||
confirm_quit = false
|
||||
|
||||
[coverart]
|
||||
align = "bottom right"
|
||||
size_scale = 0
|
||||
hidden = false
|
||||
protocols = ["kitty", "sixel", "ueberzug", "iterm2"]
|
||||
|
||||
[style.library]
|
||||
foreground_color = "Foreground"
|
||||
background_color = "Reset"
|
||||
border_color = "Blue"
|
||||
highlight_color = "LightYellow"
|
||||
highlight_symbol = "🦄"
|
||||
|
||||
[style.playlist]
|
||||
foreground_color = "Foreground"
|
||||
background_color = "Reset"
|
||||
border_color = "Blue"
|
||||
highlight_color = "LightYellow"
|
||||
highlight_symbol = "🚀"
|
||||
current_track_symbol = "►"
|
||||
use_loop_mode_symbol = true
|
||||
|
||||
[style.lyric]
|
||||
foreground_color = "Foreground"
|
||||
background_color = "Reset"
|
||||
border_color = "Blue"
|
||||
|
||||
[style.progress]
|
||||
foreground_color = "LightBlack"
|
||||
background_color = "Reset"
|
||||
border_color = "Blue"
|
||||
|
||||
[style.important_popup]
|
||||
foreground_color = "Yellow"
|
||||
background_color = "Reset"
|
||||
border_color = "Yellow"
|
||||
|
||||
[style.fallback]
|
||||
foreground_color = "Foreground"
|
||||
background_color = "Reset"
|
||||
border_color = "Blue"
|
||||
highlight_color = "LightYellow"
|
||||
|
||||
[theme]
|
||||
name = "empty name"
|
||||
author = "empty author"
|
||||
|
||||
[theme.primary]
|
||||
background = "#101421"
|
||||
foreground = "#fffbf6"
|
||||
|
||||
[theme.cursor]
|
||||
text = "#1e1e1e"
|
||||
cursor = "#ffffff"
|
||||
|
||||
[theme.normal]
|
||||
black = "#2e2e2e"
|
||||
red = "#eb4129"
|
||||
green = "#abe047"
|
||||
yellow = "#f6c744"
|
||||
blue = "#47a0f3"
|
||||
magenta = "#7b5cb0"
|
||||
cyan = "#64dbed"
|
||||
white = "#e5e9f0"
|
||||
|
||||
[theme.bright]
|
||||
black = "#565656"
|
||||
red = "#ec5357"
|
||||
green = "#c0e17d"
|
||||
yellow = "#f9da6a"
|
||||
blue = "#49a4f8"
|
||||
magenta = "#a47de9"
|
||||
cyan = "#99faf2"
|
||||
white = "#ffffff"
|
||||
|
||||
[keys]
|
||||
escape = "escape"
|
||||
quit = "q"
|
||||
|
||||
[keys.view]
|
||||
view_library = "1"
|
||||
view_database = "2"
|
||||
view_podcasts = "3"
|
||||
open_config = "shift+C"
|
||||
open_help = "control+h"
|
||||
|
||||
[keys.navigation]
|
||||
up = "k"
|
||||
down = "j"
|
||||
left = "h"
|
||||
right = "l"
|
||||
goto_top = "g"
|
||||
goto_bottom = "shift+G"
|
||||
|
||||
[keys.global_player]
|
||||
toggle_pause = "space"
|
||||
next_track = "n"
|
||||
previous_track = "shift+N"
|
||||
volume_up = "+"
|
||||
volume_down = "-"
|
||||
seek_forward = "f"
|
||||
seek_backward = "b"
|
||||
speed_up = "control+f"
|
||||
speed_down = "control+b"
|
||||
toggle_prefetch = "control+g"
|
||||
save_playlist = "control+s"
|
||||
|
||||
[keys.global_lyric]
|
||||
adjust_offset_forwards = "shift+F"
|
||||
adjust_offset_backwards = "shift+B"
|
||||
cycle_frames = "shift+T"
|
||||
|
||||
[keys.library]
|
||||
load_track = "l"
|
||||
load_dir = "shift+L"
|
||||
delete = "d"
|
||||
yank = "y"
|
||||
paste = "p"
|
||||
cycle_root = "o"
|
||||
add_root = "a"
|
||||
remove_root = "shift+A"
|
||||
search = "/"
|
||||
youtube_search = "s"
|
||||
open_tag_editor = "t"
|
||||
|
||||
[keys.playlist]
|
||||
delete = "d"
|
||||
delete_all = "shift+D"
|
||||
shuffle = "r"
|
||||
cycle_loop_mode = "m"
|
||||
play_selected = "l"
|
||||
search = "/"
|
||||
swap_up = "shift+K"
|
||||
swap_down = "shift+J"
|
||||
add_random_songs = "s"
|
||||
add_random_album = "shift+S"
|
||||
|
||||
[keys.database]
|
||||
add_selected = "l"
|
||||
add_all = "shift+L"
|
||||
|
||||
[keys.podcast]
|
||||
search = "s"
|
||||
mark_played = "m"
|
||||
mark_all_played = "shift+M"
|
||||
refresh_feed = "r"
|
||||
refresh_all_feeds = "shift+R"
|
||||
download_episode = "d"
|
||||
delete_local_episode = "shift+D"
|
||||
delete_feed = "x"
|
||||
delete_all_feeds = "shift+X"
|
||||
|
||||
[keys.adjust_cover_art]
|
||||
move_left = "control+shift+arrowleft"
|
||||
move_right = "control+shift+arrowright"
|
||||
move_up = "control+shift+arrowup"
|
||||
move_down = "control+shift+arrowdown"
|
||||
increase_size = "control+shift+pageup"
|
||||
decrease_size = "control+shift+pagedown"
|
||||
toggle_hide = "control+shift+end"
|
||||
|
||||
[keys.config]
|
||||
save = "control+s"
|
||||
|
||||
[ytdlp]
|
||||
extra_args = ""
|
||||
19
home/default.nix
Normal file
19
home/default.nix
Normal file
|
|
@ -0,0 +1,19 @@
|
|||
{ ... }:
|
||||
{
|
||||
imports = [
|
||||
./catppuccin
|
||||
./cli
|
||||
./hyprland
|
||||
./low-battery-notify
|
||||
./waybar
|
||||
./gui.nix
|
||||
./neovim.nix
|
||||
];
|
||||
|
||||
home = {
|
||||
username = "flygrounder";
|
||||
homeDirectory = "/home/flygrounder";
|
||||
stateVersion = "25.11";
|
||||
};
|
||||
programs.home-manager.enable = true;
|
||||
}
|
||||
26
home/gui.nix
Normal file
26
home/gui.nix
Normal file
|
|
@ -0,0 +1,26 @@
|
|||
{
|
||||
pkgs,
|
||||
config,
|
||||
lib,
|
||||
...
|
||||
}:
|
||||
{
|
||||
options = {
|
||||
custom.gui.enable = lib.mkEnableOption "Enable GUI apps";
|
||||
};
|
||||
config = lib.mkIf config.custom.gui.enable {
|
||||
home.packages = with pkgs; [
|
||||
brave
|
||||
feather
|
||||
fluffychat
|
||||
libreoffice
|
||||
obsidian
|
||||
pavucontrol
|
||||
qbittorrent
|
||||
telegram-desktop
|
||||
thunderbird
|
||||
trezor-suite
|
||||
vesktop
|
||||
];
|
||||
};
|
||||
}
|
||||
BIN
home/hyprland/avatar.png
Normal file
BIN
home/hyprland/avatar.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 254 KiB |
221
home/hyprland/default.nix
Normal file
221
home/hyprland/default.nix
Normal file
|
|
@ -0,0 +1,221 @@
|
|||
{
|
||||
lib,
|
||||
pkgs,
|
||||
config,
|
||||
...
|
||||
}:
|
||||
{
|
||||
options = {
|
||||
custom.hyprland.enable = lib.mkEnableOption "Enable hyprland config";
|
||||
};
|
||||
config = lib.mkIf config.custom.hyprland.enable {
|
||||
xdg.dataFile = {
|
||||
avatar = {
|
||||
source = ./avatar.png;
|
||||
target = "images/avatar.png";
|
||||
};
|
||||
};
|
||||
programs = {
|
||||
vicinae.enable = true;
|
||||
ghostty = {
|
||||
enable = true;
|
||||
settings = {
|
||||
font-family = "FiraCode Nerd Font";
|
||||
window-padding-x = 15;
|
||||
window-padding-y = 10;
|
||||
confirm-close-surface = false;
|
||||
resize-overlay = "never";
|
||||
app-notifications = "no-clipboard-copy";
|
||||
};
|
||||
};
|
||||
hyprlock = {
|
||||
enable = true;
|
||||
settings = {
|
||||
"$font" = "Roboto";
|
||||
|
||||
general = {
|
||||
hide_cursor = true;
|
||||
};
|
||||
|
||||
background = {
|
||||
monitor = "";
|
||||
};
|
||||
|
||||
label = {
|
||||
monitor = "";
|
||||
text = "$LAYOUT[EN,RU]";
|
||||
font_size = 18;
|
||||
font_family = "$font";
|
||||
position = "0, -120";
|
||||
halign = "center";
|
||||
valign = "center";
|
||||
};
|
||||
|
||||
image = {
|
||||
monitor = "";
|
||||
path = "$HOME/.local/share/images/avatar.png";
|
||||
size = 120;
|
||||
rounding = 10;
|
||||
border_size = 2;
|
||||
position = "0, 100";
|
||||
halign = "center";
|
||||
valign = "center";
|
||||
};
|
||||
|
||||
input-field = {
|
||||
monitor = "";
|
||||
size = "300, 60";
|
||||
outline_thickness = 2;
|
||||
dots_size = 0.2;
|
||||
dots_spacing = 0.2;
|
||||
dots_center = true;
|
||||
placeholder_text = "Введите пароль";
|
||||
fade_on_empty = false;
|
||||
hide_input = false;
|
||||
fail_text = "Неверный пароль";
|
||||
position = "0, -47";
|
||||
halign = "center";
|
||||
valign = "center";
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
home.packages = with pkgs; [
|
||||
acpi
|
||||
grim
|
||||
jq
|
||||
slurp
|
||||
wl-clipboard
|
||||
];
|
||||
wayland.windowManager.hyprland = {
|
||||
enable = true;
|
||||
settings = {
|
||||
general = {
|
||||
layout = "master";
|
||||
border_size = 3;
|
||||
gaps_in = 7;
|
||||
gaps_out = 14;
|
||||
};
|
||||
decoration.rounding = 10;
|
||||
input = {
|
||||
kb_layout = "us,ru";
|
||||
kb_options = "grp:alt_shift_toggle";
|
||||
touchpad.natural_scroll = true;
|
||||
};
|
||||
"$mainMod" = "SUPER";
|
||||
bindm = [
|
||||
"$mainMod, mouse:272, movewindow"
|
||||
"$mainMod, mouse:273, resizewindow"
|
||||
];
|
||||
bind = [
|
||||
"$mainMod SHIFT, Q, exit,"
|
||||
|
||||
"$mainMod, RETURN, exec, ghostty"
|
||||
"$mainMod, D, exec, vicinae open"
|
||||
|
||||
"$mainMod, Q, killactive,"
|
||||
"$mainMod, V, togglefloating,"
|
||||
"$mainMod, F, fullscreen"
|
||||
|
||||
"$mainMod, K, layoutmsg, cycleprev"
|
||||
"$mainMod, J, layoutmsg, cyclenext"
|
||||
|
||||
"$mainMod SHIFT, K, layoutmsg, swapprev"
|
||||
"$mainMod SHIFT, J, layoutmsg, swapnext"
|
||||
|
||||
"$mainMod, L, exec, loginctl lock-session"
|
||||
|
||||
"$mainMod, 1, workspace, 1"
|
||||
"$mainMod, 2, workspace, 2"
|
||||
"$mainMod, 3, workspace, 3"
|
||||
"$mainMod, 4, workspace, 4"
|
||||
"$mainMod, 5, workspace, 5"
|
||||
"$mainMod, 6, workspace, 6"
|
||||
"$mainMod, 7, workspace, 7"
|
||||
"$mainMod, 8, workspace, 8"
|
||||
"$mainMod, 9, workspace, 9"
|
||||
"$mainMod, 0, workspace, 10"
|
||||
|
||||
"$mainMod SHIFT, 1, movetoworkspace, 1"
|
||||
"$mainMod SHIFT, 2, movetoworkspace, 2"
|
||||
"$mainMod SHIFT, 3, movetoworkspace, 3"
|
||||
"$mainMod SHIFT, 4, movetoworkspace, 4"
|
||||
"$mainMod SHIFT, 5, movetoworkspace, 5"
|
||||
"$mainMod SHIFT, 6, movetoworkspace, 6"
|
||||
"$mainMod SHIFT, 7, movetoworkspace, 7"
|
||||
"$mainMod SHIFT, 8, movetoworkspace, 8"
|
||||
"$mainMod SHIFT, 9, movetoworkspace, 9"
|
||||
"$mainMod SHIFT, 0, movetoworkspace, 10"
|
||||
|
||||
", Print, exec, mkdir -p ~/Изображения/Скриншоты && grim -o \"$(hyprctl activeworkspace -j | jq -r '.monitor')\" - | tee ~/Изображения/Скриншоты/`date +'%Y_%m_%d_%H_%M_%S_%3N.png'` | wl-copy && dunstify \"Снимок всего экрана сделан\""
|
||||
"SHIFT, Print, exec, mkdir -p ~/Изображения/Скриншоты && grim -g \"$(slurp -d)\" - | tee ~/Изображения/Скриншоты/`date +'%Y_%m_%d_%H_%M_%S_%3N.png'` | wl-copy && dunstify 'Снимок области сделан'"
|
||||
|
||||
", XF86AudioRaiseVolume, exec, wpctl set-volume @DEFAULT_AUDIO_SINK@ 5%+"
|
||||
", XF86AudioLowerVolume, exec, wpctl set-volume @DEFAULT_AUDIO_SINK@ 5%-"
|
||||
", XF86AudioMute, exec, wpctl set-mute @DEFAULT_AUDIO_SINK@ toggle"
|
||||
|
||||
", XF86MonBrightnessUp, exec, brightnessctl set +10%"
|
||||
", XF86MonBrightnessDown, exec, brightnessctl set 10%-"
|
||||
];
|
||||
gesture = [
|
||||
"3, horizontal, workspace"
|
||||
];
|
||||
exec-once = [
|
||||
"dunst"
|
||||
"waybar"
|
||||
"vicinae server"
|
||||
];
|
||||
};
|
||||
};
|
||||
services = {
|
||||
hyprpaper = {
|
||||
enable = true;
|
||||
settings = {
|
||||
splash = false;
|
||||
};
|
||||
};
|
||||
network-manager-applet.enable = true;
|
||||
blueman-applet.enable = true;
|
||||
dunst = {
|
||||
enable = true;
|
||||
settings = {
|
||||
global = {
|
||||
font = "Roboto 12";
|
||||
corner_radius = 16;
|
||||
};
|
||||
};
|
||||
};
|
||||
hypridle = {
|
||||
enable = true;
|
||||
settings = {
|
||||
general = {
|
||||
lock_cmd = "pidof hyprlock || hyprlock";
|
||||
before_sleep_cmd = "loginctl lock-session";
|
||||
after_sleep_cmd = "hyprctl dispatch dpms on";
|
||||
};
|
||||
|
||||
listener = [
|
||||
{
|
||||
timeout = 150;
|
||||
on-timeout = "brightnessctl -s set 10";
|
||||
on-resume = "brightnessctl -r";
|
||||
}
|
||||
{
|
||||
timeout = 300;
|
||||
on-timeout = "loginctl lock-session";
|
||||
}
|
||||
{
|
||||
timeout = 330;
|
||||
on-timeout = "hyprctl dispatch dpms off";
|
||||
on-resume = "hyprctl dispatch dpms on && brightnessctl -r";
|
||||
}
|
||||
{
|
||||
timeout = 1800;
|
||||
on-timeout = "systemctl suspend";
|
||||
}
|
||||
];
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
47
home/low-battery-notify/default.nix
Normal file
47
home/low-battery-notify/default.nix
Normal file
|
|
@ -0,0 +1,47 @@
|
|||
{ config, lib, pkgs, ... }:
|
||||
{
|
||||
options = {
|
||||
custom.low-battery-notify.enable = lib.mkEnableOption "Enable low battery notification";
|
||||
};
|
||||
config = lib.mkIf config.custom.low-battery-notify.enable {
|
||||
home.packages = with pkgs; [
|
||||
python3
|
||||
];
|
||||
systemd.user = {
|
||||
services = {
|
||||
low-battery-notify = {
|
||||
Unit = {
|
||||
Description = "Low battery notify";
|
||||
};
|
||||
|
||||
Service = {
|
||||
Type = "oneshot";
|
||||
ExecStart = "/home/flygrounder/.local/share/scripts/low-battery-notify.py";
|
||||
};
|
||||
};
|
||||
};
|
||||
timers = {
|
||||
low-battery-notify = {
|
||||
Unit = {
|
||||
Description = "test";
|
||||
};
|
||||
|
||||
Timer = {
|
||||
OnUnitActiveSec = "10m";
|
||||
OnBootSec = "10m";
|
||||
};
|
||||
|
||||
Install = {
|
||||
WantedBy = [ "timers.target" ];
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
xdg.dataFile = {
|
||||
low-battery-notify = {
|
||||
source = ./script.py;
|
||||
target = "scripts/low-battery-notify.py";
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
11
home/low-battery-notify/script.py
Executable file
11
home/low-battery-notify/script.py
Executable file
|
|
@ -0,0 +1,11 @@
|
|||
#!/usr/bin/env python3
|
||||
import subprocess
|
||||
import re
|
||||
|
||||
output = subprocess.check_output(["acpi", "-b"]).decode()
|
||||
m = re.match(r'.*Discharging, (\d+)%', output)
|
||||
if m is None:
|
||||
exit()
|
||||
charge = int(m.group(1))
|
||||
if charge <= 20:
|
||||
subprocess.run(["dunstify", "-u", "critical", f"Низкий уровень заряда: {charge}%"])
|
||||
141
home/neovim.nix
Normal file
141
home/neovim.nix
Normal file
|
|
@ -0,0 +1,141 @@
|
|||
{ lib, config, ... }:
|
||||
{
|
||||
options = {
|
||||
custom.neovim.enable = lib.mkEnableOption "My neovim config";
|
||||
};
|
||||
config = lib.mkIf config.custom.neovim.enable {
|
||||
home = {
|
||||
sessionVariables = {
|
||||
EDITOR = "nvim";
|
||||
};
|
||||
};
|
||||
programs.nixvim = {
|
||||
enable = true;
|
||||
plugins = {
|
||||
dropbar.enable = true;
|
||||
lspconfig.enable = true;
|
||||
guess-indent.enable = true;
|
||||
oil.enable = true;
|
||||
mini-statusline.enable = true;
|
||||
mini-pairs.enable = true;
|
||||
mini-pick.enable = true;
|
||||
mini-diff.enable = true;
|
||||
mini-indentscope.enable = true;
|
||||
mini-surround.enable = true;
|
||||
ts-autotag.enable = true;
|
||||
blink-cmp = {
|
||||
enable = true;
|
||||
settings = {
|
||||
signature = {
|
||||
enabled = true;
|
||||
};
|
||||
};
|
||||
};
|
||||
treesitter = {
|
||||
enable = true;
|
||||
highlight.enable = true;
|
||||
indent.enable = true;
|
||||
};
|
||||
harpoon.enable = true;
|
||||
};
|
||||
keymaps = [
|
||||
{
|
||||
action = "<cmd>Oil<CR>";
|
||||
key = "<leader>o";
|
||||
}
|
||||
{
|
||||
action = "<cmd>lua require('mini.pick').builtin.files()<CR>";
|
||||
key = "<leader>f";
|
||||
}
|
||||
{
|
||||
action = "<cmd>lua require('mini.pick').builtin.grep_live()<CR>";
|
||||
key = "<leader>g";
|
||||
}
|
||||
{
|
||||
action = "<cmd>lua require('mini.pick').builtin.help()<CR>";
|
||||
key = "<leader>h";
|
||||
}
|
||||
{
|
||||
action = "<cmd>lua require('mini.pick').builtin.resume()<CR>";
|
||||
key = "<leader>r";
|
||||
}
|
||||
{
|
||||
action = "<cmd>lua vim.lsp.buf.format()<CR>";
|
||||
key = "<leader>i";
|
||||
}
|
||||
{
|
||||
action = "<cmd>lua vim.lsp.buf.code_action()<CR>";
|
||||
key = "<leader>a";
|
||||
}
|
||||
{
|
||||
action = "<cmd>lua vim.diagnostic.goto_prev({ float = true })<CR>";
|
||||
key = "[d";
|
||||
}
|
||||
{
|
||||
action = "<cmd>lua vim.diagnostic.goto_next({ float = true })<CR>";
|
||||
key = "]d";
|
||||
}
|
||||
{
|
||||
action = "<cmd>lua vim.diagnostic.setqflist()<CR>";
|
||||
key = "<leader>d";
|
||||
}
|
||||
{
|
||||
action = "<cmd>lua require('harpoon'):list():add()<CR>";
|
||||
key = "<leader>k";
|
||||
}
|
||||
{
|
||||
action = "<cmd>lua require('harpoon'):list():select(1)<CR>";
|
||||
key = "<M-q>";
|
||||
}
|
||||
{
|
||||
action = "<cmd>lua require('harpoon'):list():select(2)<CR>";
|
||||
key = "<M-w>";
|
||||
}
|
||||
{
|
||||
action = "<cmd>lua require('harpoon'):list():select(3)<CR>";
|
||||
key = "<M-e>";
|
||||
}
|
||||
{
|
||||
action = "<cmd>lua require('harpoon'):list():select(4)<CR>";
|
||||
key = "<M-r>";
|
||||
}
|
||||
{
|
||||
action = "<cmd>lua require('harpoon').ui:toggle_quick_menu(require('harpoon'):list())<CR>";
|
||||
key = "<leader>j";
|
||||
}
|
||||
{
|
||||
action = "<cmd>CopyRelativePath<CR>";
|
||||
key = "<leader>p";
|
||||
}
|
||||
];
|
||||
globals.mapleader = " ";
|
||||
opts = {
|
||||
number = true;
|
||||
relativenumber = true;
|
||||
ignorecase = true;
|
||||
smartcase = true;
|
||||
swapfile = false;
|
||||
exrc = true;
|
||||
};
|
||||
colorschemes.catppuccin.enable = true;
|
||||
clipboard.register = "unnamedplus";
|
||||
userCommands = {
|
||||
CopyRelativePath = {
|
||||
command = "call setreg('+', expand('%'))";
|
||||
};
|
||||
};
|
||||
lsp.servers = {
|
||||
basedpyright.enable = true;
|
||||
gopls.enable = true;
|
||||
nil_ls.enable = true;
|
||||
rust_analyzer.enable = true;
|
||||
html.enable = true;
|
||||
jsonls.enable = true;
|
||||
yamlls.enable = true;
|
||||
cssls.enable = true;
|
||||
tailwindcss.enable = true;
|
||||
vtsls.enable = true;
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
86
home/waybar/default.nix
Normal file
86
home/waybar/default.nix
Normal file
|
|
@ -0,0 +1,86 @@
|
|||
{
|
||||
pkgs,
|
||||
lib,
|
||||
config,
|
||||
...
|
||||
}:
|
||||
{
|
||||
options = {
|
||||
custom.waybar.enable = lib.mkEnableOption "Enable waybar config";
|
||||
};
|
||||
config = lib.mkIf config.custom.waybar.enable {
|
||||
xdg.configFile = {
|
||||
waybarColorscheme = {
|
||||
text = "";
|
||||
target = "waybar/colorscheme.css";
|
||||
};
|
||||
};
|
||||
catppuccin.waybar.mode = "createLink";
|
||||
programs.waybar = {
|
||||
enable = true;
|
||||
style = ./style.css;
|
||||
settings = {
|
||||
mainBar = {
|
||||
margin-top = 14;
|
||||
margin-left = 14;
|
||||
margin-right = 14;
|
||||
layer = "top";
|
||||
modules-left = [
|
||||
"custom/logo"
|
||||
"hyprland/workspaces"
|
||||
];
|
||||
modules-center = [ "hyprland/window" ];
|
||||
modules-right = [
|
||||
"hyprland/language"
|
||||
"wireplumber"
|
||||
"backlight"
|
||||
"battery"
|
||||
"clock"
|
||||
"tray"
|
||||
];
|
||||
clock = {
|
||||
format = " {:%d.%m.%Y %H:%M}";
|
||||
};
|
||||
backlight = {
|
||||
format = " {percent}%";
|
||||
};
|
||||
"hyprland/language" = {
|
||||
format = " {}";
|
||||
format-en = "EN";
|
||||
format-ru = "RU";
|
||||
};
|
||||
wireplumber = {
|
||||
format = "{icon} {volume}%";
|
||||
format-icons = [
|
||||
""
|
||||
""
|
||||
""
|
||||
];
|
||||
format-muted = " {volume}%";
|
||||
};
|
||||
"custom/logo" = {
|
||||
format = "";
|
||||
};
|
||||
tray = {
|
||||
spacing = 10;
|
||||
};
|
||||
"hyprland/window" = {
|
||||
max-length = 50;
|
||||
};
|
||||
battery = {
|
||||
format = "{icon} {capacity}% {time}";
|
||||
format-icons = [
|
||||
""
|
||||
""
|
||||
""
|
||||
""
|
||||
""
|
||||
];
|
||||
format-time = "{H}:{m}";
|
||||
format-charging = " {capacity}% {time}";
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
44
home/waybar/style.css
Normal file
44
home/waybar/style.css
Normal file
|
|
@ -0,0 +1,44 @@
|
|||
@import "colorscheme.css";
|
||||
|
||||
* {
|
||||
font-size: 18px;
|
||||
font-family:
|
||||
Roboto, "Font Awesome 7 Free Solid", "Font Awesome 6 Free Solid";
|
||||
}
|
||||
|
||||
#custom-logo {
|
||||
font-size: 20px;
|
||||
font-family: "FiraCode Nerd Font";
|
||||
margin-left: 16px;
|
||||
margin-right: 16px;
|
||||
}
|
||||
|
||||
.modules-right {
|
||||
margin-right: 20px;
|
||||
}
|
||||
|
||||
.modules-right .module {
|
||||
margin-left: 20px;
|
||||
}
|
||||
|
||||
window#waybar {
|
||||
border-radius: 16px;
|
||||
}
|
||||
|
||||
#workspaces button.active {
|
||||
border-radius: 100%;
|
||||
}
|
||||
|
||||
#workspaces button:hover {
|
||||
border-color: transparent;
|
||||
box-shadow: none;
|
||||
text-shadow: none;
|
||||
background: none;
|
||||
transition: none;
|
||||
}
|
||||
|
||||
#workspaces button {
|
||||
min-width: 20px;
|
||||
min-height: 20px;
|
||||
padding: 7px;
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue