diff options
Diffstat (limited to 'home-manager/laptop')
27 files changed, 0 insertions, 1629 deletions
diff --git a/home-manager/laptop/default.nix b/home-manager/laptop/default.nix deleted file mode 100644 index 788da67..0000000 --- a/home-manager/laptop/default.nix +++ /dev/null @@ -1,15 +0,0 @@ -{ inputs, ... }: -let - imports = builtins.concatMap import [ - ./programs - ./services - ] ++ [ - ./hyprland - ../general - inputs.hyprland.homeManagerModules.default - ]; -in -{ - inherit imports; -} - diff --git a/home-manager/laptop/home.nix~ b/home-manager/laptop/home.nix~ deleted file mode 100644 index fa99095..0000000 --- a/home-manager/laptop/home.nix~ +++ /dev/null @@ -1,16 +0,0 @@ -{ inputs, ... }: -let - imports = builtins.concatMap [ - ./programs - ./services - ./hyprland - ] ++ [ - inputs.hyprland.homeManagerModules.default - inputs.ags.homeManagerModules.default - ./themes - ]; -in -{ - -} - diff --git a/home-manager/laptop/hyprland/cat.png b/home-manager/laptop/hyprland/cat.png Binary files differdeleted file mode 100644 index 5657a78..0000000 --- a/home-manager/laptop/hyprland/cat.png +++ /dev/null diff --git a/home-manager/laptop/hyprland/default.nix b/home-manager/laptop/hyprland/default.nix deleted file mode 100644 index 62d346a..0000000 --- a/home-manager/laptop/hyprland/default.nix +++ /dev/null @@ -1,202 +0,0 @@ -{ pkgs, ... }: -{ - home.packages = with pkgs; [ - swww - brightnessctl - grimblast - cliphist - polkit_gnome - xwaylandvideobridge - ]; - - xdg.portal = { - enable = true; - extraPortals = with pkgs; [ - xdg-desktop-portal-hyprland - ]; - configPackages = with pkgs; [ - xdg-desktop-portal-hyprland - ]; - }; - - wayland.windowManager.hyprland = { - enable = true; - package = pkgs.hyprland; - settings = { - "$scripts" = "${./scripts}"; - "$mainMod" = "SUPER"; - "$terminal" = "alacritty"; - exec-once = [ - "emacs --daemon" - "swww-daemon" - ]; - input = { - kb_layout = "us,ru"; - kb_options = "grp:win_space_toggle"; - follow_mouse = 1; - touchpad = { - natural_scroll = "yes"; - disable_while_typing = "no"; - }; - sensitivity = 0.1; - }; - general = { - gaps_in = 5; - gaps_out = 20; - border_size = 3; - "col.active_border" = "0xFF6e6a86"; - "col.inactive_border" = "0xFF363a4f"; - layout = "dwindle"; - allow_tearing = false; - }; - - decoration = { - rounding = 7; - drop_shadow = "yes"; - shadow_range = 4; - shadow_render_power = 3; - "col.shadow" = "rgba(1a1a1aee)"; - blur = { - enabled = true; - size = 3; - passes = 1; - }; - }; - - animations = { - enabled = 1; - bezier = "overshot,0.13,0.99,0.29,1.1,"; - animation = [ - "fade,1,4,default" - "workspaces,1,4,default,fade" - "windows,1,4,overshot,popin 95%" - ]; - }; - - # love the "true" variants - dwindle = { - pseudotile = "yes"; - preserve_split = "yes"; - }; - - master.new_is_master = true; - gestures.workspace_swipe = "on"; - misc.force_default_wallpaper = 1; - # - - windowrulev2 = [ - "float, title:^(Firrfox — Sharing Indicator)$" - "noborder, title:^(Firefox — Sharing Indicator)$" - "rounding 0, title:^(Firefox — Sharing Indicator)$" - "float, title:^(firefox)$, title:^(Picture-in-Picture)$" - "pin, title:^(firefox)$, title:^(Picture-in-Picture)$" - "float, title:^(Save File)$" - "pin, title:^(Save File)$" - "float, title:^(Torrent Options)$" - "pin, title:^(Torrent Options)$" - "opacity 0.0 override 0.0 override,class:^(xwaylandvideobridge)$" - "noanim,class:^(xwaylandvideobridge)$" - "noinitialfocus,class:^(xwaylandvideobridge)$" - "maxsize 1 1,class:^(xwaylandvideobridge)$" - "noblur,class:^(xwaylandvideobridge)$" - "stayfocused,class:^(kompas.exe)$,title:^(RoamingWindow)$" - ]; - - layerrule = "blur, waybar"; - - bind = [ - "$mainMod, V, togglefloating, " - "$mainMod, P, pseudo," - "$mainMod, I, togglesplit," - "$mainMod, F, fullscreen, 0" - "$mainMod, M, fullscreen, 1" - "$mainMod SHIFT,F,fakefullscreen" - "$mainMod SHIFT, Q, killactive, " - "$mainMod SHIFT, E, exit," - - # Apps - "$mainMod, D, exec, killall rofi || rofi -show-icons -show drun" - "$mainMod, Q, exec, $terminal" - "$mainMod, B, exec, brave --enable-features=TouchpadOverscrollHistoryNavigation" - "$mainMod, T, exec, telegram-desktop" - "$mainMod, E, exec, emacsclient -c -a emacs" - "$mainMod CONTROL, E, exec, emacs" - - # Screenshooting - ", Print, exec, grimblast save screen" - "ALT, Print, exec, grimblast save active" - "SHIFT, Print, exec, grimblast save area" - "CONTROL, Print, exec, grimblast copy screen" - "ALT_CONTROL, Print, exec, grimblast copy active" - "CONTROL_SHIFT, Print, exec, grimblast copy area " - - # Volume - ",0x1008FF11,exec,wpctl set-volume @DEFAULT_SINK@ 5%-" - ",0x1008FF13,exec,wpctl set-volume @DEFAULT_SINK@ 5%+" - ",0x1008FF12,exec,wpctl set-mute @DEFAULT_SINK@ toggle" - ",XF86AudioMicMute, exec, wpctl set-mute @DEFAULT_SOURCE@ toggle" - - # Brightness - ",XF86MonBrightnessUp,exec,brightnessctl s +5%" - ",XF86MonBrightnessDown,exec,brightnessctl s 5%-" - - # Windows - "$mainMod, J, movefocus, d" - "$mainMod, K, movefocus, u" - "$mainMod, H, movefocus, l" - "$mainMod, L, movefocus, r" - "SUPER_SHIFT,J,movewindow,d" - "SUPER_SHIFT,K,movewindow,u" - "SUPER_SHIFT,H,movewindow,l" - "SUPER_SHIFT,L,movewindow,r" - "$mainMod, S, togglespecialworkspace, magic" - "$mainMod SHIFT, S, movetoworkspace, special:magic" - "$mainMod, mouse_down, workspace, e+1" - "$mainMod, mouse_up, workspace, e-1" - ] ++ ( - # workspaces - # binds $mod + [shift +] {1..10} to [move to] workspace {1..10} - builtins.concatLists (builtins.genList ( - x: let - ws = let - c = (x + 1) / 10; - in - builtins.toString (x + 1 - (c * 10)); - in [ - "$mainMod, ${ws}, workspace, ${toString (x + 1)}" - "$mainMod SHIFT, ${ws}, movetoworkspacesilent, ${toString (x + 1)}" - ] - ) - 10) - ); - - bindm = [ - "$mainMod, mouse:272, movewindow" - "$mainMod, mouse:273, resizewindow" - ]; - }; - }; - - programs.swaylock = { - enable = true; - package = pkgs.swaylock-effects; - settings = { - indicator-radius = 100; - ring-color = "000000ff"; - layout-bg-color = "000000ff"; - key-hl-color = "e0c69fff"; - inside-color = "000000ff"; - layout-border-color = "e0c69fff"; - line-color = "ffffffff"; - separator-color = "000000ff"; - ring-ver-color = "000000ff"; - line-ver-color = "000000ff"; - inside-ver-color = "ffffff00"; - text-ver-color = "e0c69fff"; - inside-wrong-color = "ffffff00"; - text-wrong-color = "e0c69fff"; - ring-wrong-color = "762f20ff"; - fade-in = 1; - }; - }; -} diff --git a/home-manager/laptop/hyprland/hyprland.conf b/home-manager/laptop/hyprland/hyprland.conf deleted file mode 100644 index 1ac9473..0000000 --- a/home-manager/laptop/hyprland/hyprland.conf +++ /dev/null @@ -1,214 +0,0 @@ -monitor=,preferred,auto,1,mirror,eDP-1 - -# Execute your favorite apps at launch -exec-once = swww init - -# Set programs that you use -$terminal = alacritty -$fileManager = emacs -$menu = rofi --show drun -$scripts=~/.config/hypr/scripts - -# Some default env vars. -env = XCURSOR_SIZE,18 - -# For all categories, see https://wiki.hyprland.org/Configuring/Variables/ -input { - kb_layout = us,ru - kb_variant = - kb_model = - kb_options = grp:win_space_toggle - kb_rules = - - follow_mouse = 1 - - touchpad { - natural_scroll = yes - disable_while_typing = no - } - - sensitivity = 0.1 # -1.0 - 1.0, 0 means no modification. -} - -general { - # See https://wiki.hyprland.org/Configuring/Variables/ for more - - gaps_in = 5 - gaps_out = 20 - border_size = 3 - col.active_border = 0xFF6e6a86 - col.inactive_border = 0xFF363a4f - - layout = dwindle - - # Please see https://wiki.hyprland.org/Configuring/Tearing/ before you turn this on - allow_tearing = false -} - -decoration { - # See https://wiki.hyprland.org/Configuring/Variables/ for more - - rounding = 7 - - blur { - enabled = true - size = 3 - passes = 1 - } - - drop_shadow = yes - shadow_range = 4 - shadow_render_power = 3 - col.shadow = rgba(1a1a1aee) -} - -animations { - enabled = 1 - bezier = overshot,0.13,0.99,0.29,1.1, - animation = fade,1,4,default - animation = workspaces,1,4,default,fade - animation = windows,1,4,overshot,popin 95% -} - -dwindle { - # See https://wiki.hyprland.org/Configuring/Dwindle-Layout/ for more - pseudotile = yes # master switch for pseudotiling. Enabling is bound to mainMod + P in the keybinds section below - preserve_split = yes # you probably want this -} - -master { - # See https://wiki.hyprland.org/Configuring/Master-Layout/ for more - new_is_master = true -} - -gestures { - # See https://wiki.hyprland.org/Configuring/Variables/ for more - workspace_swipe = on -} - -misc { - # See https://wiki.hyprland.org/Configuring/Variables/ for more - force_default_wallpaper = 1 # Set to 0 to disable the anime mascot wallpapers -} - -# Example windowrule v1 -# windowrule = float, ^(kitty)$ -# Example windowrule v2 -# windowrulev2 = float,class:^(kitty)$,title:^(kitty)$ -# See https://wiki.hyprland.org/Configuring/Window-Rules/ for more -windowrulev2 = float, title:^(Firrfox — Sharing Indicator)$ -windowrulev2 = noborder, title:^(Firefox — Sharing Indicator)$ -windowrulev2 = rounding 0, title:^(Firefox — Sharing Indicator)$ -windowrulev2 = float, title:^(firefox)$, title:^(Picture-in-Picture)$ -windowrulev2 = pin, title:^(firefox)$, title:^(Picture-in-Picture)$ -windowrulev2 = float, title:^(Save File)$ -windowrulev2 = pin, title:^(Save File)$ -windowrulev2 = float, title:^(Torrent Options)$ -windowrulev2 = pin, title:^(Torrent Options)$ -windowrulev2 = opacity 0.0 override 0.0 override,class:^(xwaylandvideobridge)$ -windowrulev2 = noanim,class:^(xwaylandvideobridge)$ -windowrulev2 = noinitialfocus,class:^(xwaylandvideobridge)$ -windowrulev2 = maxsize 1 1,class:^(xwaylandvideobridge)$ -windowrulev2 = noblur,class:^(xwaylandvideobridge)$ -layerrule = blur, waybar - -windowrulev2 = stayfocused,class:^(kompas.exe)$,title:^(RoamingWindow)$ - -# See https://wiki.hyprland.org/Configuring/Keywords/ for more -$mainMod = SUPER - -# Example binds, see https://wiki.hyprland.org/Configuring/Binds/ for more -bind = $mainMod, Q, exec, $terminal -bind = $mainMod, V, togglefloating, -bind = SUPER, D, exec, killall rofi || rofi -show-icons -show drun -bind = $mainMod, P, pseudo, # dwindle -bind = $mainMod, I, togglesplit, # dwindle -bind = $mainMod, F, fullscreen, 0 -bind = $mainMod, M, fullscreen, 1 -bind = $mainMod SHIFT,F,fakefullscreen -bind = $mainMod SHIFT, Q, killactive, -bind = $mainMod SHIFT, E, exit, - -# Apps -bind = $mainMod, B, exec, brave --enable-features=TouchpadOverscrollHistoryNavigation -bind = $mainMod, T, exec, telegram-desktop -bind = $mainMod, E, exec, emacsclient -c -a "emacs" -bind = $mainMod CONTROL, E, exec, emacs - -# Screenshooting -bind = , Print, exec, grimblast save screen -bind = ALT, Print, exec, grimblast save active -bind = SHIFT, Print, exec, grimblast save area -bind = CONTROL, Print, exec, grimblast copy screen -bind = ALT_CONTROL, Print, exec, grimblast copy active -bind = CONTROL_SHIFT, Print, exec, grimblast copy area - -# Volume -bind = ,0x1008FF11,exec,wpctl set-volume @DEFAULT_SINK@ 5%- -bind = ,0x1008FF13,exec,wpctl set-volume @DEFAULT_SINK@ 5%+ -bind = ,0x1008FF12,exec,wpctl set-mute @DEFAULT_SINK@ toggle -bind = ,XF86AudioMicMute, exec, wpctl set-mute @DEFAULT_SOURCE@ toggle - -# Brightness -bind = ,XF86MonBrightnessUp,exec,brightnessctl s +5% -bind = ,XF86MonBrightnessDown,exec,brightnessctl s 5%- - -# Move focus with mainMod + arrow keys -bind = $mainMod, J, movefocus, d -bind = $mainMod, K, movefocus, u -bind = $mainMod, H, movefocus, l -bind = $mainMod, L, movefocus, r - -# Move windows -bind = SUPER_SHIFT,J,movewindow,d -bind = SUPER_SHIFT,K,movewindow,u -bind = SUPER_SHIFT,H,movewindow,l -bind = SUPER_SHIFT,L,movewindow,r - -# Switch workspaces with mainMod + [0-9] -bind = $mainMod, 1, workspace, 1 -bind = $mainMod, 2, workspace, 2 -bind = $mainMod, 3, workspace, 3 -bind = $mainMod, 4, workspace, 4 -bind = $mainMod, 5, workspace, 5 -bind = $mainMod, 6, workspace, 6 -bind = $mainMod, 7, workspace, 7 -bind = $mainMod, 8, workspace, 8 -bind = $mainMod, 9, workspace, 9 -bind = $mainMod, 0, workspace, 10 - -# Move active window to a workspace with mainMod + SHIFT + [0-9] -bind = $mainMod SHIFT, 1, movetoworkspacesilent, 1 -bind = $mainMod SHIFT, 2, movetoworkspacesilent, 2 -bind = $mainMod SHIFT, 3, movetoworkspacesilent, 3 -bind = $mainMod SHIFT, 4, movetoworkspacesilent, 4 -bind = $mainMod SHIFT, 5, movetoworkspacesilent, 5 -bind = $mainMod SHIFT, 6, movetoworkspacesilent, 6 -bind = $mainMod SHIFT, 7, movetoworkspacesilent, 7 -bind = $mainMod SHIFT, 8, movetoworkspacesilent, 8 -bind = $mainMod SHIFT, 9, movetoworkspacesilent, 9 -bind = $mainMod SHIFT, 0, movetoworkspacesilent, 10 - -bind = $mainMod ALT, 1, movetoworkspace, 1 -bind = $mainMod ALT, 2, movetoworkspace, 2 -bind = $mainMod ALT, 3, movetoworkspace, 3 -bind = $mainMod ALT, 4, movetoworkspace, 4 -bind = $mainMod ALT, 5, movetoworkspace, 5 -bind = $mainMod ALT, 6, movetoworkspace, 6 -bind = $mainMod ALT, 7, movetoworkspace, 7 -bind = $mainMod ALT, 8, movetoworkspace, 8 -bind = $mainMod ALT, 9, movetoworkspace, 9 -bind = $mainMod ALT, 0, movetoworkspace, 10 - - -# Example special workspace (scratchpad) -bind = $mainMod, S, togglespecialworkspace, magic -bind = $mainMod SHIFT, S, movetoworkspace, special:magic - -# Scroll through existing workspaces with mainMod + scroll -bind = $mainMod, mouse_down, workspace, e+1 -bind = $mainMod, mouse_up, workspace, e-1 - -# Move/resize windows with mainMod + LMB/RMB and dragging -bindm = $mainMod, mouse:272, movewindow -bindm = $mainMod, mouse:273, resizewindow diff --git a/home-manager/laptop/hyprland/scripts/battery-level.sh b/home-manager/laptop/hyprland/scripts/battery-level.sh deleted file mode 100755 index cc2d5cd..0000000 --- a/home-manager/laptop/hyprland/scripts/battery-level.sh +++ /dev/null @@ -1,22 +0,0 @@ -#!/bin/sh -while true; do - # Check the battery level and charging status - battery_info=$(acpi -b) - - # Extract the battery level from the output of `acpi` - battery_level=$(echo $battery_info | grep -o "[0-9]*%" | sed "s/%//") - - # Check if the laptop is charging - if [[ $battery_info == *"Charging"* ]]; then - # If the laptop is charging, do nothing - : - else - # If the battery level is less than 15%, send a notification - if [ "$battery_level" -lt 15 ]; then - notify-send "Battery Low" "Battery level is at $battery_level%. Charge your laptop." - fi - fi - - # Sleep for 5 minutes before checking the battery level again - sleep 300 -done diff --git a/home-manager/laptop/hyprland/scripts/hshot b/home-manager/laptop/hyprland/scripts/hshot deleted file mode 100755 index 0d02b9c..0000000 --- a/home-manager/laptop/hyprland/scripts/hshot +++ /dev/null @@ -1,45 +0,0 @@ -#!/bin/sh - -declare -a cmd - -usage() { - echo -e "-m | monitor\n-s | slurp\n-w | active window\n-c | add copy" -} - -monitor() { - cmd=("grim -o \"\$(hyprctl -j monitors | jq -r '.[] | select(.focused) | .name')\"") -} - -slurp() { - cmd=("grim -g \"\$(slurp)\"") -} - -window() { - cmd=("grim -g \"\$(hyprctl activewindow -j | jq -j '\"\(.at | .[0]),\(.at | .[1]) \(.size | .[0])x\(.size | .[1])\"')\"") -} - -copy() { - if [[ -n ${cmd[0]} ]]; then - cmd+=("- | wl-copy") - else - usage - fi -} - -while getopts ":mswc" opt; do - case ${opt} in - m) monitor;; - s) slurp;; - w) window;; - c) copy;; - *) usage - exit 1;; - esac -done - -if [[ -z $1 ]]; then - usage - exit 1 -fi - -bash -c "${cmd[*]}" diff --git a/home-manager/laptop/hyprland/scripts/kill b/home-manager/laptop/hyprland/scripts/kill deleted file mode 100755 index 40ab4a9..0000000 --- a/home-manager/laptop/hyprland/scripts/kill +++ /dev/null @@ -1,7 +0,0 @@ -#!/bin/sh - -if [[ $(hyprctl activewindow -j | jq -r '.class') =~ (kitty) ]]; then - kill $(hyprctl activewindow -j | jq '.pid') -s 9 -else - hyprctl dispatch killactive -fi diff --git a/home-manager/laptop/hyprland/scripts/rnew.fish b/home-manager/laptop/hyprland/scripts/rnew.fish deleted file mode 100755 index 743d7fd..0000000 --- a/home-manager/laptop/hyprland/scripts/rnew.fish +++ /dev/null @@ -1,8 +0,0 @@ -#!/usr/bin/env fish - -ranger $argv -set quit_cd_wd_file "$HOME/.ranger_quit_cd_wd" -if test -s "$quit_cd_wd_file" - kitty -d "$(cat $quit_cd_wd_file)" --detach - true >"$quit_cd_wd_file" -end diff --git a/home-manager/laptop/hyprland/scripts/rofi-modes b/home-manager/laptop/hyprland/scripts/rofi-modes deleted file mode 100755 index 2d52802..0000000 --- a/home-manager/laptop/hyprland/scripts/rofi-modes +++ /dev/null @@ -1,20 +0,0 @@ -#!/bin/sh - -case $(echo -e "clipboard\nemoji\ncalc" | rofi -dmenu) in - emoji) arg=emoji;; - calc) arg=calc;; - clipboard) cliphist list | rofi -dmenu -display-columns 2 | cliphist decode | wl-copy - exit;; - bitwarden) if [[ $XDG_BACKEND == "wayland" ]]; then - typer=wtype - clip=wl-copy - else - typer=xdotool - clip=xclip - fi - rofi-rbw --typer $typer --clip $clip - exit;; - *)exit;; -esac - -rofi -modi $arg -show $arg diff --git a/home-manager/laptop/niri/default.nix b/home-manager/laptop/niri/default.nix deleted file mode 100644 index 123d88e..0000000 --- a/home-manager/laptop/niri/default.nix +++ /dev/null @@ -1,147 +0,0 @@ -{ pkgs, config, ... }: - -{ - programs.niri = { - settings = { - input = { - keyboard.xkb = { - layout = "us,ru"; - options = "grp:win_space_toggle,compose:ralt,ctrl:nocaps"; - }; - touchpad = { - tap = true; - dwt = true; - dwtp = true; - natural-scroll = true; - }; - warp-mouse-to-focus = true; - focus-follows-mouse = true; - }; - cursor = { - theme = "Bibata-Modern-Ice"; - size = 24; - }; - layout = { - gaps = 16; - center-focused-column = "never"; - preset-column-widths = [ - { proportion = 0.33333; } - { proportion = 0.5; } - { proportion = 0.66667; } - ]; - border = { - enable = true; - }; - focus-ring.enable = false; - }; - prefer-no-csd = true; - binds = with config.lib.niri.actions; { - "Mod+Q".action.spawn = "alacritty"; - "Mod+D".action.spawn = [ "rofi --show drun" ]; - "Mod+B".action.spawn = [ "brave" "--enable-features=TouchpadOverscrollHistoryNavigation" ]; - "Mod+E".action.spawn = [ "emacsclient" "-c" "-a" "emacs" ]; - "Super+Alt+L".action.spawn = "swaylock"; - "XF86AudioRaiseVolume".action.spawn = [ "wpctl" "set-volume" "@DEFAULT_AUDIO_SINK@" "0.05+" ]; - "XF86AudioLowerVolume".action.spawn = [ "wpctl" "set-volume" "@DEFAULT_AUDIO_SINK@" "0.05-" ]; - "XF86AudioMute".action.spawn = [ "wpctl" "set-mute" "@DEFAULT_AUDIO_SINK@" "toggle" ]; - "XF86AudioMicMute".action.spawn = [ "wpctl" "set-mute" "@DEFAULT_AUDIO_SOURCE@" "toggle" ]; - "XF86MonBrightnessUp".action.spawn = [ "brightnessctl" "s" "+5%" ]; - "XF86MonBrightnessDown".action.spawn = [ "brightnessctl" "s" "5%-" ]; - "Mod+Shift+Slash".action = show-hotkey-overlay; - "Mod+Shift+Q".action = close-window; - "Mod+Left".action = focus-column-left; - "Mod+Down".action = focus-window-down; - "Mod+Up".action = focus-window-up; - "Mod+Right".action = focus-column-right; - "Mod+H".action = focus-column-left; - "Mod+J".action = focus-window-down; - "Mod+K".action = focus-window-up; - "Mod+L".action = focus-column-right; - "Mod+Shift+Left".action = move-column-left; - "Mod+Shift+Down".action = move-window-down; - "Mod+Shift+Up".action = move-window-up; - "Mod+Shift+Right".action = move-column-right; - "Mod+Shift+H".action = move-column-left; - "Mod+Shift+J".action = move-window-down; - "Mod+Shift+K".action = move-window-up; - "Mod+Shift+L".action = move-column-right; - "Mod+Home".action = focus-column-first; - "Mod+End".action = focus-column-last; - "Mod+Ctrl+Home".action = move-column-to-first; - "Mod+Ctrl+End".action = move-column-to-last; - "Mod+Ctrl+Left".action = focus-monitor-left; - "Mod+Ctrl+Down".action = focus-monitor-down; - "Mod+Ctrl+Up".action = focus-monitor-up; - "Mod+Ctrl+Right".action = focus-monitor-right; - "Mod+Ctrl+H".action = focus-monitor-left; - "Mod+Ctrl+J".action = focus-monitor-down; - "Mod+Ctrl+K".action = focus-monitor-up; - "Mod+Ctrl+L".action = focus-monitor-right; - "Mod+Shift+Ctrl+Left".action = move-column-to-monitor-left; - "Mod+Shift+Ctrl+Down".action = move-column-to-monitor-down; - "Mod+Shift+Ctrl+Up".action = move-column-to-monitor-up; - "Mod+Shift+Ctrl+Right".action = move-column-to-monitor-right; - "Mod+Shift+Ctrl+H".action = move-column-to-monitor-left; - "Mod+Shift+Ctrl+J".action = move-column-to-monitor-down; - "Mod+Shift+Ctrl+K".action = move-column-to-monitor-up; - "Mod+Shift+Ctrl+L".action = move-column-to-monitor-right; - "Mod+Page_Down".action = focus-workspace-down; - "Mod+Page_Up".action = focus-workspace-up; - "Mod+U".action = focus-workspace-down; - "Mod+I".action = focus-workspace-up; - "Mod+Ctrl+Page_Down".action = move-column-to-workspace-down; - "Mod+Ctrl+Page_Up".action = move-column-to-workspace-up; - "Mod+Ctrl+U".action = move-column-to-workspace-down; - "Mod+Ctrl+I".action = move-column-to-workspace-up; - "Mod+Shift+Page_Down".action = move-workspace-down; - "Mod+Shift+Page_Up".action = move-workspace-up; - "Mod+Shift+U".action = move-workspace-down; - "Mod+WheelScrollRight".action = focus-column-right; - "Mod+WheelScrollLeft".action = focus-column-left; - "Mod+Ctrl+WheelScrollRight".action = move-column-right; - "Mod+Ctrl+WheelScrollLeft".action = move-column-left; - "Mod+Shift+WheelScrollDown".action = focus-column-right; - "Mod+Shift+WheelScrollUp".action = focus-column-left; - "Mod+Ctrl+Shift+WheelScrollDown".action = move-column-right; - "Mod+Ctrl+Shift+WheelScrollUp".action = move-column-left; - - "Mod+1".action.focus-workspace = 1; - "Mod+2".action.focus-workspace = 2; - "Mod+3".action.focus-workspace = 3; - "Mod+4".action.focus-workspace = 4; - "Mod+5".action.focus-workspace = 5; - "Mod+6".action.focus-workspace = 6; - "Mod+7".action.focus-workspace = 7; - "Mod+8".action.focus-workspace = 8; - "Mod+9".action.focus-workspace = 9; - "Mod+Shift+1".action.move-column-to-workspace = 1; - "Mod+Shift+2".action.move-column-to-workspace = 2; - "Mod+Shift+3".action.move-column-to-workspace = 3; - "Mod+Shift+4".action.move-column-to-workspace = 4; - "Mod+Shift+5".action.move-column-to-workspace = 5; - "Mod+Shift+6".action.move-column-to-workspace = 6; - "Mod+Shift+7".action.move-column-to-workspace = 7; - "Mod+Shift+8".action.move-column-to-workspace = 8; - "Mod+Shift+9".action.move-column-to-workspace = 9; - "Mod+Comma".action = consume-window-into-column; - "Mod+Period".action = expel-window-from-column; - "Mod+BracketLeft".action = consume-or-expel-window-left; - "Mod+BracketRight".action = consume-or-expel-window-right; - "Mod+R".action = switch-preset-column-width; - "Mod+M".action = maximize-column; - "Mod+F".action = fullscreen-window; - "Mod+C".action = center-column; - "Mod+Minus".action.set-column-width = "-10%"; - "Mod+Equal".action.set-column-width = "+10%"; - "Mod+Shift+Minus".action.set-window-height = "-10%"; - "Mod+Shift+Equal".action.set-window-height = "+10%"; - "Print".action = screenshot; - "Ctrl+Print".action = screenshot-screen; - "Alt+Print".action = screenshot-window; - "Mod+Shift+E".action = quit; - "Mod+Shift+P".action = power-off-monitors; - }; - }; - }; -} - diff --git a/home-manager/laptop/programs/ags/bar/config.js b/home-manager/laptop/programs/ags/bar/config.js deleted file mode 100644 index 8abf671..0000000 --- a/home-manager/laptop/programs/ags/bar/config.js +++ /dev/null @@ -1,203 +0,0 @@ -// importing -import Hyprland from 'resource:///com/github/Aylur/ags/service/hyprland.js'; -import Notifications from 'resource:///com/github/Aylur/ags/service/notifications.js'; -import Mpris from 'resource:///com/github/Aylur/ags/service/mpris.js'; -import Audio from 'resource:///com/github/Aylur/ags/service/audio.js'; -import Battery from 'resource:///com/github/Aylur/ags/service/battery.js'; -import SystemTray from 'resource:///com/github/Aylur/ags/service/systemtray.js'; -import App from 'resource:///com/github/Aylur/ags/app.js'; -import Widget from 'resource:///com/github/Aylur/ags/widget.js'; -import { exec, execAsync } from 'resource:///com/github/Aylur/ags/utils.js'; - -// widgets can be only assigned as a child in one container -// so to make a reuseable widget, just make it a function -// then you can use it by calling simply calling it - -const Workspaces = () => Widget.Box({ - className: 'workspaces', - connections: [[Hyprland.active.workspace, self => { - // generate an array [1..10] then make buttons from the index - const arr = Array.from({ length: 10 }, (_, i) => i + 1); - self.children = arr.map(i => Widget.Button({ - onClicked: () => execAsync(`hyprctl dispatch workspace ${i}`), - child: Widget.Label(`${i}`), - className: Hyprland.active.workspace.id == i ? 'focused' : '', - })); - }]], -}); - -const ClientTitle = () => Widget.Label({ - className: 'client-title', - binds: [ - ['label', Hyprland.active.client, 'title'], - ], -}); - -const Clock = () => Widget.Label({ - className: 'clock', - connections: [ - // this is bad practice, since exec() will block the main event loop - // in the case of a simple date its not really a problem - [1000, self => self.label = exec('date "+%H:%M:%S %b %e."')], - - // this is what you should do - [1000, self => execAsync(['date', '+%H:%M:%S %b %e.']) - .then(date => self.label = date).catch(console.error)], - ], -}); - -// we don't need dunst or any other notification daemon -// because the Notifications module is a notification daemon itself -const Notification = () => Widget.Box({ - className: 'notification', - children: [ - Widget.Icon({ - icon: 'preferences-system-notifications-symbolic', - connections: [ - [Notifications, self => self.visible = Notifications.popups.length > 0], - ], - }), - Widget.Label({ - connections: [[Notifications, self => { - self.label = Notifications.popups[0]?.summary || ''; - }]], - }), - ], -}); - -const Media = () => Widget.Button({ - className: 'media', - onPrimaryClick: () => Mpris.getPlayer('')?.playPause(), - onScrollUp: () => Mpris.getPlayer('')?.next(), - onScrollDown: () => Mpris.getPlayer('')?.previous(), - child: Widget.Label({ - connections: [[Mpris, self => { - const mpris = Mpris.getPlayer(''); - // mpris player can be undefined - if (mpris) - self.label = `${mpris.trackArtists.join(', ')} - ${mpris.trackTitle}`; - else - self.label = 'Nothing is playing'; - }]], - }), -}); - -const Volume = () => Widget.Box({ - className: 'volume', - css: 'min-width: 180px', - children: [ - Widget.Stack({ - items: [ - // tuples of [string, Widget] - ['101', Widget.Icon('audio-volume-overamplified-symbolic')], - ['67', Widget.Icon('audio-volume-high-symbolic')], - ['34', Widget.Icon('audio-volume-medium-symbolic')], - ['1', Widget.Icon('audio-volume-low-symbolic')], - ['0', Widget.Icon('audio-volume-muted-symbolic')], - ], - connections: [[Audio, self => { - if (!Audio.speaker) - return; - - if (Audio.speaker.isMuted) { - self.shown = '0'; - return; - } - - const show = [101, 67, 34, 1, 0].find( - threshold => threshold <= Audio.speaker.volume * 100); - - self.shown = `${show}`; - }, 'speaker-changed']], - }), - Widget.Slider({ - hexpand: true, - drawValue: false, - onChange: ({ value }) => Audio.speaker.volume = value, - connections: [[Audio, self => { - self.value = Audio.speaker?.volume || 0; - }, 'speaker-changed']], - }), - ], -}); - -const BatteryLabel = () => Widget.Box({ - className: 'battery', - children: [ - Widget.Icon({ - connections: [[Battery, self => { - self.icon = `battery-level-${Math.floor(Battery.percent / 10) * 10}-symbolic`; - }]], - }), - Widget.ProgressBar({ - vpack: 'center', - connections: [[Battery, self => { - if (Battery.percent < 0) - return; - - self.fraction = Battery.percent / 100; - }]], - }), - ], -}); - -const SysTray = () => Widget.Box({ - connections: [[SystemTray, self => { - self.children = SystemTray.items.map(item => Widget.Button({ - child: Widget.Icon({ binds: [['icon', item, 'icon']] }), - onPrimaryClick: (_, event) => item.activate(event), - onSecondaryClick: (_, event) => item.openMenu(event), - binds: [['tooltip-markup', item, 'tooltip-markup']], - })); - }]], -}); - -// layout of the bar -const Left = () => Widget.Box({ - children: [ - Workspaces(), - ClientTitle(), - ], -}); - -const Center = () => Widget.Box({ - children: [ - Media(), - Notification(), - ], -}); - -const Right = () => Widget.Box({ - hpack: 'end', - children: [ - Volume(), - BatteryLabel(), - Clock(), - SysTray(), - ], -}); - -const Bar = ({ monitor } = {}) => Widget.Window({ - name: `bar-${monitor}`, // name has to be unique - className: 'bar', - monitor, - anchor: ['top', 'left', 'right'], - exclusive: true, - child: Widget.CenterBox({ - startWidget: Left(), - centerWidget: Center(), - endWidget: Right(), - }), -}) - -// exporting the config so ags can manage the windows -export default { - style: App.configDir + '/style.css', - windows: [ - Bar(), - - // you can call it, for each monitor - // Bar({ monitor: 0 }), - // Bar({ monitor: 1 }) - ], -}; diff --git a/home-manager/laptop/programs/ags/bar/style.css b/home-manager/laptop/programs/ags/bar/style.css deleted file mode 100644 index 900d84f..0000000 --- a/home-manager/laptop/programs/ags/bar/style.css +++ /dev/null @@ -1,26 +0,0 @@ -* { - font-family: Material Design Icons, Rubik Medium; - font-size: 14px; - color: #6e6a86; -} - -.window { - border-radius: 10px; - background: #1f1d2e; - border: 3px solid #363a4f; -} - -.battery { - margin-right: 6px; -} - -.workspaces button { - font-size: 15px; - transition: all 100ms ease-out; -} - -.workspaces button:active { - font-weight: bolder; - color: #908caa; - transition: all 100ms ease-out; -} diff --git a/home-manager/laptop/programs/ags/default.nix b/home-manager/laptop/programs/ags/default.nix deleted file mode 100644 index 646bccf..0000000 --- a/home-manager/laptop/programs/ags/default.nix +++ /dev/null @@ -1,8 +0,0 @@ -{ pkgs, ... }: - -{ - programs.ags = { - enable = false; - configDir = ./bar; - }; -} diff --git a/home-manager/laptop/programs/default.nix b/home-manager/laptop/programs/default.nix deleted file mode 100644 index a077139..0000000 --- a/home-manager/laptop/programs/default.nix +++ /dev/null @@ -1,4 +0,0 @@ -[ - ./rofi - ./waybar -] diff --git a/home-manager/laptop/programs/default.nix~ b/home-manager/laptop/programs/default.nix~ deleted file mode 100644 index c904e18..0000000 --- a/home-manager/laptop/programs/default.nix~ +++ /dev/null @@ -1,28 +0,0 @@ -let - more = { pkgs, ... }: { - programs = { - kitty = { - enable = true; - font.name = "Source Code Pro"; - font.size = 11.3; - theme = "Rosé Pine Moon"; - shellIntegration.enableFishIntegration = true; - extraConfig = "cursor_shape underline"; - }; - }; - }; - progConfig = { config, ... }: "${config.home.homeDirectory}/.nixfiles/home-manager/home/programs/"; - nonNixConfigs = { config, ... }: { - xdg.configFile = { - "ranger".source = config.lib.file.mkOutOfStoreSymlink "${config.home.homeDirectory}/.nixfiles/home-manager/home/programs/ranger"; - "emacs/init.el".source = config.lib.file.mkOutOfStoreSymlink "${config.home.homeDirectory}/.nixfiles/home-manager/home/programs/emacs/init.el"; - }; - }; -in -[ - ./fish - ./firefox - ./rofi - more - nonNixConfigs -] diff --git a/home-manager/laptop/programs/rofi/#squared-material-pine.rasi# b/home-manager/laptop/programs/rofi/#squared-material-pine.rasi# deleted file mode 100644 index dfc1304..0000000 --- a/home-manager/laptop/programs/rofi/#squared-material-pine.rasi# +++ /dev/null @@ -1,97 +0,0 @@ -/******************************************************************************* - * ROFI SQUARED THEME USING THE MATERIAL DARKER PALETTE - * User : LR-Tech - * Theme Repo : https://github.com/lr-tech/rofi-themes-collection - *******************************************************************************/ - -* { - font: "FiraCode Nerd Font Medium 12"; - - bg0: #1f1d2e; - bg1: #2a273f; - fg0: #908caa; - - accent-color: #6e6a86; - urgent-color: #ffffff; - - background-color: transparent; - text-color: @fg0; - - margin: 0; - padding: 0; - spacing: 0; -} - -window { - location: center; - width: 480; - y-offset: -160; - border-radius: 7px; - - background-color: @bg0; -} - -inputbar { - spacing: 8px; - padding: 8px; - - background-color: @bg1; -} - -prompt, entry, element-icon, element-text { - vertical-align: 0.5; -} - -prompt { - text-color: @accent-color; -} - -textbox { - padding: 8px; - background-color: @bg1; -} - -listview { - padding: 4px 0; - lines: 8; - columns: 1; - - fixed-height: false; -} - -element { - padding: 8px; - spacing: 8px; -} - -element normal normal { - text-color: @fg0; -} - -element normal urgent { - text-color: @urgent-color; -} - -element normal active { - text-color: @accent-color; -} - -element selected { - text-color: @bg0; -} - -element selected normal, element selected active { - background-color: @accent-color; -} - -element selected urgent { - background-color: @urgent-color; -} - -element-icon { - size: 0.8em; -} - -element-text { - text-color: inherit; -} diff --git a/home-manager/laptop/programs/rofi/.#squared-material-pine.rasi b/home-manager/laptop/programs/rofi/.#squared-material-pine.rasi deleted file mode 120000 index 01f556d..0000000 --- a/home-manager/laptop/programs/rofi/.#squared-material-pine.rasi +++ /dev/null @@ -1 +0,0 @@ -jerpo@ltrr.1733:1703369468
\ No newline at end of file diff --git a/home-manager/laptop/programs/rofi/config.rasi b/home-manager/laptop/programs/rofi/config.rasi deleted file mode 100644 index 55e75a7..0000000 --- a/home-manager/laptop/programs/rofi/config.rasi +++ /dev/null @@ -1,156 +0,0 @@ -configuration { -/* modes: "window,drun,run,ssh";*/ -/* font: "mono 12";*/ - location: 0; - yoffset: 0; - xoffset: 0; -/* fixed-num-lines: true;*/ -/* show-icons: false;*/ -/* terminal: "rofi-sensible-terminal";*/ -/* ssh-client: "ssh";*/ -/* ssh-command: "{terminal} -e {ssh-client} {host} [-p {port}]";*/ -/* run-command: "{cmd}";*/ -/* run-list-command: "";*/ -/* run-shell-command: "{terminal} -e {cmd}";*/ -/* window-command: "wmctrl -i -R {window}";*/ -/* window-match-fields: "all";*/ -/* icon-theme: ;*/ -/* drun-match-fields: "name,generic,exec,categories,keywords";*/ -/* drun-categories: ;*/ -/* drun-show-actions: false;*/ -/* drun-display-format: "{name} [<span weight='light' size='small'><i>({generic})</i></span>]";*/ -/* drun-url-launcher: "xdg-open";*/ -/* disable-history: false;*/ -/* ignored-prefixes: "";*/ -/* sort: false;*/ -/* sorting-method: "normal";*/ -/* case-sensitive: false;*/ - cycle: true; -/* sidebar-mode: false;*/ -/* hover-select: false;*/ -/* eh: 1;*/ -/* auto-select: false;*/ -/* parse-hosts: false;*/ -/* parse-known-hosts: true;*/ -/* combi-modes: "window,run";*/ -/* matching: "normal";*/ -/* tokenize: true;*/ -/* m: "-5";*/ -/* filter: ;*/ -/* dpi: -1;*/ -/* threads: 0;*/ -/* scroll-method: 0;*/ -/* window-format: "{w} {c} {t}";*/ -/* click-to-exit: true;*/ -/* max-history-size: 25;*/ -/* combi-hide-mode-prefix: false;*/ -/* combi-display-format: "{mode} {text}";*/ -/* matching-negate-char: '-' /* unsupported */;*/ -/* cache-dir: ;*/ -/* window-thumbnail: false;*/ -/* drun-use-desktop-cache: false;*/ -/* drun-reload-desktop-cache: false;*/ -/* normalize-match: false;*/ -/* steal-focus: false;*/ -/* application-fallback-icon: ;*/ -/* refilter-timeout-limit: 8192;*/ -/* xserver-i300-workaround: false;*/ -/* pid: "/run/user/1000/rofi.pid";*/ -/* display-window: ;*/ -/* display-windowcd: ;*/ -/* display-run: ;*/ -/* display-ssh: ;*/ -/* display-drun: ;*/ -/* display-combi: ;*/ -/* display-keys: ;*/ -/* display-filebrowser: ;*/ -/* display-emoji: ;*/ -/* display-calc: ;*/ -/* kb-primary-paste: "Control+V,Shift+Insert";*/ -/* kb-secondary-paste: "Control+v,Insert";*/ -/* kb-clear-line: "Control+w";*/ -/* kb-move-front: "Control+a";*/ -/* kb-move-end: "Control+e";*/ -/* kb-move-word-back: "Alt+b,Control+Left";*/ -/* kb-move-word-forward: "Alt+f,Control+Right";*/ -/* kb-move-char-back: "Left,Control+b";*/ -/* kb-move-char-forward: "Right,Control+f";*/ -/* kb-remove-word-back: "Control+Alt+h,Control+BackSpace";*/ -/* kb-remove-word-forward: "Control+Alt+d";*/ -/* kb-remove-char-forward: "Delete,Control+d";*/ -/* kb-remove-char-back: "BackSpace,Shift+BackSpace,Control+h";*/ -/* kb-remove-to-eol: "Control+k";*/ -/* kb-remove-to-sol: "Control+u";*/ -/* kb-accept-entry: "Control+j,Control+m,Return,KP_Enter";*/ -/* kb-accept-custom: "Control+Return";*/ -/* kb-accept-custom-alt: "Control+Shift+Return";*/ -/* kb-accept-alt: "Shift+Return";*/ -/* kb-delete-entry: "Shift+Delete";*/ -/* kb-mode-next: "Shift+Right,Control+Tab";*/ -/* kb-mode-previous: "Shift+Left,Control+ISO_Left_Tab";*/ -/* kb-mode-complete: "Control+l";*/ -/* kb-row-left: "Control+Page_Up";*/ -/* kb-row-right: "Control+Page_Down";*/ -/* kb-row-up: "Up,Control+p";*/ -/* kb-row-down: "Down,Control+n";*/ -/* kb-row-tab: "";*/ -/* kb-element-next: "Tab";*/ -/* kb-element-prev: "ISO_Left_Tab";*/ -/* kb-page-prev: "Page_Up";*/ -/* kb-page-next: "Page_Down";*/ -/* kb-row-first: "Home,KP_Home";*/ -/* kb-row-last: "End,KP_End";*/ -/* kb-row-select: "Control+space";*/ -/* kb-screenshot: "Alt+S";*/ -/* kb-ellipsize: "Alt+period";*/ -/* kb-toggle-case-sensitivity: "grave,dead_grave";*/ -/* kb-toggle-sort: "Alt+grave";*/ -/* kb-cancel: "Escape,Control+g,Control+bracketleft";*/ -/* kb-custom-1: "Alt+1";*/ -/* kb-custom-2: "Alt+2";*/ -/* kb-custom-3: "Alt+3";*/ -/* kb-custom-4: "Alt+4";*/ -/* kb-custom-5: "Alt+5";*/ -/* kb-custom-6: "Alt+6";*/ -/* kb-custom-7: "Alt+7";*/ -/* kb-custom-8: "Alt+8";*/ -/* kb-custom-9: "Alt+9";*/ -/* kb-custom-10: "Alt+0";*/ -/* kb-custom-11: "Alt+exclam";*/ -/* kb-custom-12: "Alt+at";*/ -/* kb-custom-13: "Alt+numbersign";*/ -/* kb-custom-14: "Alt+dollar";*/ -/* kb-custom-15: "Alt+percent";*/ -/* kb-custom-16: "Alt+dead_circumflex";*/ -/* kb-custom-17: "Alt+ampersand";*/ -/* kb-custom-18: "Alt+asterisk";*/ -/* kb-custom-19: "Alt+parenleft";*/ -/* kb-select-1: "Super+1";*/ -/* kb-select-2: "Super+2";*/ -/* kb-select-3: "Super+3";*/ -/* kb-select-4: "Super+4";*/ -/* kb-select-5: "Super+5";*/ -/* kb-select-6: "Super+6";*/ -/* kb-select-7: "Super+7";*/ -/* kb-select-8: "Super+8";*/ -/* kb-select-9: "Super+9";*/ -/* kb-select-10: "Super+0";*/ -/* ml-row-left: "ScrollLeft";*/ -/* ml-row-right: "ScrollRight";*/ -/* ml-row-up: "ScrollUp";*/ -/* ml-row-down: "ScrollDown";*/ -/* me-select-entry: "MousePrimary";*/ -/* me-accept-entry: "MouseDPrimary";*/ -/* me-accept-custom: "Control+MouseDPrimary";*/ - timeout { - action: "kb-cancel"; - delay: 0; - } - filebrowser { - directories-first: true; - sorting-method: "name"; - } - plugin { - path: "/nix/store/dllm74vs7qfrcsnwwsjcs4w0x70d67ps-rofi-1.7.5/lib/rofi"; - } -} diff --git a/home-manager/laptop/programs/rofi/default.nix b/home-manager/laptop/programs/rofi/default.nix deleted file mode 100644 index 540e97b..0000000 --- a/home-manager/laptop/programs/rofi/default.nix +++ /dev/null @@ -1,18 +0,0 @@ -{ pkgs, ... }: - -{ - programs.rofi = { - enable = true; - package = pkgs.rofi-wayland; - theme = ./squared-material-pine.rasi; - cycle = true; - plugins = with pkgs; [ - rofi-emoji - rofi-calc - ]; - extraConfig = { - kb-row-up = "Up,Alt+k"; - kb-row-down = "Down,Alt+j"; - }; - }; -} diff --git a/home-manager/laptop/programs/rofi/squared-material-pine.rasi b/home-manager/laptop/programs/rofi/squared-material-pine.rasi deleted file mode 100644 index dfc1304..0000000 --- a/home-manager/laptop/programs/rofi/squared-material-pine.rasi +++ /dev/null @@ -1,97 +0,0 @@ -/******************************************************************************* - * ROFI SQUARED THEME USING THE MATERIAL DARKER PALETTE - * User : LR-Tech - * Theme Repo : https://github.com/lr-tech/rofi-themes-collection - *******************************************************************************/ - -* { - font: "FiraCode Nerd Font Medium 12"; - - bg0: #1f1d2e; - bg1: #2a273f; - fg0: #908caa; - - accent-color: #6e6a86; - urgent-color: #ffffff; - - background-color: transparent; - text-color: @fg0; - - margin: 0; - padding: 0; - spacing: 0; -} - -window { - location: center; - width: 480; - y-offset: -160; - border-radius: 7px; - - background-color: @bg0; -} - -inputbar { - spacing: 8px; - padding: 8px; - - background-color: @bg1; -} - -prompt, entry, element-icon, element-text { - vertical-align: 0.5; -} - -prompt { - text-color: @accent-color; -} - -textbox { - padding: 8px; - background-color: @bg1; -} - -listview { - padding: 4px 0; - lines: 8; - columns: 1; - - fixed-height: false; -} - -element { - padding: 8px; - spacing: 8px; -} - -element normal normal { - text-color: @fg0; -} - -element normal urgent { - text-color: @urgent-color; -} - -element normal active { - text-color: @accent-color; -} - -element selected { - text-color: @bg0; -} - -element selected normal, element selected active { - background-color: @accent-color; -} - -element selected urgent { - background-color: @urgent-color; -} - -element-icon { - size: 0.8em; -} - -element-text { - text-color: inherit; -} diff --git a/home-manager/laptop/programs/rofi/theme.rasi b/home-manager/laptop/programs/rofi/theme.rasi deleted file mode 100644 index c110b07..0000000 --- a/home-manager/laptop/programs/rofi/theme.rasi +++ /dev/null @@ -1,125 +0,0 @@ -/* borrowed from https://github.com/abxh/dotfiles/blob/main/rofi/config.rasi */ -/* cuz IT'S SO SICK!!! */ - -* { - /* // general */ - bg: #333333; - bgt: #333333AA; - t: transparent; - fg: #e0c69f; - - selected-bg: @fg; - selected-fg: @bg; - - /* // for windows */ - active: #a9b665; - urgent: #ea6962; -} - -window { - fullscreen: true; - padding: 35% 30%; - transparency: "real"; - background-color: @bgt; - border-color: @t; -} - -listview { - border: 0 0 0 0; - padding: 23 0 0; - scrollbar: true; -} - -scrollbar { - width: 4px; - border: 0; - handle-color: @fg; - handle-width: 8px; - padding: 0 5; -} - -entry { - placeholder: ""; -} - -/* // other kinda less interesting stuff {{{ */ - -textbox { - text-color: @fg; -} - -/* // using elements from: */ -/* // https://github.com/bardisty/gruvbox-rofi/blob/master/gruvbox-common.rasi */ - -element { - border: 0; - padding: 2px; -} -element.normal.normal { - background-color: @t; - text-color: @fg; -} -element.normal.urgent { - background-color: @t; - text-color: @urgent; -} -element.normal.active { - background-color: @t; - text-color: @active; -} -element.selected.normal { - background-color: @selected-bg; - text-color: @selected-fg; -} -element.selected.urgent { - background-color: @selected-bg; - text-color: @urgent; -} -element.selected.active { - background-color: @selected-bg; - text-color: @selected-fg; -} -element.alternate.normal { - background-color: @t; - text-color: @fg; -} -element.alternate.urgent { - background-color: @t; - text-color: @urgent; -} -element.alternate.active { - background-color: @t; - text-color: @active; -} - -sidebar { - border: 2px 0 0; - border-color: @fg; -} - -inputbar { - spacing: 0; - text-color: @fg; - padding: 2px; - children: [ prompt, textbox-prompt-sep, entry, case-indicator ]; -} - -case-indicator, -entry, -prompt, -button { - spacing: 0; - text-color: @fg; -} - -button.selected { - background-color: @bg; - text-color: @fg; -} - -textbox-prompt-sep { - expand: false; - str: ":"; - text-color: @fg; - margin: 0 0.3em 0 0; -} diff --git a/home-manager/laptop/programs/waybar/config.jsonc b/home-manager/laptop/programs/waybar/config.jsonc deleted file mode 100644 index 84aeafd..0000000 --- a/home-manager/laptop/programs/waybar/config.jsonc +++ /dev/null @@ -1,94 +0,0 @@ -{ - "layer": "top", // Waybar at top layer - "height": 40, // Waybar height (to be removed for auto height) - "spacing": 8, // Gaps between modules (4px) - "margin-top": 20, - "margin-left": 20, - "margin-right": 20, - "margin-down": 5, - "modules-left": ["hyprland/workspaces"], - "modules-center": ["clock"], - "modules-right": ["network", "memory", "backlight", "pulseaudio", "hyprland/language", "tray", "battery"], - - "hyprland/workspaces": { - "format": "{icon}", - "on-click": "activate", - "all-outputs": false, - "format-icons": { - "1": "α", - "2": "β", - "3": "γ", - "4": "δ", - "5": "ε", - "urgent": "λ", - "focused": "σ", - "default": "ω"} - }, - "hyprland/language": { - "format": "{} <span font-family='Material Design Icons' rise='-1000' size='medium'></span>", - "format-ru": "ru", - "format-en": "en" - }, - "tray": { - "spacing": 10 - }, - "clock": { - // "timezone": "America/New_York", - "format": "{:%H:%M }", - "tooltip-format": "<big>{:%Y %B}</big>\n<tt><small>{calendar}</small></tt>", - "format-alt": "{:%d %h %Y }", - "on-click": "killall calcure || alacritty -t calcure -e calcure;sudo ydotool click 0xc1" - }, - "memory": { - "format": "{}% ", - "on-click": "killall btop || alacritty -t btop -e btop;sudo ydotool click 0xc1" - }, - "backlight": { - // "device": "acpi_video1", - "format": "{percent}% {icon}", - "format-icons": ["", "", ""] - }, - "battery": { - "states": { - // "good": 95, - "warning": 30, - "critical": 15 - }, - "format": "{capacity}% {icon}", - "format-charging": "{capacity}% ", - "format-plugged": "{capacity}% ", - "format-alt": "{icon}", - // "format-good": "", // An empty format will hide the module - // "format-full": "", - "format-icons": ["", "", "", "", "", "", "", "", "", ""], - }, - "network": { - // "interface": "wlp2*", // (Optional) To force the use of this interface - "format-wifi": "{essid} ({signalStrength}%) ", - "format-ethernet": "{ipaddr}/{cidr} ", - "tooltip-format": "{ifname} via {gwaddr} ", - "format-linked": "{ifname} (No IP) ", - "format-disconnected": "", - "on-click": "killall connman-gtk || connman-gtk;sudo ydotool click 0xc1" - }, - "pulseaudio": { - // "scroll-step": 1, // %, can be a float - "format": "{volume}% {icon} {format_source}", - "format-bluetooth": "{volume}% <span font-family='Material Design Icons' rise='-2000' font-size='x-large'></span> {format_source}", - "format-bluetooth-muted": " {format_source}", - "format-muted": " {format_source}", - "format-source": "{volume}% ", - "format-source-muted": "", - "format-icons": { - "headphone": "", - "hands-free": "", - "headset": "", - "phone": "", - "portable": "", - "car": "", - "muted-icon": "", - "default": ["", "", ""] - }, - "on-click": "killall bluetuith || alacritty -t blue -e bluetuith; sudo ydotool click 0xc1" - }, -} diff --git a/home-manager/laptop/programs/waybar/default.nix b/home-manager/laptop/programs/waybar/default.nix deleted file mode 100644 index 8618718..0000000 --- a/home-manager/laptop/programs/waybar/default.nix +++ /dev/null @@ -1,19 +0,0 @@ -{ pkgs, ... }: -let - systemd.enable = true; - package = pkgs.waybar.override { - swaySupport = false; - mpdSupport = false; - }; - -in -{ - programs.waybar = { - enable = true; - inherit systemd package; - }; - xdg.configFile = { - "waybar/config".text = builtins.readFile ./config.jsonc; - "waybar/style.css".text = builtins.readFile ./style.css; - }; -} diff --git a/home-manager/laptop/programs/waybar/style.css b/home-manager/laptop/programs/waybar/style.css deleted file mode 100644 index 7f64ae3..0000000 --- a/home-manager/laptop/programs/waybar/style.css +++ /dev/null @@ -1,31 +0,0 @@ -* { - font-family: Material Design Icons, Rubik Medium; - font-size: 14px; - color: #939ab7; -} - -window#waybar { - border-radius: 10px; - background: rgba(36, 39, 58, 0.7); - border: 3px solid rgba(183, 189, 248, 0.2); -} - -#battery { - margin-right: 6px; -} - -#workspaces button label { - font-size: 15px; - color: #cad3f5; - transition: all 100ms ease-out; -} - -#workspaces button.active label { - font-weight: bolder; - color: #f0c6c6; - transition: all 100ms ease-out; -} - -#battery { - color: #f0c6c6; -} diff --git a/home-manager/laptop/services/default.nix b/home-manager/laptop/services/default.nix deleted file mode 100644 index 8d73ea5..0000000 --- a/home-manager/laptop/services/default.nix +++ /dev/null @@ -1,3 +0,0 @@ -[ - ./mako -] diff --git a/home-manager/laptop/services/mako/default.nix b/home-manager/laptop/services/mako/default.nix deleted file mode 100644 index bddb020..0000000 --- a/home-manager/laptop/services/mako/default.nix +++ /dev/null @@ -1,23 +0,0 @@ -let - anchor = "bottom-right"; - backgroundColor = "#1f1d2e"; - borderColor = "#e0def4"; - textColor = "#e0def4"; - defaultTimeout = 5000; - borderSize = 3; - borderRadius = 7; - font = "Rubik 11"; -in -{ - services.mako = { - enable = true; - inherit anchor - backgroundColor - borderColor - textColor - defaultTimeout - borderRadius - font - borderSize; - }; -} |
