From 5e11af76e7d60eaad3ff15e4fa34164546f9c939 Mon Sep 17 00:00:00 2001 From: pablusha Date: Wed, 7 Jan 2026 20:35:43 +0300 Subject: [PATCH] sdfasdf --- conky1.conf | 64 ++++++++++++ conky2.conf | 63 ++++++++++++ conky3.conf | 64 ++++++++++++ conky4.conf | 56 +++++++++++ home.nix | 277 ++++++++++++++++++++++++++++------------------------ 5 files changed, 395 insertions(+), 129 deletions(-) create mode 100644 conky1.conf create mode 100644 conky2.conf create mode 100644 conky3.conf create mode 100644 conky4.conf diff --git a/conky1.conf b/conky1.conf new file mode 100644 index 0000000..8ac3441 --- /dev/null +++ b/conky1.conf @@ -0,0 +1,64 @@ +conky.config = { + background = true, + update_interval = 1, + total_run_times = 0, + + own_window = true, + own_window_class = 'Conky', + own_window_type = 'desktop', + own_window_transparent = false, + own_window_argb_visual = true, + own_window_argb_value = 128, + own_window_colour = '000000', + own_window_hints = 'undecorated,below,sticky,skip_taskbar,skip_pager', + + alignment = 'top_left', + gap_x = 30, + gap_y = 58, + + border_inner_margin = 5, + border_outer_margin = 5, + border_width = 0, + draw_borders = false, + draw_outline = false, + draw_shades = false, + + font = 'Terminus (TTF):style=Medium:size=10', + use_xft = true, + uppercase = false, + + default_color = 'FFFFFF', + color1 = 'FFFFFF', + color2 = 'CCCCCC', + color3 = '888888', + + minimum_width = 230, + maximum_width = 300, + minimum_height = 340, + + double_buffer = true, + no_buffers = true, + text_buffer_size = 2048, + imlib_cache_size = 0, +}; + +conky.text = [[ +${alignc}${font Terminus (TTF):style=Bold:size=12}${color1}SYSTEM +${voffset 2} +${font Terminus (TTF):style=Medium:size=11}${color2}Host:${color} $nodename +${color2}Kernel:${color} $kernel +${color2}Uptime:${color} $uptime +${voffset 2} +${alignc}${font Terminus (TTF):style=Bold:size=12}${color1}CPU +${voffset 2} +${font Terminus (TTF):style=Medium:size=11}${color2}Usage:${color} ${cpu cpu0}% ${cpubar cpu0 10,100} +${color2}Frequency:${color} ${freq_g} GHz +${color2}Temperature:${color} ${hwmon 0 temp 1}°C +${cpugraph cpu0 30,150 888888 888888 -l} +${voffset 2} +${color2}Cores:${color} +${offset 0}CPU1: ${cpu cpu1}% ${cpubar cpu1 5,50} +${offset 0}CPU2: ${cpu cpu2}% ${cpubar cpu2 5,50} +${offset 0}CPU3: ${cpu cpu3}% ${cpubar cpu3 5,50} +${offset 0}CPU4: ${cpu cpu4}% ${cpubar cpu4 5,50} +]]; \ No newline at end of file diff --git a/conky2.conf b/conky2.conf new file mode 100644 index 0000000..f5593d7 --- /dev/null +++ b/conky2.conf @@ -0,0 +1,63 @@ +conky.config = { + background = true, + update_interval = 1, + total_run_times = 0, + + own_window = true, + own_window_class = 'Conky', + own_window_type = 'desktop', + own_window_transparent = false, + own_window_argb_visual = true, + own_window_argb_value = 128, + own_window_colour = '000000', + own_window_hints = 'undecorated,below,sticky,skip_taskbar,skip_pager', + + alignment = 'top_left', + gap_x = 281, + gap_y = 58, + + border_inner_margin = 5, + border_outer_margin = 5, + border_width = 0, + draw_borders = false, + draw_outline = false, + draw_shades = false, + + font = 'Terminus (TTF):style=Medium:size=10', + use_xft = true, + uppercase = false, + + default_color = 'FFFFFF', + color1 = 'FFFFFF', + color2 = 'CCCCCC', + color3 = '888888', + + minimum_width = 240, + maximum_width = 300, + minimum_height = 340, + + double_buffer = true, + no_buffers = true, + text_buffer_size = 2048, + imlib_cache_size = 0, +}; + +conky.text = [[ +${alignc}${font Terminus (TTF):style=Bold:size=12}${color1}MEMORY +${voffset 2} +${font Terminus (TTF):style=Medium:size=11}${color2}RAM:${color} $mem / $memmax ($memperc%) +${membar 10,150} +${color2}Swap:${color} $swap / $swapmax ($swapperc%) +${swapbar 10,150} +${color2}RAM Graph:${color} +${memgraph 30,150 888888 888888 -l} +${voffset 2} + +${alignc}${font Terminus (TTF):style=Bold:size=12}${color1}DISKS +${voffset 2} +${font Terminus (TTF):style=Medium:size=11}${color2}Root (/):${color} +${offset 0}${fs_used /} / ${fs_size /} (${fs_free_perc /}% free) +${offset 0}${fs_bar 10,100 /} +${color2}Disk I/O:${color} +${offset 0}Read: ${diskio_read} Write: ${diskio_write} +]]; \ No newline at end of file diff --git a/conky3.conf b/conky3.conf new file mode 100644 index 0000000..11113ea --- /dev/null +++ b/conky3.conf @@ -0,0 +1,64 @@ +conky.config = { + background = true, + update_interval = 1, + total_run_times = 0, + + own_window = true, + own_window_class = 'Conky', + own_window_type = 'desktop', + own_window_transparent = false, + own_window_argb_visual = true, + own_window_argb_value = 128, + own_window_colour = '000000', + own_window_hints = 'undecorated,below,sticky,skip_taskbar,skip_pager', + + alignment = 'top_left', + gap_x = 542, + gap_y = 58, + + border_inner_margin = 5, + border_outer_margin = 5, + border_width = 0, + draw_borders = false, + draw_outline = false, + draw_shades = false, + + font = 'Terminus (TTF):style=Medium:size=10', + use_xft = true, + uppercase = false, + + default_color = 'FFFFFF', + color1 = 'FFFFFF', + color2 = 'CCCCCC', + color3 = '888888', + + minimum_width = 340, + maximum_width = 340, + minimum_height = 340, + + double_buffer = true, + no_buffers = true, + text_buffer_size = 2048, + imlib_cache_size = 0, + + if_up_strictness = 'address', +}; + +conky.text = [[ +${alignc}${font Terminus (TTF):style=Bold:size=12}${color1}NETWORK +${voffset 2} +${font Terminus (TTF):style=Medium:size=11}${color2}IP Address:${color} ${addr enp2s0} +${color2}Download:${color} ${downspeed enp2s0} +${color2}Upload:${color} ${upspeed enp2s0} +${color2}Total Down:${color} ${totaldown enp2s0} +${color2}Total Up:${color} ${totalup enp2s0} +${color2}Download Graph:${color} +${downspeedgraph enp2s0 30,150 888888 888888 -l} +${color2}Upload Graph:${color} +${upspeedgraph enp2s0 30,150 888888 888888 -l} + +${alignc}${font Terminus (TTF):style=Bold:size=12}${color1}MUSIC + +${font Terminus (TTF):style=Medium:size=11}${color2}Status:${color} ${exec playerctl status 2>/dev/null || echo "Not active"} +${color2}Now Playing: ${color}${exec playerctl metadata --format "{{artist}} - {{title}}" 2>/dev/null || echo "Unknown"} +]]; \ No newline at end of file diff --git a/conky4.conf b/conky4.conf new file mode 100644 index 0000000..7076d26 --- /dev/null +++ b/conky4.conf @@ -0,0 +1,56 @@ +conky.config = { + background = true, + update_interval = 1, + total_run_times = 0, + + own_window = true, + own_window_class = 'Conky', + own_window_type = 'desktop', + own_window_transparent = false, + own_window_argb_visual = true, + own_window_argb_value = 0, + own_window_colour = '000000', + own_window_hints = 'undecorated,below,sticky,skip_taskbar,skip_pager', + + alignment = 'top_right', + gap_x = 30, + gap_y = 58, -- 50 + 300 + 20 отступа + + border_inner_margin = 5, + border_outer_margin = 5, + border_width = 0, + draw_borders = false, + draw_outline = false, + draw_shades = false, + + font = 'Terminus (TTF):style=Medium:size=10', + use_xft = true, + uppercase = false, + + default_color = 'FFFFFF', + color1 = 'FFFFFF', + color2 = 'CCCCCC', + color3 = '888888', + + minimum_width = 300, + maximum_width = 300, + minimum_height = 150, + + double_buffer = true, + no_buffers = true, + text_buffer_size = 2048, + imlib_cache_size = 0, +}; + +conky.text = [[ +${alignc}${font Terminus (TTF):style=Bold:size=12}${color1}TIME +${voffset 2} +${font Terminus (TTF):style=Bold:size=22}${alignc}${time %H:%M:%S} +${font Terminus (TTF):style=Medium:size=12}${alignc}${time %d.%m.%Y} +${alignc}${time %A} +${voffset 10} +${alignc}${font Terminus (TTF):style=Bold:size=12}${color1}PROCESSES +${voffset 2} +${font Terminus (TTF):style=Medium:size=11}${color2}Total:${color} ${processes} +${color2}Running:${color} ${running_processes} +]]; \ No newline at end of file diff --git a/home.nix b/home.nix index e064b2c..ea1e557 100644 --- a/home.nix +++ b/home.nix @@ -1,53 +1,13 @@ -{config, lib, pkgs, ...}: +{ config, lib, pkgs, ... }: { home.username = "pablusha"; home.homeDirectory = "/home/pablusha"; home.stateVersion = "25.11"; + programs.home-manager.enable = true; nixpkgs.config.allowUnfree = true; - - home.packages = with pkgs; [ - telegram-desktop - mako - swww - pkgs.nerd-fonts.monaspace - xdg-user-dirs - gnome-themes-extra - prismlauncher - libsForQt5.qt5ct - ncdu - audacious - gcc - python3 - python3Packages.pip - xfce.thunar - xfce.tumbler - lf - hyprshot - gthumb - xarchiver - glib - nftables - remmina - qemu - obsidian - krita - blender - vlc - cava - ventoy - unrar - libreoffice-qt - scrcpy - android-tools - mate.atril - ffmpeg - file - themechanger - ]; - nixpkgs.config.permittedInsecurePackages = [ "ventoy-1.1.07" ]; @@ -56,66 +16,134 @@ ./syncthing.nix ]; - # theme & cursor + home.packages = with pkgs; [ + # Messaging + telegram-desktop + thunderbird + + # Fonts + nerd-fonts.monaspace + terminus_font_ttf + + # Desktop utilities + xdg-user-dirs + gnome-themes-extra + libsForQt5.qt5ct + gtk3 + conky - home.pointerCursor = { - enable = true; - package = pkgs.bibata-cursors; - name = "Bibata-Modern-Classic"; - size = 22; - gtk.enable = true; - }; + # File management + xfce.thunar + xfce.tumbler + gthumb + xarchiver + glib + file + unrar - dconf.settings = { - "org/gnome/desktop/interface" = { - color-scheme = "prefer-dark"; - gtk-theme = "Adwaita-dark"; + # Games + prismlauncher + osu-lazer-bin + wine + steam + + # XFCE plugins + xfce.xfce4-whiskermenu-plugin + xfce.xfce4-docklike-plugin + xfce.xfce4-cpugraph-plugin + xfce.xfce4-netload-plugin + + # Development + gcc + (python3.withPackages (ps: with ps; [ + pip + aiofiles + aiohttp + ])) + (texlive.combine { + inherit (texlive) + scheme-medium + latexmk + collection-langcyrillic + cm-super + enumitem + listings + pgfplots + xcolor; + }) + orca-slicer + + # Virtualization & emulation + qemu + OVMF + scrcpy + android-tools + tigervnc + virt-manager + libvirt + dnsmasq + + # System tools + ncdu + nftables + nmap + ventoy + ffmpeg + playerctl + nethogs + iftop + openjdk8 + qbittorrent + gparted + usbutils + + # Multimedia + (pkgs.blender.override { cudaSupport = true; }) + audacious + vlc + cava + krita + + # Office + libreoffice-qt + obsidian + remmina + mate.atril + + # camera + + gphoto2 + v4l-utils + + # OBS plugins + obs-studio-plugins.obs-pipewire-audio-capture + obs-studio-plugins.wlrobs + obs-studio-plugins.obs-backgroundremoval + obs-studio-plugins.obs-gstreamer + obs-studio-plugins.obs-pipewire-audio-capture + + noto-fonts-color-emoji + ]; + + fonts.fontconfig = { + defaultFonts = { + emoji = [ "Noto Color Emoji" ]; }; }; - gtk = { - font.name = "DejaVu Sans 10"; + qt = { enable = true; - theme = { - name = "Adwaita-dark"; - package = pkgs.gnome-themes-extra; - }; - iconTheme = { - name = "Papirus-Dark"; - package = pkgs.papirus-icon-theme; - }; + platformTheme.name = "gtk"; + style.name = "gtk2"; }; - # hyprland - - wayland.windowManager.hyprland = { - enable = true; - extraConfig = builtins.readFile ./hyprland.conf; - }; - - # waybar - - programs.waybar.enable = true; - xdg.configFile."waybar/config.jsonc".source = ./waybar_config.jsonc; - xdg.configFile."waybar/style.css".source = ./waybar_style.css; - xdg.configFile."waybar/colors.css".source = ./waybar_colors.css; - - # kitty - - programs.kitty.enable = true; - xdg.configFile."kitty/kitty.conf".source = ./kitty.conf; - xdg.configFile."kitty/colors.conf".source = ./kitty_colors.conf; - - # firefox - + # Firefox programs.firefox = { enable = true; - languagePacks = [ "en-US" "ru-RU"]; - + languagePacks = [ "en-US" "ru-RU" ]; policies = { AppAutoUpdate = false; BackgroundAppUpdate = false; - DisableFirefoxAccounts = true; DisableSetDesktopBackground = true; DisablePocket = true; @@ -123,22 +151,13 @@ DisableFormHistory = true; }; }; - - # wofi - - programs.wofi.enable = true; - xdg.configFile."wofi/config".source = ./wofi_config; - xdg.configFile."wofi/style.css".source = ./wofi_style.css; - - # obs studio + # OBS Studio programs.obs-studio = { enable = true; - package = pkgs.obs-studio.override { cudaSupport = true; }; - plugins = with pkgs.obs-studio-plugins; [ obs-pipewire-audio-capture wlrobs @@ -147,44 +166,44 @@ ]; }; - # vim - + # Vim programs.vim = { enable = true; - extraConfig = '' - set background=dark - - set number - set smartindent - set tabstop=4 - set shiftwidth=4 - set expandtab - set nowrap - set rnu - - set hidden - set nobackup - set nowritebackup - set cmdheight=2 + set background=dark + set number + set smartindent + set tabstop=4 + set shiftwidth=4 + set expandtab + set nowrap + set rnu + set hidden + set nobackup + set nowritebackup + set cmdheight=2 ''; }; - # bash - - programs.bash.enable = true; - programs.bash.initExtra = '' - export PS1="[\\u@\\h:\\w]\\$ " - ''; - - # fastfetch + # Bash + programs.bash = { + enable = true; + shellAliases = { + ll = "ls -la"; + update = "sudo nixos-rebuild switch && home-manager switch"; + }; + initExtra = '' + export PS1="[\\u@\\h:\\w]\\$ " + ''; + }; + # Fastfetch programs.fastfetch.enable = true; + xdg.configFile = { + "fastfetch/config.jsonc".source = ./fastfetch.jsonc; + "fastfetch/art.jpg".source = ./art.jpg; + }; - xdg.configFile."fastfetch/config.jsonc".source = ./fastfetch.jsonc; - xdg.configFile."fastfetch/art.jpg".source = ./art.jpg; - - # vscode - + # VSCode programs.vscode.enable = true; }