update: huge update part 1

This commit is contained in:
2026-01-20 14:11:54 +03:00
parent b977f1d951
commit be10bbee4c
40 changed files with 464 additions and 220 deletions

3
dot_bash_exports Normal file
View File

@@ -0,0 +1,3 @@
export ANDROID_SDK_ROOT=/opt/android-sdk
export PATH=$PATH:$ANDROID_SDK_ROOT/cmdline-tools/latest/bin
export PATH=$PATH:$ANDROID_SDK_ROOT/platform-tools

View File

@@ -1,3 +1,7 @@
if [ -f "$HOME/.bashrc" ]; then
. "$HOME/.bashrc"
fi
if [ -f "$HOME/.bash_exports" ]; then
. "$HOME/.bash_exports"
fi

View File

@@ -24,6 +24,9 @@ alias cdp='cd ~/Programming'
alias cds='cd ~/services'
alias t='cd ~/tmp'
# rm aliases
alias cleartmp='rm -r ~/tmp/*'
# edit configs aliases
alias cfghypr='nvim ~/.config/hypr'
alias cfgkitty='nvim ~/.config/kitty'
@@ -31,18 +34,17 @@ alias cfgnvim='nvim ~/.config/nvim'
alias cfgrofi='nvim ~/.config/rofi'
alias cfgwaybar='nvim ~/.config/waybar'
alias cfgdunst='nvim ~/.config/dunst'
alias cfgyazi='nvim ~/.config/yazi'
# utils aliases
alias edit-in-kitty='kitten edit-in-kitty'
alias y='yazi'
alias py='python'
alias pyv='python --version'
alias scrcpy-def='scrcpy -S --no-audio -K'
alias edit-in-kitty='kitten edit-in-kitty'
# fun aliases
alias ff='fastfetch'
alias mm='unimatrix -f -a -s 92 -l coo -c yellow'
alias mmbee='unimatrix -f -a -s 86 -u '\''bee'\'' -c yellow'
alias mmbeesquit='unimatrix -f -s 86 -u '\''beesquit'\'' -c yellow'
# rm aliases
alias cleartmp='rm -r ~/tmp/*'

View File

@@ -1,13 +1,18 @@
exec-once = dbus-update-activation-environment --systemd WAYLAND_DISPLAY XDG_CURRENT_DESKTOP
exec-once = uwsm app -- /usr/lib/xdg-desktop-portal-hyprland
exec-once = uwsm app -- /usr/lib/xdg-desktop-portal
exec-once = uwsm app -- /usr/lib/xdg-desktop-portal-gtk
# exec-once = uwsm app -- hypridle
exec-once = uwsm app -- hypridle
# exec-once = uwsm app -- hyprpaper
exec-once = uwsm app -- swww-daemon
exec-once = swww img "$WALLPAPER"
exec-once = uwsm app -- hyprpaper
exec-once = uwsm app -- waybar
exec-once = uwsm app -- dunst
exec-once = uwsm app -- wl-paste --type text --watch cliphist store #Stores only text data
exec-once = uwsm app -- wl-paste --type image --watch cliphist store #Stores only image data
exec-once = uwsm app -- dunst
exec-once = uwsm app -- systemd-inhibit --who="Hyprland config" --why="wlogout keybind" --what=handle-power-key --mode=block sleep infinity

View File

@@ -1,51 +1,68 @@
# general
$mainMod = SUPER
# Example binds, see https://wiki.hyprland.org/Configuring/Binds/ for more
bind = $mainMod, Q, exec, kitty
bind = $mainMod, C, killactive,
bind = $mainMod, M, exit,
bind = $mainMod, E, exec, thunar
# navigation binds
bind = $mainMod SHIFT, C, killactive,
bind = $mainMod SHIFT, M, exit,
bind = $mainMod SHIFT, V, togglefloating,
bind = $mainMod, R, exec, rofi -show drun
bind = $mainMod, P, pseudo, # dwindle
bind = $mainMod, T, togglesplit, # dwindle
bind = $mainMod, F, fullscreen, 1
bind = $mainMod SHIFT, F, fullscreen, 0
bind = $mainMod, V, exec, rofi -modi clipboard:/$HOME/.config/rofi/cliphist-rofi-img.sh -show clipboard -show-icon -config $HOME/.config/rofi/clipboard-config.rasi
# apps binds
bind = $mainMod, Q, exec, kitty
bind = $mainMod, E, exec, thunar
bind = $mainMod, R, exec, rofi -show drun
bind = CONTROL, ESCAPE, exec, kitty btop
# copy binds
bind = $mainMod, V, exec, rofi -modi clipboard:/$HOME/.config/rofi/cliphist-rofi-img.sh -show clipboard -show-icon
# -config $HOME/.config/rofi/clipboard-config.rasi
bind = $mainMod SHIFT, S, exec, IMG=~/Pictures/Screenshots/$(date +%Y-%m-%d_%H-%m-%s).png && grim -g "$(slurp)" $IMG && wl-copy < $IMG
bind = , PRINT, exec, grim - | wl-copy
bind = CONTROL, ESCAPE, exec, kitty btop
# hyprlock bind
bind = $mainMod, code:49, exec, hyprlock
# waybar bind
bindr = $mainMod, w, exec, pkill -9 waybar || uwsm app -- waybar
# multimedia binds
binde = , XF86AudioRaiseVolume, exec, wpctl set-volume @DEFAULT_AUDIO_SINK@ 5%+ -l 1.0; .config/hypr/scripts/dunst/volume.sh
binde = , XF86AudioLowerVolume, exec, wpctl set-volume @DEFAULT_AUDIO_SINK@ 5%- -l 0.0; .config/hypr/scripts/dunst/volume.sh
bind = , XF86AudioMute, exec, wpctl set-mute @DEFAULT_AUDIO_SINK@ toggle; .config/hypr/scripts/dunst/volumemute.sh
bind = , XF86AudioMicMute, exec, wpctl set-mute @DEFAULT_AUDIO_SOURCE@ toggle; .config/hypr/scripts/dunst/micro.sh
binde = , XF86AudioRaiseVolume, exec, pactl set-sink-volume @DEFAULT_SINK@ +5%; .config/hypr/scripts/dunst/volume.sh
binde = , XF86AudioLowerVolume, exec, pactl set-sink-volume @DEFAULT_SINK@ -5%; .config/hypr/scripts/dunst/volume-down.sh
bind = , XF86AudioMute, exec, pactl set-sink-mute @DEFAULT_SINK@ toggle; .config/hypr/scripts/dunst/volume-mute.sh
bind = , XF86AudioMicMute, exec, pactl set-source-mute @DEFAULT_SOURCE@ toggle; .config/hypr/scripts/dunst/micro.sh
bind = , XF86AudioStop, exec, playerctl stop
bind = , XF86AudioPause, exec, playerctl pause
bind = , XF86AudioPrev, exec, playerctl previous; .config/hypr/scripts/dunst/trackinfo.sh
bind = , XF86AudioNext, exec, playerctl next; .config/hypr/scripts/dunst/trackinfo.sh
bind = , XF86AudioPlay, exec, playerctl play-pause
# bindsym XF86AudioRaiseVolume exec pactl set-sink-volume @DEFAULT_SINK@ +10%
# bindsym XF86AudioLowerVolume exec pactl set-sink-volume @DEFAULT_SINK@ -10%
# bindsym XF86AudioMute exec pactl set-sink-mute @DEFAULT_SINK@ toggle
# brightness binds
bind = , XF86KbdBrightnessUp, exec, brightnessctl --device='asus::kbd_backlight' set 1+
bind = , XF86KbdBrightnessDown, exec, brightnessctl --device='asus::kbd_backlight' set 1-
binde = , XF86MonBrightnessUp , exec, brightnessctl --class='backlight' set 5%+; .config/hypr/scripts/dunst/eDP-1brightness.sh
binde = , XF86MonBrightnessDown , exec, brightnessctl --class='backlight' set 5%-; .config/hypr/scripts/dunst/eDP-1brightness.sh
bind = $mainMod ALT, up, exec, ddcutil -d 1 setvcp 10 + 5; .config/hypr/scripts/dunst/brightness.sh
bind = $mainMod ALT, down, exec, ddcutil -d 1 setvcp 10 - 5; .config/hypr/scripts/dunst/brightness.sh
binde = , XF86MonBrightnessUp , exec, brightnessctl --class='backlight' set 5%+; .config/hypr/scripts/dunst/brightness.sh
binde = , XF86MonBrightnessDown , exec, brightnessctl --class='backlight' set 5%-; .config/hypr/scripts/dunst/brightness-down.sh
# power binds
bindl = , switch:off:Lid Switch, exec, hyprctl keyword monitor "eDP-1, 1920x1080@120, 0x0, 1, vrr, 1"
bindl = , switch:on:Lid Switch, exec, .config/hypr/scripts/eDPower.sh
# bindl = , switch:off:Lid Switch, exec, hyprctl keyword monitor "eDP-1, 1920x1080@120, 0x0, 1, vrr, 1"
# bindl = , switch:on:Lid Switch, exec, .config/hypr/scripts/eDPower.sh
# bind = , XF86PowerOff, exec, .config/hypr/scripts/before-sleep.sh
bind = , XF86PowerOff, exec, systemctl suspend
# Move focus with mainMod + arrow keys
bind = $mainMod, H, movefocus, l
bind = $mainMod, L, movefocus, r
@@ -69,26 +86,32 @@ bind = $mainMod SHIFT, down, movewindow, d
bind = ALT, TAB, cyclenext
# Scroll through existing workspaces with mainMod + scroll
bind = $mainMod, mouse_down, workspace, r-1
bind = $mainMod, mouse_up, workspace, r+1
# Move/resize windows with mainMod + LMB/RMB and dragging
bindm = $mainMod, mouse:272, movewindow
bindm = $mainMod SHIFT, mouse:272, resizewindow
bindm = $mainMod, mouse:273, resizewindow
bindm = $mainMod SHIFT, mouse:272, resizewindow
# Switch workspaces
bind = $mainMod, A, focusworkspaceoncurrentmonitor, r-1
bind = $mainMod, D, focusworkspaceoncurrentmonitor, r+1
# Move active window to the next or previous workspace
bind = $mainMod SHIFT, A, movetoworkspace, r-1
bind = $mainMod SHIFT, D, movetoworkspace, r+1
# Swap worlspaces between monitors
bind = $mainMod, TAB, swapactiveworkspaces, 1 0
# Switch workspaces with mainMod + [0-9]
bind = $mainMod, 1, focusworkspaceoncurrentmonitor, 1
bind = $mainMod, 2, focusworkspaceoncurrentmonitor, 2
@@ -101,6 +124,7 @@ bind = $mainMod, 8, focusworkspaceoncurrentmonitor, 8
bind = $mainMod, 9, focusworkspaceoncurrentmonitor, 9
bind = $mainMod, 0, focusworkspaceoncurrentmonitor, 0
# Move active window to a workspace with mainMod + SHIFT + [0-9]
bind = $mainMod SHIFT, 1, movetoworkspace, 1
bind = $mainMod SHIFT, 2, movetoworkspace, 2

View File

@@ -1,13 +1,19 @@
env = GTK_THEME,Colloid-Transparent-Dracula
env = QT_QPA_PLATFORM,wayland;xcb
# env = QT_QPA_PLATFORMTHEME,qt6ct,*
env = XDG_CURRENT_DESKTOP,Hyprland
env = XDG_SESSION_TYPE,wayland
env = XDG_SESSION_DESKTOP,Hyprland
env = GDK_BACKEND,wayland,x11,*
env = XCURSOR_SIZE,24
exec = gsettings set org.gnome.desktop.interface color-scheme "prefer-dark"
exec = gsettings set org.gnome.desktop.interface gtk-theme "adw-gtk3-dark"
env = QT_QPA_PLATFORMTHEME,kde
env = XCURSOR_SIZE,24
env = ELECTRON_OZONE_PLATFORM_HINT,wayland
# env = chrome,--enable-features=TouchpadOverscrollHistoryNavigation
env = GDK_SCALE,1
xwayland {
force_zero_scaling = true
}

View File

@@ -9,19 +9,21 @@ input {
touchpad {
natural_scroll = yes
scroll_factor = 0.5
scroll_factor = 0.6
disable_while_typing = yes
}
sensitivity = -0.4 # -1.0 - 1.0, 0 means no modification.
force_no_accel = 1
sensitivity = 0 # -1.0 - 1.0, 0 means no modification.
# force_no_accel = 1
}
gestures {
# gesture = 3, left, dispatcher, focusworkspaceoncurrentmonitor, r+1
gesture = 3, horizontal, workspace
gesture = 3, horizontal, scale: 3, workspace
gesture = 3, vertical, scale: 3, workspace
}
device {
name = epic-mouse-v1
sensitivity = -0.5
name = hs-ch12u-ptp-01-02-0f-usb-keyboard-touchpad
sensitivity = 0.18
accel_profile = flat
}

View File

@@ -1,9 +1,9 @@
# layers
layerrule = blur, rofi
layerrule = ignorealpha, rofi
layerrule = blur on, match:namespace rofi
layerrule = ignore_alpha 0.4, match:namespace rofi
layerrule = blur, notifications
layerrule = ignorealpha, notifications
layerrule = blur on, match:namespace notifications
layerrule = ignore_alpha 0.8, match:namespace notifications
layerrule = blur, waybar
layerrule = ignorealpha, waybar
layerrule = blur off, match:namespace waybar
layerrule = ignore_alpha 1, match:namespace waybar

View File

@@ -1,2 +1,7 @@
#monitor = eDP-1, 1920x1080@120, auto, 1, vrr, 1
monitor = , prefered, auto, 1
# default
# monitor = eDP-1, 1920x1080@120, auto, 1, vrr, 1
# monitor = , prefered, auto, 1
monitor = eDP-1, prefered, auto, 1
# custom
monitor = desc:Communications Supply Corporation (A division of WESCO) P120ZDG-BF4, 2160x1440@60, auto, 1.33333334

View File

@@ -31,15 +31,37 @@ decoration {
animations {
enabled = yes
# Style 1
# bezier = myBezier, 0.05, 0.9, 0.1, 1.05
# animation = windows, 1, 7, myBezier
# animation = windowsOut, 1, 7, default, popin 80%
# animation = border, 1, 10, default
# animation = borderangle, 1, 8, default
# animation = fade, 1, 7, default
# animation = workspaces, 1, 6, default
# Style 2
bezier = myBezier, 0.05, 0.9, 0.1, 1.05
animation = windows, 1, 7, myBezier
animation = windowsOut, 1, 7, default, popin 80%
animation = windowsIn, 1, 10, myBezier, gnomed
animation = windowsOut, 1, 7, myBezier, popin 70%
animation = border, 1, 10, default
animation = borderangle, 1, 8, default
animation = fade, 1, 7, default
animation = workspaces, 1, 6, default
animation = fade, 1, 5, myBezier
animation = workspaces, 1, 6, myBezier, slide
# Style 3 (raw)
# bezier = myBezier, 0, 0.55, 0.45, 1
# animation = windows, 1, 7, myBezier
# animation = windowsOut, 1, 7, default, popin 80%
# animation = border, 1, 10, default
# animation = borderangle, 1, 8, default
# animation = fade, 1, 5, myBezier
# animation = workspaces, 1, 6, myBezier, slide
}
dwindle {
pseudotile = yes
preserve_split = yes

View File

@@ -1,26 +1,29 @@
# browsers
windowrule = tag +browser, class:^([Gg]oogle-chrome|[Cc]hrome)$
windowrule = tag +browser, class:^([Ff]irefox|[Ff]irefox-esr|[Ff]irefox-bin|org.mozilla.firefox)$
windowrule = tag +browser, match:class ^([Gg]oogle-chrome|[Cc]hrome)$
windowrule = tag +browser, match:class ^([Ff]irefox|[Ff]irefox-esr|[Ff]irefox-bin|org.mozilla.firefox)$
windowrule = opacity 0.9 0.8, tag:browser*
windowrule = opacity 0.9 0.8, match:tag browser*
# messengers
windowrule = tag +messenger, class:^([Mm]attermost|[Mm]attermost-desktop)$
windowrule = tag +messenger, class:^([Tt]elegram|[Tt]elegram-desktop|org.telegram.desktop)$
windowrule = tag +messenger, match:class ^([Mm]attermost|[Mm]attermost-desktop)$
windowrule = tag +messenger, match:class ^([Tt]elegram|[Tt]elegram-desktop|org.telegram.desktop)$
windowrule = opacity 1 0.9, tag:messenger*
windowrule = opacity 1 0.9, match:tag messenger*
# tools
windowrule = tag +tools, class:^([Dd][Bb]eaver|[Dd][Bb]eaver-ce|[Dd][Bb]eaver-community)$
windowrule = tag +tools, match:class ^([Dd][Bb]eaver|[Dd][Bb]eaver-ce|[Dd][Bb]eaver-community)$
windowrule = opacity 0.85 0.3, tag:tools*
windowrule = opacity 0.85 0.3, match:tag tools*
# jetbrains
windowrule = no_initial_focus on, match:class (jetbrains-idea), match:title ^win.*
windowrule = no_initial_focus on, match:class (jetbrains-studio), match:title ^win(.*)
windowrule = no_initial_focus on, match:class (jetbrains-goland), match:title ^win.*
windowrule = no_initial_focus on, match:class (jetbrains-toolbox), match:float yes
windowrule = no_initial_focus on, match:class (jetbrains-goland), match:float yes, match:title ^$, match:initial_title ^$
# other
windowrulev2 = float, center, class:^(xfce-polkit)$
windowrulev2 = float, center, class:^(file-roller)$
#windowrulev2 = minsize 1 1, title:^()$,class:^(OrcaSlicer)$
#windowrulev2 = minsize 1 1, title:^()$,class:^(steam)$
# windowrule = float, center, match:class ^(xfce-polkit)$
# windowrule = float, center, match:class ^(file-roller)$

View File

@@ -1,3 +1,30 @@
general {
before_sleep_cmd = $HOME/.config/hypr/scripts/before-sleep.sh # command run before sleep
ignore_dbus_inhibit = false # whether to ignore dbus-sent idle-inhibit requests (used by e.g. firefox or steam) }
inhibit_sleep = 3
# lock_cmd = pidof hyprlock || hyprlock
before_sleep_cmd = ~/.config/hypr/scripts/before-sleep.sh
after_sleep_cmd = ~/.config/hypr/scripts/after-sleep.sh
# ignore_dbus_inhibit = false
}
# TODO: migrate to brillo?
listener {
timeout = 120
on-timeout = brightnessctl -s set 0 # avoid 0 with OLED monitors
on-resume = brightnessctl -r
}
listener {
timeout = 180
on-timeout = loginctl lock-session
}
listener {
timeout = 330
on-timeout = hyprctl dispatch dpms off
on-resume = hyprctl dispatch dpms on && brightnessctl -r
}
listener {
timeout = 300
on-timeout = systemctl suspend
}

View File

@@ -50,3 +50,8 @@ label {
halign = center
valign = bottom
}
animations {
animation = fadeIn, 0
animation = fadeOut, 0
}

View File

@@ -1,2 +1,2 @@
preload = $HOME/.config/hypr/Wallpaper/kotamota2.png
wallpaper = , $HOME/.config/hypr/Wallpaper/kotamota2.png
wallpaper = , contain:$HOME/.config/hypr/Wallpaper/kotamota2.png

View File

@@ -1,5 +0,0 @@
#!/bin/bash
hyprctl keyword monitor "eDP-1, 1920x1080@120, 0x0, 1, vrr, 1"
brightnessctl --device="asus::kbd_backlight" set 0
uwsm app -- hyprlock

View File

@@ -2,9 +2,7 @@
msgId="3378455"
brightnessctl "$@" >/dev/null
brightpercent=$(ddcutil -d 1 getvcp 10 | sed 's/^.*current value = //' | sed 's/, max.*//')
brightpercent=$(brightnessctl -m --class='backlight' | awk -F, '{print substr($4, 0, length($4)-1)}')
notify-send -i $HOME/.config/hypr/scripts/dunst/icons/brightness.svg -a "changeBrightness" -u low -r "$msgId" \
-h int:value:"$brightpercent" "Яркость экрана: $brightpercent%"

View File

@@ -2,8 +2,9 @@
msgId="3378455"
station=$(wpctl get-volume @DEFAULT_AUDIO_SOURCE@ | sed 's/Volume://' | tr -d [:digit:] | tr -d ' .[]')
station=$(pactl get-source-volume @DEFAULT_SOURCE@)
# TODO: fix if for pactl
if [ $station = 'MUTED' ]; then
notify-send -i "$HOME/.config/hypr/scripts/dunst/icons/mic off.svg" -u low -r "$msgId" "Микрофон выключен"
else

View File

@@ -2,10 +2,10 @@
msgId="3378455"
wpctl set-mute @DEFAULT_AUDIO_SINK@ 0
# Unmute on volume change
# pactl set-mute @DEFAULT_SINK@ 0
volume=$(wpctl get-volume @DEFAULT_AUDIO_SINK@ | sed 's/Volume://' |
sed 's/ 0.//' | tr -d ' .')
volume=$(pactl get-sink-volume @DEFAULT_SINK@ | grep -Eo [0-9]+% | head -1)
notify-send -i $HOME/.config/hypr/scripts/dunst/icons/volume.svg -a "changevolume" -u low -r "$msgId" \
-h int:value:"$volume" "Громкость: $volume%"

View File

@@ -0,0 +1,12 @@
#!/bin/bash
# hyprctl keyword monitor "eDP-1, 1920x1080@120, 0x0, 1, vrr, 1"
# TODO: why uwsm?
brightnessctl -s
# brightnessctl --class='backlight' set 0%
#
# sleep 4
# brightnessctl --class='backlight' set 20%
uwsm app -- hyprlock &

View File

@@ -1,30 +1,31 @@
{
"Comment.nvim": { "branch": "master", "commit": "e30b7f2008e52442154b66f7c519bfd2f1e32acb" },
"catppuccin": { "branch": "main", "commit": "8c4125e3c746976ba025dc5d908fa22c6aa09486" },
"catppuccin": { "branch": "main", "commit": "ce8d176faa4643e026e597ae3c31db59b63cef09" },
"cmp-buffer": { "branch": "main", "commit": "b74fab3656eea9de20a9b8116afa3cfc4ec09657" },
"cmp-nvim-lsp": { "branch": "main", "commit": "bd5a7d6db125d4654b50eeae9f5217f24bb22fd3" },
"conform.nvim": { "branch": "master", "commit": "9fd3d5e0b689ec1bf400c53cbbec72c6fdf24081" },
"harpoon": { "branch": "harpoon2", "commit": "ed1f853847ffd04b2b61c314865665e1dadf22c7" },
"cmp-nvim-lsp": { "branch": "main", "commit": "cbc7b02bb99fae35cb42f514762b89b5126651ef" },
"conform.nvim": { "branch": "master", "commit": "5420c4b5ea0aeb99c09cfbd4fd0b70d257b44f25" },
"dressing.nvim": { "branch": "master", "commit": "2d7c2db2507fa3c4956142ee607431ddb2828639" },
"flutter-tools.nvim": { "branch": "main", "commit": "539e84f5a652d96917f0afc1341c20f0d59dd789" },
"harpoon": { "branch": "harpoon2", "commit": "87b1a3506211538f460786c23f98ec63ad9af4e5" },
"indent-blankline.nvim": { "branch": "master", "commit": "005b56001b2cb30bfa61b7986bc50657816ba4ba" },
"lazy.nvim": { "branch": "main", "commit": "f0f5bbb9e5bfae5e6468f9359ffea3d151418176" },
"lualine.nvim": { "branch": "master", "commit": "3946f0122255bc377d14a59b27b609fb3ab25768" },
"mini.nvim": { "branch": "main", "commit": "ee4a4a4abed25e3d108d985b0553c5271f2f71aa" },
"neo-tree.nvim": { "branch": "main", "commit": "fa61e064895d6eff509f5fcb7b2b77b195c4291f" },
"no-neck-pain.nvim": { "branch": "main", "commit": "c3d96b648501554c9a87530b2ff86c721cddd5c1" },
"lazy.nvim": { "branch": "main", "commit": "306a05526ada86a7b30af95c5cc81ffba93fef97" },
"lualine.nvim": { "branch": "master", "commit": "47f91c416daef12db467145e16bed5bbfe00add8" },
"mini.nvim": { "branch": "main", "commit": "7e55c3d2c04da134085a31156196836f80a89982" },
"neo-tree.nvim": { "branch": "main", "commit": "b0b73273b4f5a1f4b4aac8accd6e0c3b4b5a6967" },
"nui.nvim": { "branch": "main", "commit": "de740991c12411b663994b2860f1a4fd0937c130" },
"nvim-autopairs": { "branch": "master", "commit": "7a2c97cccd60abc559344042fefb1d5a85b3e33b" },
"nvim-cmp": { "branch": "main", "commit": "a7bcf1d88069fc67c9ace8a62ba480b8fe879025" },
"nvim-dap": { "branch": "master", "commit": "6782b097af2417a4c3e33849b0a26ae2188bd7ea" },
"nvim-dap-python": { "branch": "master", "commit": "64652d1ae1db80870d9aac7132d76e37acd86a26" },
"nvim-autopairs": { "branch": "master", "commit": "c2a0dd0d931d0fb07665e1fedb1ea688da3b80b4" },
"nvim-cmp": { "branch": "main", "commit": "d97d85e01339f01b842e6ec1502f639b080cb0fc" },
"nvim-dap": { "branch": "master", "commit": "818cd8787a77a97703eb1d9090543a374f79a9ac" },
"nvim-dap-python": { "branch": "master", "commit": "1808458eba2b18f178f990e01376941a42c7f93b" },
"nvim-dap-ui": { "branch": "master", "commit": "cf91d5e2d07c72903d052f5207511bf7ecdb7122" },
"nvim-lspconfig": { "branch": "master", "commit": "cbd1e91296189a765094810de1b71a04e2597579" },
"nvim-lspconfig": { "branch": "master", "commit": "d696e36d5792daf828f8c8e8d4b9aa90c1a10c2a" },
"nvim-nio": { "branch": "master", "commit": "21f5324bfac14e22ba26553caf69ec76ae8a7662" },
"nvim-treesitter": { "branch": "master", "commit": "42fc28ba918343ebfd5565147a42a26580579482" },
"nvim-web-devicons": { "branch": "master", "commit": "8dcb311b0c92d460fac00eac706abd43d94d68af" },
"nvim-web-devicons": { "branch": "master", "commit": "6788013bb9cb784e606ada44206b0e755e4323d7" },
"plenary.nvim": { "branch": "master", "commit": "b9fd5226c2f76c951fc8ed5923d85e4de065e509" },
"render-markdown.nvim": { "branch": "main", "commit": "10126effbafb74541b69219711dfb2c631e7ebf8" },
"telescope.nvim": { "branch": "master", "commit": "b4da76be54691e854d3e0e02c36b0245f945c2c7" },
"render-markdown.nvim": { "branch": "main", "commit": "07d088bf8bdadd159eb807b90eaee86a4778383f" },
"telescope.nvim": { "branch": "master", "commit": "4d0f5e0e7f69071e315515c385fab2a4eff07b3d" },
"vim-fugitive": { "branch": "master", "commit": "61b51c09b7c9ce04e821f6cf76ea4f6f903e3cf4" },
"vim-suda": { "branch": "master", "commit": "c492741b4679b3cdd4d9e34138209784e061d916" },
"yanky.nvim": { "branch": "main", "commit": "04775cc6e10ef038c397c407bc17f00a2f52b378" }
"yanky.nvim": { "branch": "main", "commit": "04fc42b94305d94948c9c197f679336668af3292" }
}

View File

@@ -15,21 +15,14 @@ if not (vim.uv or vim.loop).fs_stat(lazypath) then
end
vim.opt.rtp:prepend(lazypath)
-- Make sure to setup `mapleader` and `maplocalleader` before
-- loading lazy.nvim so that mappings are correct.
-- This is also a good place to setup other settings (vim.opt)
vim.g.mapleader = " "
vim.g.maplocalleader = "\\"
-- Setup lazy.nvim
require("lazy").setup({
spec = {
-- import your plugins
{ import = "plugins" },
},
-- Configure any other settings here. See the documentation for more details.
-- colorscheme that will be used when installing plugins.
install = { colorscheme = { "habamax" } },
-- automatically check for plugin updates
checker = { enabled = false },
})

View File

@@ -1,4 +1,3 @@
-- completion engine plugin for neovim
return {
"hrsh7th/nvim-cmp",
dependencies = {

View File

@@ -4,7 +4,6 @@ return {
cmd = { "ConformInfo" },
keys = {
{
-- Customize or remove this keymap to your liking
"<leader>F",
function()
require("conform").format({ async = true, lsp_fallback = true })
@@ -13,46 +12,60 @@ return {
desc = "Format buffer",
},
},
-- Everything in opts will be passed to setup()
opts = {
-- Define your formatters
-- Defined formatters
formatters_by_ft = {
lua = { "stylua" },
sh = { "shfmt" },
python = { "ruff_organize_imports_only" },
go = { "goimports", "gofmt" },
go = { "gofmt" },
html = { "prettierd", "prettier", stop_after_first = true },
css = { "prettierd", "prettier", stop_after_first = true },
javascript = { "prettierd", "prettier", stop_after_first = true },
typescript = { "prettierd", "prettier", stop_after_first = true },
json = { "prettierd", "prettier", stop_after_first = true },
jsonc = { "prettierd", "prettier", stop_after_first = true },
json = { "prettierd", "prettier_f", stop_after_first = true },
jsonc = { "prettierd_f", "prettier_f", stop_after_first = true },
markdown = { "prettierd", "prettier", stop_after_first = true },
},
-- Custom formatters
formatters = {
prettierd = {
args = { "--tab-width", "2" },
},
ruff_organize_imports_only = {
command = "ruff",
args = {
"check",
"--select",
"I001",
"--fix",
"--ignore",
"F401",
"--stdin-filename",
"$FILENAME",
"-",
},
stdin = true,
},
prettierd = {
args = { "--tab-width", "2" },
},
prettier = {
args = { "--tab-width", "2" },
},
prettierd_f = {
command = "prettierd",
args = { "--tab-width", "4" },
stdin = true,
},
prettier_f = {
command = "prettier",
args = { "--tab-width", "4" },
stdin = true,
},
},
-- Set up format-on-save
format_on_save = { timeout_ms = 500, lsp_fallback = true },
format_on_save = { timeout_ms = 5000, lsp_fallback = true },
},
init = function()
-- If you want the formatexpr, here is the place to set it
vim.o.formatexpr = "v:lua.require'conform'.formatexpr()"
end,
}

View File

@@ -25,8 +25,8 @@ return {
},
config = function()
local harpoon = require("harpoon")
harpoon:setup()
local harpoon = require("harpoon")
harpoon:setup()
local harpoon_extensions = require("harpoon.extensions")
harpoon:extend(harpoon_extensions.builtins.highlight_current_file())
@@ -43,7 +43,7 @@ return {
vim.keymap.set("n", "<leader>L", function()
harpoon:list():clear()
end)
vim.keymap.set("n", "<M-h>", function()
harpoon:list():prev()
end)

View File

@@ -25,6 +25,7 @@ return {
settings = { interpreter = python_path },
})
vim.lsp.enable("ruff")
vim.lsp.config("basedpyright", {
root_markers = { ".git" },
python = { pythonPath = python_path },
@@ -40,6 +41,7 @@ return {
},
})
vim.lsp.enable("basedpyright")
vim.lsp.config("bashls", {
cmd = { "bash-language-server", "start" },
filetypes = { "bash", "sh" },

View File

@@ -1,22 +1,25 @@
return {
"nvim-treesitter/nvim-treesitter",
config = function()
require("nvim-treesitter.configs").setup({
ensure_installed = {
"lua",
"python",
"yaml",
"markdown",
"bash",
},
"nvim-treesitter/nvim-treesitter",
config = function()
require("nvim-treesitter.configs").setup({
ensure_installed = {
"lua",
"python",
"go",
"kotlin",
"yaml",
"markdown",
"bash",
"lua",
},
sync_install = false,
auto_install = true,
sync_install = false,
auto_install = true,
highlight = {
enable = true,
additional_vim_regex_highlighting = false,
},
})
end,
highlight = {
enable = true,
additional_vim_regex_highlighting = false,
},
})
end,
}

View File

@@ -1,13 +1,4 @@
/**
*
* Author : Aditya Shakya (adi1090x)
* Github : @adi1090x
*
* Rofi Theme File
* Rofi Version: 1.7.3
**/
/*****----- Configuration -----*****/
// Configuration
configuration {
modi: "drun,run,filebrowser,window";
show-icons: true;
@@ -17,9 +8,13 @@ configuration {
display-window: " ";
drun-display-format: "{name}";
window-format: "{w} · {c} · {t}";
// binds
// kb-row-up: "Up,Control+k,Shift+Tab,Shift+ISO_Left_Tab";
// kb-row-down: "Down,Control+j";
}
/*****----- Global Properties -----*****/
// Global Properties
@import "./colors.rasi"
@import "./fonts.rasi"
@@ -49,9 +44,9 @@ configuration {
alternate-active-foreground: var(background);
}
/*****----- Main Window -----*****/
// Main Window
window {
/* properties for window widget */
// properties for window widget
transparency: "real";
location: center;
anchor: center;
@@ -60,7 +55,7 @@ window {
x-offset: 0px;
y-offset: 0px;
/* properties for all widgets */
// properties for all widgets
enabled: true;
margin: 0px;
padding: 0px;
@@ -68,11 +63,11 @@ window {
border-radius: 10px;
border-color: @border-color;
cursor: "default";
/* Backgroud Colors */
// Backgroud Colors
background-color: @background-color;
}
/*****----- Main Box -----*****/
// Main Box
mainbox {
enabled: true;
spacing: 10px;
@@ -86,7 +81,7 @@ mainbox {
children: [ "inputbar", "message", "listview" ];
}
/*****----- Inputbar -----*****/
// Inputbar
inputbar {
enabled: true;
spacing: 10px;
@@ -147,7 +142,7 @@ case-indicator {
text-color: inherit;
}
/*****----- Listview -----*****/
// Listview
listview {
enabled: true;
columns: 1;
@@ -159,7 +154,7 @@ listview {
reverse: false;
fixed-height: true;
fixed-columns: true;
spacing: 5px;
margin: 0px;
padding: 0px;
@@ -177,7 +172,7 @@ scrollbar {
background-color: @alternate-background;
}
/*****----- Elements -----*****/
// Elements
element {
enabled: true;
spacing: 10px;
@@ -241,7 +236,7 @@ element-text {
horizontal-align: 0.0;
}
/*****----- Mode Switcher -----*****/
// Mode Switcher
mode-switcher{
enabled: true;
spacing: 10px;
@@ -267,7 +262,7 @@ button selected {
text-color: var(selected-normal-foreground);
}
/*****----- Message -----*****/
// Message
message {
enabled: true;
margin: 0px;
@@ -300,4 +295,3 @@ error-message {
background-color: @background-color;
text-color: @foreground-color;
}

View File

@@ -1,10 +1,3 @@
/**
*
* Author : Levi Lacoss (fishyfishfish55)
* Github : @fishyfishfish55
**/
* {
background: #0E12196A;
sel-foreground: #111218;

View File

@@ -1,13 +1,4 @@
/**
*
* Author : Aditya Shakya (adi1090x)
* Github : @adi1090x
*
* Rofi Theme File
* Rofi Version: 1.7.3
**/
/*****----- Configuration -----*****/
// Configuration
configuration {
modi: "drun,run,filebrowser,window";
show-icons: false;
@@ -18,17 +9,19 @@ configuration {
drun-display-format: "{name}";
window-format: "{w} · {c} · {t}";
kb-row-up: "Up,Control+k,Shift+Tab,Shift+ISO_Left_Tab";
kb-row-down: "Down,Control+j";
kb-accept-entry: "Control+m,Return,KP_Enter";
terminal: "mate-terminal";
kb-remove-to-eol: "Control+Shift+e";
// kb-mode-next: "Shift+Right,Control+Tab,Control+l";
kb-mode-previous: "Shift+Left,Control+Shift+Tab,Control+h";
kb-remove-char-back: "BackSpace";
// binds
kb-row-up: "Up,Control+k,Shift+Tab,Shift+ISO_Left_Tab";
kb-row-down: "Down,Control+j";
kb-accept-entry: "Control+m,Return,KP_Enter";
terminal: "mate-terminal";
kb-remove-to-eol: "Control+Shift+e";
kb-mode-complete: "Control+Shift+t";
kb-mode-next: "Shift+Right,Control+Tab,Control+l";
kb-mode-previous: "Shift+Left,Control+Shift+Tab,Control+h";
kb-remove-char-back: "BackSpace";
}
/*****----- Global Properties -----*****/
// Global Properties
@import "./colors.rasi"
@import "./fonts.rasi"
@@ -58,9 +51,9 @@ configuration {
alternate-active-foreground: var(background);
}
/*****----- Main Window -----*****/
// Main Window
window {
/* properties for window widget */
// properties for window widget
transparency: "real";
location: center;
anchor: center;
@@ -69,7 +62,7 @@ window {
x-offset: 0px;
y-offset: 0px;
/* properties for all widgets */
// properties for all widgets
enabled: true;
margin: 0px;
padding: 0px;
@@ -77,11 +70,11 @@ window {
border-radius: 10px;
border-color: @border-color;
cursor: "default";
/* Backgroud Colors */
// Backgroud Colors
background-color: @background-color;
}
/*****----- Main Box -----*****/
// Main Box
mainbox {
enabled: true;
spacing: 10px;
@@ -95,7 +88,7 @@ mainbox {
children: [ "inputbar", "message", "listview" ];
}
/*****----- Inputbar -----*****/
// Inputbar
inputbar {
enabled: true;
spacing: 10px;
@@ -156,7 +149,7 @@ case-indicator {
text-color: inherit;
}
/*****----- Listview -----*****/
// Listview
listview {
enabled: true;
columns: 1;
@@ -168,7 +161,7 @@ listview {
reverse: false;
fixed-height: true;
fixed-columns: true;
spacing: 5px;
margin: 0px;
padding: 0px;
@@ -186,7 +179,7 @@ scrollbar {
background-color: @alternate-background;
}
/*****----- Elements -----*****/
// Elements
element {
enabled: true;
spacing: 10px;
@@ -250,7 +243,7 @@ element-text {
horizontal-align: 0.0;
}
/*****----- Mode Switcher -----*****/
// Mode Switcher
mode-switcher{
enabled: true;
spacing: 10px;
@@ -276,7 +269,7 @@ button selected {
text-color: var(selected-normal-foreground);
}
/*****----- Message -----*****/
// Message
message {
enabled: true;
margin: 0px;
@@ -309,4 +302,3 @@ error-message {
background-color: @background-color;
text-color: @foreground-color;
}

View File

@@ -1,12 +1,3 @@
/**
*
* Author : Aditya Shakya (adi1090x)
* Github : @adi1090x
*
* Fonts
*
**/
* {
font: "JetBrains Mono Nerd Font 13";
}

View File

@@ -1,8 +1,9 @@
rofi.kb-row-up: Up,Control+k,Shift+Tab,Shift+ISO_Left_Tab
rofi.kb-row-down: Down,Control+j
# rofi.kb-row-up: Up,Control+k,Shift+Tab,Shift+ISO_Left_Tab
# rofi.kb-row-down: Down,Control+j
rofi.kb-accept-entry: Control+m,Return,KP_Enter
rofi.terminal: mate-terminal
rofi.kb-remove-to-eol: Control+Shift+e
rofi.kb-mode-complete: Control+Shift+t
rofi.kb-mode-next: Shift+Right,Control+Tab,Control+l
rofi.kb-mode-previous: Shift+Left,Control+Shift+Tab,Control+h
rofi.kb-remove-char-back: BackSpace

View File

@@ -1,5 +1,43 @@
{
"clock": {
"format": "{:%H:%M}",
"clock#time": {
"format": "<span color=\"#7aa2f7\">     </span>{:%H:%M:%S}",
"interval": 1,
},
"clock#date": {
"format": "<span color=\"#7aa2f7\">     </span>{:%d/%m/%Y}",
"tooltip-format": "<tt>{calendar}</tt>",
"interval": 360,
"calendar": {
"mode": "month",
"mode-mon-col": 4,
"weeks-pos": "right",
"on-scroll": 1,
"on-click-right": "mode",
"format": {
"months": "<span color='#c0caf5'><b>{}</b></span>",
"days": "<span color='#c0caf5'><b>{}</b></span>",
"weeks": "<span color='#7dcfff'><b>W{}</b></span>",
"weekdays": "<span color='#ff9e64'><b>{}</b></span>",
"today": "<span color='#f7768e'><b><u>{}</u></b></span>",
},
},
},
}
// "clock": {
// "format": " {:%H:%M}",
// "tooltip-format": "<tt>{calendar}</tt>",
// "calendar": {
// "mode": "month",
// "mode-mon-col": 4,
// "weeks-pos": "right",
// "on-scroll": 1,
// "on-click-right": "mode",
// "format": {
// "months": "<span color='#c0caf5'><b>{}</b></span>",
// "days": "<span color='#c0caf5'><b>{}</b></span>",
// "weeks": "<span color='#7dcfff'><b>W{}</b></span>",
// "weekdays": "<span color='#ff9e64'><b>{}</b></span>",
// "today": "<span color='#f7768e'><b><u>{}</u></b></span>",
// },
// },
// },

View File

@@ -6,19 +6,20 @@
"bluetooth": {
"format": "",
"format-disabled": "", // an empty format will hide the module
"format-connected": "",
"format-disabled": "Bd",
"format-connected": "",
"on-click": "kitty bluetui",
"tooltip-format": "{device_enumerate}",
"tooltip-format-enumerate-connected": "{device_alias}",
},
"network": {
"format": "{ifname}",
"format-disabled": "Wd",
"format-wifi": " ",
"format-ethernet": "󰈀 ",
"format-disconnected": "󰖪 ",
"tooltip-format-wifi": "{essid}",
"tooltip-format-ethernet": "{ipaddr}",
"on-click": "networkmanager_dmenu",
"on-click": "~/.config/rofi/network-manager/run_manager.sh",
},
}

View File

@@ -6,8 +6,8 @@
"battery": {
"format": "{icon}",
"format-icons": ["󰂎", "󰁺", "󰁻", "󰁼", "󰁽", "󰁾", "󰁿", "󰂀", "󰂂", "󰁹"],
"format-charging": "󰂄",
"format-icons": [" ", " ", " ", " ", " "],
"format-charging": "",
"on-click": "$HOME/.config/hypr/scripts/dunst/ROGprofiler.sh",
"tooltip-format": "{capacity}% {timeTo}",
},

View File

@@ -3,8 +3,10 @@
"icon-size": 14,
"spacing": 10,
"icons": {
"Spotify": " ",
"Steam": "",
"Telegram Desktop": "",
"Mattermost Desktop": "",
},
},
}

View File

@@ -6,16 +6,16 @@
"hyprland/workspaces": {
"format": "{icon}",
"tooltip": true,
"tooltip": false,
"tooltips": {
"default": "{name}: {windows}",
"empty": "", // Will result in no tooltip
"empty": "",
},
"all-outputs": false,
"on-scroll-up": "hyprctl dispatch focusworkspaceoncurrentmonitor r-1",
"on-scroll-down": "hyprctl dispatch focusworkspaceoncurrentmonitor r+1",
"format-icons": {
"active": "",
"active": "",
"default": "",
},
},

View File

@@ -0,0 +1,29 @@
[mgr]
prepend_keymap = [
{on = [ ";" ], run = 'shell "$SHELL" --block --confirm', desc = "Open shell here"},
{on = [ ":","q","a","<Enter>" ], run = 'quit', desc = "Close the current tab"},
{on = [ ":","q","<Enter>" ], run = 'close', desc = "Close the current tab"},
# Makes "Enter" key necessary to press
{on = [ ":","q","a","<Esc>" ], run = 'echo meow', desc = ""},
{on = [ "q" ], run = 'noop'},
{on = [ "g","e" ], run = 'cd /etc', desc = "Go to /etc"},
{on = [ "g","r" ], run = 'cd /', desc = "Go to /"},
{on = [ "g","s" ], run = 'cd /srv', desc = "Go to /srv"},
{on = [ "g","u" ], run = 'cd /usr', desc = "Go to /usr"},
{on = [ "g","v" ], run = 'cd /var', desc = "Go to /var"},
{on = [ "g","c" ], run = 'cd ~/.config', desc = "Go to .config"},
{on = [ "v" ], run = 'select_all --state=true', desc = "Select all files"},
{on = [ "V" ], run = 'visual_mode', desc = "Enter visual mode"},
{on = [ "y" ], run = [
'shell -- for path in "$@"; do echo "file://$path"; done | wl-copy -t text/uri-list',
"yank"
]},
{on = [ "D", "<Enter>" ], run = 'remove --force --permanently', desc = "Permanently delete"},
]

View File

@@ -0,0 +1,3 @@
[mgr]
show_hidden = true
sort_dir_first = true

49
dot_ideavimrc Normal file
View File

@@ -0,0 +1,49 @@
" Plugins
Plug 'preservim/nerdtree'
Plug 'tpope/vim-commentary'
Plug 'machakann/vim-highlightedyank'
" Global
set clipboard=unnamedplus
let mapleader=" "
set scrolloff=5
set incsearch
" Incode mappings
map <S-Space> <Action>(GotoNextError)
"" Commentary
nnoremap <S-\> :Commentary<CR>
xnoremap <S-\> :Commentary<CR>
" Navigation
"" editor navigation
nnoremap H gT
nnoremap H gt
"" code spaces navigation
nnoremap <C-H> <C-w>H
nnoremap <C-L> <C-w>L
nnoremap <C-k> <C-w>k
nnoremap <C-j> <C-w>j
"" tree-code navigation
""" set "FocusEditor" to <C-l> in Android Studio settings
nnoremap <C-h> :action ActivateProjectToolWindow<CR>
nnoremap <C-t> :action ActivateTerminalToolWindow<CR>
" tree
let g:NERDTreeMapCloseDir = 'h'
let g:NERDTreeMapActivateNode = 'l'
let g:NERDTreeMapToggleHidden = 'H'
let g:NERDTreeMapDelete = 'd'
let g:NERDTreeMapNewFile = 'a'
let g:NERDTreeMapNewDir = 'A'
let g:NERDTreeMapToggleZoom = 'n'
" Testing
"map Q gq

View File

@@ -0,0 +1,26 @@
#!/bin/bash
# chezmoi-load script
chezmoi re-add ~/chezmoi-load.sh
# .themes/
chezmoi re-add ~/.themes/Colloid-Transparent-Dracula
# .config/
chezmoi re-add ~/.config/hypr
chezmoi re-add ~/.config/dunst
chezmoi re-add ~/.config/waybar
chezmoi re-add ~/.config/rofi
chezmoi re-add ~/.config/yazi
chezmoi re-add ~/.config/kitty
chezmoi re-add ~/.config/nvim
# bash
chezmoi re-add ~/.bash_profile
chezmoi re-add ~/.bashrc
chezmoi re-add ~/.bash_aliases
chezmoi re-add ~/.bash_exports
chezmoi re-add ~/.bash_aliases
# other
chezmoi re-add ~/.ideavimrc