diff --git a/config b/config deleted file mode 120000 index 7f247da..0000000 --- a/config +++ /dev/null @@ -1 +0,0 @@ -/home/whyoolw/whyfile/config \ No newline at end of file diff --git a/config/MangoHud/MangoHud.conf b/config/MangoHud/MangoHud.conf new file mode 100755 index 0000000..9d610e3 --- /dev/null +++ b/config/MangoHud/MangoHud.conf @@ -0,0 +1,72 @@ +################### File Generated by Goverlay ################### +legacy_layout=false + + +background_alpha=0.2 +round_corners=0 +background_alpha=0.2 +background_color=000000 + +font_size=22 +text_color=FFFFFF +position=top-left +toggle_hud=Shift_R+F12 +pci_dev=0:01:00.0 +table_columns=3 +gpu_text=GPU +gpu_stats +gpu_load_change +gpu_load_value=50,90 +gpu_load_color=FFFFFF,FFAA7F,CC0000 +throttling_status +gpu_temp +gpu_mem_temp +gpu_power +gpu_color=2E9762 +cpu_text=CPU +cpu_stats +core_bars +cpu_load_change +cpu_load_value=50,90 +cpu_load_color=FFFFFF,FFAA7F,CC0000 +cpu_mhz +cpu_temp +cpu_power +cpu_color=2E97CB +vram +vram_color=AD64C1 +vram_color=AD64C1 +ram +ram_color=C26693 +fps +gpu_name +vulkan_driver +frame_timing +frametime_color=FFFFFF +fps_limit_method=late +toggle_fps_limit=none + +fps_limit=0 +custom_text=- +exec=cat /home/whyoolw/.config/goverlay/distro +custom_text=- +exec=uname -r +fps_color_change +fps_color=B22222,FDFD09,39F900 +fps_value=30,60 +#offset=0 + + + + + +time# + + +output_folder=/home/whyoolw +log_duration=0 +autostart_log=0 +log_interval=0 +toggle_logging=none + +blacklist=pamac-manager,lact,ghb,bitwig-studio,ptyxis,yumex diff --git a/config/fastfetch/config.jsonc b/config/fastfetch/config.jsonc new file mode 100755 index 0000000..0ab9363 --- /dev/null +++ b/config/fastfetch/config.jsonc @@ -0,0 +1,123 @@ +{ + "$schema": "https://github.com/fastfetch-cli/fastfetch/raw/dev/doc/json_schema.json", + "logo": { + "type": "auto", + "source": "arch", + "height": 17, + "width": 30, + "padding": { + "top": 2, + "left": 3 + } + }, + "modules": [ + "break", + + { + "type": "custom", + "format": "\u001b[90m┌───────────────────────────────────────────┐" + + }, + { + "type": "host", + "key": "│  ", + "keyColor": "green", + "format": "{family}" + }, + { + "type": "cpu", + "key": "│ ├", + "keyColor": "green", + "format": "{name}" + }, + { + "type": "gpu", + "key": "│ ├󰍛", + "keyColor": "green", + "format": "{name}" + }, + { + "type": "memory", + "key": "│ ├󰍛", + "keyColor": "green" + }, + { + "type": "disk", + "key": "└ └", + "keyColor": "green" + }, + { + "type": "custom", + "format": "\u001b[90m└───────────────────────────────────────────┘" + }, + "break", + { + "type": "custom", + "format": "\u001b[90m┌───────────────────────────────────────────┐" + }, + { + "type": "os", + "key": "│  ", + "keyColor": "yellow", + "format": "{pretty-name}" + }, + { + "type": "kernel", + "key": "│ ├", + "keyColor": "yellow", + "format": "{release}" + }, + { + "type": "packages", + "key": "│ ├󰏖", + "keyColor": "yellow", + "format": "{pacman} pcmn {flatpak-system} fltpk" + }, + { + "type": "shell", + "key": "│ ├", + "keyColor": "yellow", + "format": "{pretty-name}" + }, +{ + "type": "custom", + "format": "│ │", + "outputColor": "magenta" + }, + { + "type": "de", + "key": " DE", + "keyColor": "blue", + "format": "{pretty-name}" + }, + + { + "type": "wm", + "key": "│ ├", + "keyColor": "blue", + "format": "{pretty-name}" + }, + { + "type": "terminal", + "key": "│ ├󰉼", + "keyColor": "blue", + "format": "{pretty-name}" + }, + { + "type": "uptime", + "key": "└ └", + "keyColor": "blue", + "format": "{hours} horse+{minutes} minets" + }, + { + "type": "custom", + "format": "\u001b[90m└───────────────────────────────────────────┘" + }, + { + "type": "colors", + "paddingLeft": 15, + "symbol": "circle" + } + + ] +} diff --git a/config/fuzzel/fuzzel.ini b/config/fuzzel/fuzzel.ini new file mode 100644 index 0000000..94c6a2e --- /dev/null +++ b/config/fuzzel/fuzzel.ini @@ -0,0 +1,9 @@ +dpi-aware=no +font=Liberation Mono:size=15 +terminal=kitty +width=21 +layer=overlay +icon-theme=Neuwaita +exit-on-keyboard-focus-loss=no +fields=name +include = ~/.cache/wal/colors-fuzzel.ini diff --git a/config/hypr out of date/bind.conf b/config/hypr out of date/bind.conf new file mode 100755 index 0000000..ea97927 --- /dev/null +++ b/config/hypr out of date/bind.conf @@ -0,0 +1,96 @@ +$mainMod = SUPER + +bind = $mainMod SHIFT, Q, killactive, +bind = $mainMod SHIFT, SPACE, togglefloating, +bind = $mainMod, RETURN, exec, kitty +bind = $mainMod SHIFT, RETURN, exec,[tile] kitty +bind = $mainMod, E, exec, kitty sh -c ranger +bind = $mainMod SHIFT, E, exec, nemo +bind = $mainMod, F, fullscreen + +bind = $mainMod, D, exec, rofi -show drun +bind = $mainMod, V, exec, rofi -modi clipboard:/home/whyoolw/cliphist/cliphist-rofi-img -show clipboard -show-icons +bind = $mainMod SHIFT, S, exec, hyprshot -m region -z -s && pkill hyprpicker +bind = $mainMod, C, exec, hyprpicker -a && -u critical -t 4000 "$(wl-paste)" +bind = $mainMod, P, exec, .config/rofi/powermenu/powermenu.sh +bind = $mainMod , W, exec, /home/whyoolw/.config/rofi/wallpaper/wallpaper.sh +bind = $mainMod, SPACE, exec, sh -c "if pactl list sources | grep -q 'Mute: yes'; then pactl set-source-mute @DEFAULT_SOURCE@ toggle && notify-send 'Micro ON'; else pactl set-source-mute @DEFAULT_SOURCE@ toggle && notify-send 'Micro OFF'; fi" +bind = $mainMod, S, exec, swaync-client -t -sw +bind = $mainMod SHIFT, R, exec, pkill waybar && hyprctl dispatch exec waybar + +binde = , XF86AudioRaiseVolume, exec, playerctl next +binde = , XF86AudioLowerVolume, exec, playerctl previous +binde = , XF86AudioMute, exec, playerctl play-pause +binde = , XF86MonBrightnessDown, exec, brightnessctl set 5%- +binde = , XF86MonBrightnessUp , exec, brightnessctl set +5% + +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 + +bind = $mainMod SHIFT, 1, movetoworkspace, 1 +bind = $mainMod SHIFT, 2, movetoworkspace, 2 +bind = $mainMod SHIFT, 3, movetoworkspace, 3 +bind = $mainMod SHIFT, 4, movetoworkspace, 4 +bind = $mainMod SHIFT, 5, movetoworkspace, 5 +bind = $mainMod SHIFT, 6, movetoworkspace, 6 +bind = $mainMod SHIFT, 7, movetoworkspace, 7 +bind = $mainMod SHIFT, 8, movetoworkspace, 8 +bind = $mainMod SHIFT, 9, movetoworkspace, 9 +bind = $mainMod SHIFT, 0, movetoworkspace, 10 + +bind = $mainMod, right, moveactive, 50 0 +bind = $mainMod, left, moveactive, -50 0 +bind = $mainMod, up, moveactive, 0 -50 +bind = $mainMod, down, moveactive, 0 50 + +bind = $mainMod SHIFT, right, resizeactive, 10 0 +bind = $mainMod SHIFT, left, resizeactive, -10 0 +bind = $mainMod SHIFT, up, resizeactive, 0 -10 +bind = $mainMod SHIFT, down, resizeactive, 0 10 + +bind = $mainMod , h, movewindow, l +bind = $mainMod , l, movewindow, r +bind = $mainMod , k, movewindow, u +bind = $mainMod , j, movewindow, d + +bind = $mainMod, mouse_down, workspace, e-1 +bind = $mainMod, mouse_up, workspace, e+1 +bind = $mainMod,Tab,workspace, e+1 +bind = $mainMod SHIFT ,Tab,workspace, e-1 +bindm = $mainMod, mouse:272, movewindow +bindm = $mainMod, mouse:273, resizewindow +bind = $mainMod CTRL, left, resizeactive,-50 0 +bind = $mainMod CTRL, right, resizeactive,50 0 +bind = $mainMod CTRL, up, resizeactive,0 -50 +bind = $mainMod CTRL, down, resizeactive,0 50 + +bind = $mainMod, A, togglespecialworkspace, as +bind = $mainMod SHIFT, A, movetoworkspace, special:as +bind = $mainMod, Z, togglespecialworkspace, zs +bind = $mainMod SHIFT, Z, movetoworkspace, special:zs +bind = $mainMod, X, togglespecialworkspace, xs +bind = $mainMod SHIFT, X, movetoworkspace, special:xs + +bind = $mainMod CTRL, A, movetoworkspace,e+0 +bind = $mainMod CTRL, X, movetoworkspace,e+0 +bind = $mainMod CTRL, Z, movetoworkspace,e+0 + +bind = ALT, Tab, cyclenext, +bind = ALT, Tab, bringactivetotop, +bind = ALT SHIFT, Tab, cyclenext, prev +bind = ALT SHIFT, Tab, bringactivetotop, +#bind = $mainMod, D, exec, rofi -show drun +bind = $mainMod, F12, exec, killall waybar || waybar + +bind = $mainMod, O, exec, hyprctl keyword '$LAPTOP_KB_ENABLED' "false" -r +bind = $mainMod Shift, O, exec, hyprctl keyword '$LAPTOP_KB_ENABLED' "true" -r + +bindl = $mainMod, Print, exec, diff --git a/config/hypr out of date/hyprland.conf b/config/hypr out of date/hyprland.conf new file mode 100755 index 0000000..2821aef --- /dev/null +++ b/config/hypr out of date/hyprland.conf @@ -0,0 +1,135 @@ +monitor=eDP-1, 1920x1080@60, 0x0, 1 , +monitor=HDMI-A-1, 1920x1080@60, 1920x0, 1 +exec-once = waybar +exec-once = swaync +exec-once = wl-paste --watch cliphist store +exec-once = /usr/lib/polkit-gnome/polkit-gnome-authentication-agent-1 +exec-once = swww-daemon +exec-once = kdeconnect-indicator +exec = hyprctl keyword '$LAPTOP_KB_ENABLED' "true" -r +exec-once = spotify +exec-once = [workspace special as silent; tile] kitty -e btop +exec-once = [workspace special as silent; tile] kitty -e watch -n 1 nvidia-smi +exec-once = pw-metadata -n settings 0 clock.force-quantum 1024 + +env = HYPRCURSOR_THEME,Bibata-Modern-Classic +env = HYPRCURSOR_SIZE,20 +env = XCURSOR_THEME, Bibata-Modern-Classic +env = XCURSOR_SIZE,20 +env = GTK_THEME,adw-gtk3-dark + +env = LIBVA_DRIVER_NAME,nvidia +env = XDG_SESSION_TYPE,wayland +env = GBM_BACKEND,nvidia-drm +env = __GLX_VENDOR_LIBRARY_NAME,nvidia +env = NVD_BACKEND,direct +#env = ELECTRON_OZONE_PLATFORM_HINT,auto + + +source = ./rule.conf +source = ./bind.conf + +#render:explicit_sync=0 + + +cursor { + no_hardware_cursors = true +} + +input { + kb_layout = us,ru + kb_options = grp:caps_toggle + follow_mouse = 1 +touchpad { + natural_scroll = no + + } + sensitivity = -0.9 +} + +device { + name = elan-trackpoint + sensitivity = -0.4 +} + + +general { + gaps_in = 5 + gaps_out = 10 + border_size = 1 + col.active_border = rgba(7a7a78ff) + col.inactive_border = rgba(333333ff) + layout = dwindle + hover_icon_on_border = false + resize_on_border = false + extend_border_grab_area = 0 +} + +decoration { + blur { + enabled = true + size = 4 + passes = 5 + new_optimizations = false + ignore_opacity = on + xray = false + brightness = 0.9 + ignore_opacity = true + } + rounding = 8 + # drop_shadow = yes + #shadow_range = 30 + #shadow_render_power = 4 + #col.shadow = rgba(00000080) + #dim_inactive = 1 + #dim_strength = 0.2 + shadow { + enabled = true + range = 30 + render_power = 4 + color = rgba(00000080) + } + } + +animations { + enabled = true + bezier = myBezier, 0.05, 0.9, 0.1, 1.00 + animation = windows, 1, 4, myBezier, popin 75% + animation = border, 1, 3, myBezier + animation = fade, 1, 3, myBezier + animation = workspaces, 1, 3, default, slidefade + first_launch_animation = true +} + +dwindle { + pseudotile = yes # + preserve_split = yes # + } + +gestures { + workspace_swipe = true + workspace_swipe_fingers = 3 + workspace_swipe_min_fingers = false + workspace_swipe_touch = false + workspace_swipe_forever = true + workspace_swipe_direction_lock = false + workspace_swipe_create_new = false + workspace_swipe_invert = true + #workspace_swipe_touch_invert = false + workspace_swipe_distance = 200 +} + +$LAPTOP_KB_ENABLED = false + device { + name = elan-touchpad + enabled = $LAPTOP_KB_ENABLED + sensitivity = -0.2 +} + +misc { + disable_hyprland_logo = false + focus_on_activate = false + force_default_wallpaper = -1 + middle_click_paste = false + render_ahead_safezone = 0 +} diff --git a/config/hypr out of date/hyprlock.conf b/config/hypr out of date/hyprlock.conf new file mode 100755 index 0000000..61a0262 --- /dev/null +++ b/config/hypr out of date/hyprlock.conf @@ -0,0 +1,130 @@ +background { + monitor = + path = /home/whyoolw/Pictures/wallpaper/0current.png + blur_passes = 2 + contrast = 1 + brightness = 0.6 + vibrancy = 0.2 + vibrancy_darkness = 0.2 +} + +# GENERAL +general { + no_fade_in = false + no_fade_out = false + hide_cursor = false + grace = 0 + disable_loading_bar = false +} + +# INPUT FIELD +input-field { + monitor = + size = 250, 60 + outline_thickness = 2 + dots_size = 0.2 # Scale of input-field height, 0.2 - 0.8 + dots_spacing = 0.35 # Scale of dots' absolute size, 0.0 - 1.0 + dots_center = true + outer_color = rgba(0, 0, 0, 0) + inner_color = rgba(0, 0, 0, 0.2) + font_color = rgb(209, 207, 207) + fade_on_empty = false + rounding = 32 + fail_color = rgba(191, 97, 106, 0.75) + check_color = rgba(235, 203, 139, 0.75) + placeholder_text = Input Password... + hide_input = false + position = 0, -400 + halign = center + valign = center +} + +# DATE +label { + monitor = + text = cmd[update:1000] echo "$(date +"%A, %B %d")" + color = rgba(209, 207, 207, 0.75) + font_size = 22 + font_family = JetBrains Mono + position = 0, 300 + halign = center + valign = center +} + +# TIME +label { + monitor = + text = cmd[update:1000] echo "$(date +"%-H:%M")" + color = rgba(209, 207, 207, 0.75) + font_size = 95 + font_family = JetBrains Mono Extrabold + position = 0, 200 + halign = center + valign = center +} + + + +# Profile Picture + image { + monitor = + size = 100 + border_size = 3 + rounding = 64 + border_color = rgb(133, 180, 234) + position = 0, -100 + halign = center + valign = center + } + + + +image { + monitor = + size = 256 # lesser side if not 1:1 ratio + rounding = 6 # negative values mean circle + border_size = 3 + border_color = rgb(133, 180, 234) + rotate = 0 # degrees, counter-clockwise + reload_time = 2 + reload_cmd = "$(/home/whyoolw/.config/hypr/scripts/art.sh)" + position = 0, -25 + halign = center + valign = center + opacity = 1 +} + +label { + monitor = + text = cmd[update:1000] echo "$(/home/whyoolw/.config/hypr/scripts/songdetail.sh --title)" + color = rgba(209, 207, 207, 0.75) + #color = rgba(255, 255, 255, 0.6) + font_size = 17 + font_family = Source Code Pro bold + position = 0, -200 + halign = center + valign = center +} + +label { + monitor = + text = cmd[update:1000] echo "$(/home/whyoolw/.config/hypr/scripts/songdetail.sh --artist)" + color = rgba(209, 207, 207, 0.75) + #color = rgba(255, 255, 255, 0.6) + font_size = 15 + font_family = Source Code Pro + position = 0, -230 + halign = center + valign = center +} + +label { + monitor = + text = cmd[update:1000] echo "$(/home/whyoolw/.config/hypr/scripts/input.sh)" + color = rgba(209, 207, 207, 0.75) + font_size = 14 + font_family = Source Code Pro bold + position = -50, -10 + halign = right + valign = top +} diff --git a/config/hypr out of date/rule.conf b/config/hypr out of date/rule.conf new file mode 100755 index 0000000..52c5a6a --- /dev/null +++ b/config/hypr out of date/rule.conf @@ -0,0 +1,43 @@ +windowrule = float, Rofi +windowrule = float, pavucontrol +windowrule = float, imv +windowrule = float, mpv +windowrule = float, veracrypt +windowrule = float, kitty +windowrule = float, nemo +windowrule = center, mpv +windowrule = pin, org.gnome.Calculator +windowrule = size 1536 864, mpv +windowrule = float, org.gnome.FileRoller +windowrule = float, file-roller +windowrule = size 1000 600, nemo +windowrule = size 1000 600, kitty + +windowrulev2 = noborder, class:^(firefox)$, title:^(Picture-in-Picture)$ +windowrulev2 = float, class:^(firefox)$, title:^(Picture-in-Picture)$ +windowrulev2 = pin, class:^(firefox)$, title:^(Picture-in-Picture)$ +windowrulev2 = size 600 341, class:^(firefox)$, title:^(Picture-in-Picture) +windowrulev2 = move 68% 2%, class:^(firefox)$, title:^(Picture-in-Picture) +windowrulev2 = float, class: PortProton +windowrule = workspace special:xs silent, Spotify + +layerrule = blur, waybar + +# windowrule = size 715 1020, org.telegram.desktop +# windowrule = move 1200 10, org.telegram.desktop +# windowrule = size 1165 1020, vesktop +# windowrule = move 20 10, vesktop +# windowrule = workspace 2 silent, org.telegram.desktop +# windowrule = workspace 2 silent, vesktop +# windowrule = workspace 6 silent, title: anime-cli +# windowrule = workspace special:x, waypaper-engine +# layerrule = blur, swaync-control-center +# layerrule = blur, swaync-notification-window +# layerrule = ignorezero, swaync-control-center +# layerrule = ignorezero, swaync-notification-window +# layerrule = ignorealpha 0.1, swaync-control-center +# layerrule = ignorealpha 0.1, swaync-notification-window + +workspace = special:as, gapsin:00, gapsout:70 +workspace = special:xs, gapsin:50, gapsout:70 + diff --git a/config/hypr out of date/scripts/art.sh b/config/hypr out of date/scripts/art.sh new file mode 100755 index 0000000..ec5d1ca --- /dev/null +++ b/config/hypr out of date/scripts/art.sh @@ -0,0 +1,19 @@ +#!/usr/bin/bash +url=$(playerctl metadata mpris:artUrl) +artist=$(playerctl metadata xesam:artist) +title=$(playerctl metadata xesam:title) +metadata=$(printf "$artist - $title") + +if [ $url == "No player found" ] +then + exit +elif [ -f /home/tdm/.cache/albumart/"$metadata".png ] +then + echo /home/tdm/.cache/albumart/"$metadata".png +else + curl -s $url -o /home/tdm/.cache/albumart/"$metadata" + magick /home/tdm/.cache/albumart/"$metadata" /home/tdm/.cache/albumart/"$metadata".png + rm /home/tdm/.cache/albumart/"$metadata" + echo /home/tdm/.cache/albumart/"$metadata".png +fi + diff --git a/config/hypr out of date/scripts/input.sh b/config/hypr out of date/scripts/input.sh new file mode 100755 index 0000000..e4083df --- /dev/null +++ b/config/hypr out of date/scripts/input.sh @@ -0,0 +1,9 @@ +input=$(ibus engine | grep BambooUs) + +if [ -n "$input" ] +then + echo "EN ⠀⠀" +else + echo "VN ⠀⠀" +fi + diff --git a/config/hypr out of date/scripts/reload.sh b/config/hypr out of date/scripts/reload.sh new file mode 100755 index 0000000..6b21d7e --- /dev/null +++ b/config/hypr out of date/scripts/reload.sh @@ -0,0 +1,5 @@ +killall waybar + +waybar & + +hyprctl reload diff --git a/config/hypr out of date/scripts/songdetail.sh b/config/hypr out of date/scripts/songdetail.sh new file mode 100755 index 0000000..d82f05f --- /dev/null +++ b/config/hypr out of date/scripts/songdetail.sh @@ -0,0 +1,13 @@ +#!/bin/bash + +artist=$(playerctl metadata xesam:artist) +title=$(playerctl metadata xesam:title) + +case "$1" in +--title) + echo $title + ;; +--artist) + echo $artist + ;; +esac diff --git a/config/hypr out of date/scripts/toggle.sh b/config/hypr out of date/scripts/toggle.sh new file mode 100755 index 0000000..1e71604 --- /dev/null +++ b/config/hypr out of date/scripts/toggle.sh @@ -0,0 +1,9 @@ +#!/bin/bash + +# Переключение значения параметра +if hyprctl keyword '$LAPTOP_KB_ENABLED' | grep -q 'true'; then + hyprctl keyword '$LAPTOP_KB_ENABLED' "false" -r +else + hyprctl keyword '$LAPTOP_KB_ENABLED' "true" -r +fi + diff --git a/config/kitty/kitty.conf b/config/kitty/kitty.conf new file mode 100755 index 0000000..4de46c0 --- /dev/null +++ b/config/kitty/kitty.conf @@ -0,0 +1,17 @@ +font_family family="Liberation Mono" +# bold_font auto +# italic_font auto +# bold_italic_font auto +font_size 10 + +editor nvim +background_opacity 1 +window_margin_width 15 +hide_window_decorations yes + +cursor_trail 3 + +active_tab_font_style bold +inactive_tab_font_style normal + +include /home/whyoolw/.cache/wal/colors-kitty.conf \ No newline at end of file diff --git a/config/niri/config.kdl b/config/niri/config.kdl new file mode 100755 index 0000000..8bb0c20 --- /dev/null +++ b/config/niri/config.kdl @@ -0,0 +1,354 @@ +spawn-at-startup "waybar" +spawn-at-startup "xwayland-satellite" +spawn-at-startup "swww-daemon" +spawn-at-startup "Pipewire" +spawn-at-startup "swaync" +spawn-at-startup "clipse" "-listen" +spawn-at-startup "clipse -listen" +spawn-at-startup "/usr/lib/polkit-gnome/polkit-gnome-authentication-agent-1" +spawn-at-startup "kdeconnect-indicator" + +binds { + Mod+E { spawn "kitty" "sh" "-c" "ranger"; } + Mod+Return { spawn "kitty"; } + Mod+Shift+D { spawn "rofi" "-show" "drun"; } + Mod+D { spawn "fuzzel"; } + Mod+V { spawn "kitty" "--class" "clipse" "-e" "clipse";} + Mod+Shift+C { spawn "hyprpicker" "-a" "$(wl-paste)"; } + Mod+P { spawn "/home/whyoolw/.config/niri/off.sh"; } + + Mod+MouseForward { focus-workspace 1 ; } + //Mod+MouseBack repeat=false { spawn "flameshot" "gui"; } + + XF86MonBrightnessUp { spawn "brightnessctl" "-q" "set" "2%+"; } + XF86MonBrightnessDown { spawn "brightnessctl" "-q" "set" "2%-"; } + XF86AudioPlay { spawn "playerctl" "play-pause"; } + XF86AudioNext { spawn "playerctl" "next"; } + XF86AudioPrev { spawn "playerctl" "previous"; } + XF86AudioMute { spawn "playerctl" "play-pause"; } + XF86AudioRaiseVolume { spawn "playerctl" "next"; } + XF86AudioLowerVolume { spawn "playerctl" "previous"; } + Mod+Space { spawn "wpctl" "set-mute" "@DEFAULT_AUDIO_SOURCE@" "toggle"; } + Mod+W { spawn "/home/whyoolw/.config/rofi/wallpaper/wallpaper.sh"; } + Mod+Shift+W { spawn "/home/whyoolw/Documents/test/bash.bash"; } + //Mod+A { toggle-column-tabbed-display; } + //Mod+Shift+A { focus-window-down; } + Mod+O { spawn "/home/whyoolw/.config/rofi/sc/sc.sh"; } + + Mod+Shift+space { toggle-window-floating; } + Mod+Shift+Q { close-window; } + + Mod+Left { focus-column-left; } + Mod+Down { focus-window-down; } + Mod+Up { focus-window-up; } + Mod+Right { focus-column-right; } + Mod+H { focus-column-left; } + Mod+J { focus-window-down; } + Mod+K { focus-window-up; } + Mod+L { focus-column-right; } + + Mod+X { toggle-overview; } + Mod+Shift+Left { move-column-left; } + Mod+Ctrl+Down { move-window-down; } + Mod+Ctrl+Up { move-window-up; } + Mod+Shift+Right { move-column-right; } + Mod+Ctrl+H { move-column-left; } + Mod+Ctrl+J { move-window-down; } + Mod+Ctrl+K { move-window-up; } + Mod+Ctrl+L { move-column-right; } + + Mod+Home { focus-column-first; } + Mod+End { focus-column-last; } + Mod+Ctrl+Home { move-column-to-first; } + Mod+Ctrl+End { move-column-to-last; } + +// Mod+Shift+Left { focus-monitor-left; } +// Mod+Shift+Down { focus-monitor-down; } +// Mod+Shift+Up { focus-monitor-up; } +// Mod+Shift+Right { focus-monitor-right; } + + Mod+Shift+Ctrl+Left { move-column-to-monitor-left; } + Mod+Shift+Ctrl+Down { move-column-to-monitor-down; } + Mod+Shift+Ctrl+Up { move-column-to-monitor-up; } + + Mod+Page_Down { focus-workspace-down; } + Mod+Page_Up { focus-workspace-up; } + Mod+Ctrl+Page_Down { move-column-to-workspace-down; } + Mod+Ctrl+Page_Up { move-column-to-workspace-up; } + + Mod+1 { focus-workspace 1; } + Mod+2 { focus-workspace 2; } + Mod+3 { focus-workspace 3; } + Mod+4 { focus-workspace 4; } + Mod+5 { focus-workspace 5; } + Mod+6 { focus-workspace 6; } + Mod+7 { focus-workspace 7; } + Mod+8 { focus-workspace 8; } + + Mod+Shift+1 { move-column-to-workspace 1; } + Mod+Shift+2 { move-column-to-workspace 2; } + Mod+Shift+3 { move-column-to-workspace 3; } + Mod+Shift+4 { move-column-to-workspace 4; } + Mod+Shift+5 { move-column-to-workspace 5; } + Mod+Shift+6 { move-column-to-workspace 6; } + Mod+Shift+7 { move-column-to-workspace 7; } + Mod+Shift+8 { move-column-to-workspace 8; } + + Mod+WheelScrollDown { focus-column-right; } + Mod+WheelScrollUp { focus-column-left; } + Mod+Shift+WheelScrollDown { move-column-right; } + Mod+Shift+WheelScrollUp { move-column-left; } + Mod+Tab { focus-workspace-previous; } + + Mod+R { switch-preset-column-width; } + Mod+Shift+F { maximize-column; } + Mod+F { fullscreen-window; } + Mod+C { center-column; } + Mod+Ctrl+C { center-visible-columns; } + Alt+Tab { focus-column-right; } + Alt+Shift+Tab { focus-column-left; } + + Mod+Minus { set-column-width "-10%"; } + Mod+Equal { set-column-width "+10%"; } + + Mod+Shift+Minus { set-window-height "-10%"; } + Mod+Shift+Equal { set-window-height "+10%"; } + + + Mod+Ctrl+S { spawn "flameshot" "gui"; } + Mod+Shift+S { screenshot; } + Alt+Print { screenshot-window; } + Mod+Shift+P { quit; } + } + screenshot-path "~/Pictures/Screenshot/%d-%m-%y %H-%M-%S.png" + +window-rule { + geometry-corner-radius 12 + clip-to-geometry true + } + +window-rule { + match app-id="swaync-notification-window" + open-focused false + } + +window-rule { + match app-id="zen" title="^Картинка в картинке$" + match title="^Picture-in-Picture$" + open-floating true + default-floating-position x=32 y=32 relative-to="top-right" + open-focused false + } + +window-rule { + match app-id="swaync-notification-window" + open-focused false + match is-focused=true + } + +window-rule{ + match app-id="zen$" + match app-id="discord" + match app-id="Spotify" + open-maximized true + } + +window-rule { + match app-id="org.gnome.Calculator" + default-column-width { fixed 4; } + default-window-height { fixed 4; } + open-floating true + } +window-rule { + match app-id="thinkfan-ui" + match app-id="org.kde.kdeconnect.daemon" + default-column-width { fixed 550; } + default-window-height { fixed 300; } + open-floating true + } + + +workspace "1" { + open-on-output "HDMI-A-1" + } +workspace "2" { + open-on-output "HDMI-A-1" + } +workspace "3" { + open-on-output "HDMI-A-1" + } +workspace "4" { + open-on-output "HDMI-A-1" + } +workspace "5" { + open-on-output "HDMI-A-1" + } + + +environment { + QT_STYLE_OVERRIDE "Adwaita-Dark" + DISPLAY ":0" + } + +layout { + gaps 8 + center-focused-column "on-overflow" + // empty-workspace-above-first + always-center-single-column + background-color "transparent" + + +default-column-width { + proportion 0.5 +} + + focus-ring { + off + } + + border { + width 1 + active-color "#C2C3C5" + inactive-color "#505050" + urgent-color "#9b0000" + + } + + preset-column-widths { + proportion 0.33333 + proportion 0.5 + proportion 0.66667 + } + + preset-window-heights { + proportion 0.33333 + proportion 0.5 + proportion 0.66667 + } + +} +input { + keyboard { + xkb { + layout "us,ru" + options "grp:caps_toggle" + } +} + +mouse { + accel-speed -0.4 + accel-profile "flat" +} +touchpad { + off + tap +} + + focus-follows-mouse max-scroll-amount="0%" +} + +cursor { + + //xcursor-theme "Bibata-Modern-Ice" + xcursor-theme "Orbian-Mint" + xcursor-size 18 +} + +output "HDMI-A-1" { + mode "1920x1080@75" + focus-at-startup + //scale 1 +} + +output "eDP-1" { + mode "1920x1080@60" + position x=0 y=0 + +} + +layer-rule { + match namespace="waybar" + match at-startup=true + + opacity 0.999999 +} +layer-rule { + match namespace="swww-daemon" + match namespace="mpvpaper" + place-within-backdrop true +} + +hotkey-overlay { + skip-at-startup +} + + +overview { + backdrop-color "#1f1f1f" + zoom 0.25 + workspace-shadow { + //off + } +} + +prefer-no-csd + +gestures { + hot-corners { + off + } +} +clipboard { + disable-primary +} + +debug { +// skip-cursor-only-updates-during-vrr + //render-drm-device "/dev/dri/renderD128" //nvidia only + //render-drm-device "/dev/dri/renderD129" //intel+nvidia + // wait-for-frame-completion-in-pipewire + +} + +animations { + slowdown 0.95 + + workspace-switch { + spring damping-ratio=1.15 stiffness=600 epsilon=0.0001 + } + + window-open { + duration-ms 150 + curve "ease-out-cubic" + } + + window-close { + duration-ms 150 + curve "ease-out-quad" + } + + horizontal-view-movement { + spring damping-ratio=1.0 stiffness=600 epsilon=0.0001 + } + + window-movement { + spring damping-ratio=1.15 stiffness=600 epsilon=0.0001 + } + + window-resize { + spring damping-ratio=1.15 stiffness=600 epsilon=0.0001 + } + + config-notification-open-close { + spring damping-ratio=0.85 stiffness=700 epsilon=0.001 + } + + screenshot-ui-open { + duration-ms 170 + curve "ease-out-cubic" + } + + overview-open-close { + spring damping-ratio=1.0 stiffness=800 epsilon=0.0001 + } +} diff --git a/config/niri/off.sh b/config/niri/off.sh new file mode 100644 index 0000000..a3fbe4d --- /dev/null +++ b/config/niri/off.sh @@ -0,0 +1,34 @@ +#!/bin/bash + +CONFIG_FILE="/home/whyoolw/.config/niri/config.kdl" +TMP_FILE="${CONFIG_FILE}.tmp" + +# Считываем текущий статус eDP-1 +EDP_BLOCK=$(awk '/output "eDP-1"[[:space:]]*\{/,/\}/' "$CONFIG_FILE") + +if echo "$EDP_BLOCK" | grep -q 'off'; then + # Включаем монитор: удаляем строку с "off" + awk ' + BEGIN {inside=0} + /output "eDP-1"[[:space:]]*\{/ {inside=1} + inside && /off/ {next} + inside && /\}/ {inside=0} + {print} + ' "$CONFIG_FILE" > "$TMP_FILE" && mv "$TMP_FILE" "$CONFIG_FILE" + echo "Монитор eDP-1 включен." +else + # Выключаем монитор: добавляем "off" после строки с открывающей скобкой + awk ' + BEGIN {inside=0} + /output "eDP-1"[[:space:]]*\{/ { + print + print " off" + inside=1 + next + } + inside && /\}/ {inside=0} + {print} + ' "$CONFIG_FILE" > "$TMP_FILE" && mv "$TMP_FILE" "$CONFIG_FILE" + echo "Монитор eDP-1 выключен." +fi + diff --git a/config/nvim/init.vim b/config/nvim/init.vim new file mode 100755 index 0000000..81d3479 --- /dev/null +++ b/config/nvim/init.vim @@ -0,0 +1,21 @@ +imap jk +vnoremap "+y +map "+p +set number +"set relativenumber +set nocompatible +set ignorecase +syntax on +set wildmode=longest,list +set ttyfast +set wildmode=longest,list +set autoindent +set smartindent + +call plug#begin() + +Plug 'AlphaTechnolog/pywal.nvim', { 'as': 'pywal' } + +call plug#end() + +colorscheme pywal \ No newline at end of file diff --git a/config/omf/bundle b/config/omf/bundle new file mode 100755 index 0000000..6cbace4 --- /dev/null +++ b/config/omf/bundle @@ -0,0 +1,7 @@ +theme agnoster +theme bira +theme default +theme eden +theme nai +theme ocean +theme toaster diff --git a/config/omf/channel b/config/omf/channel new file mode 100755 index 0000000..2bf5ad0 --- /dev/null +++ b/config/omf/channel @@ -0,0 +1 @@ +stable diff --git a/config/omf/theme b/config/omf/theme new file mode 100755 index 0000000..74bff97 --- /dev/null +++ b/config/omf/theme @@ -0,0 +1 @@ +bira diff --git a/config/swaync/config.json b/config/swaync/config.json new file mode 100755 index 0000000..a9d6503 --- /dev/null +++ b/config/swaync/config.json @@ -0,0 +1,48 @@ +{ + "control-center-height": 420, + "notification-limit": 2, + "control-center-layer": "overlay", + "control-center-margin-top": 0, + "control-center-margin-left": 0, + "control-center-margin-right": 0, + "control-center-margin-top": 0, + "control-center-width": 400, + "control-center-positionX": "left", + "control-center-positionY": "top", + "fit-to-screen": false, + "hide-on-action": false, + "image-visibility": "when-available", + "keyboard-shortcuts": true, + "notification-icon-size": 24, + "notification-inline-replies": false, + //"notification-visibility": {}, + "notification-window-width": 400, + "notification-margin-bottom": 100, + "notification-margin-left": 0, + "control-center-margin-right": 0, + "control-center-margin-top": 0, + + "positionX": "left", + "positionY": "bottom", + "timeout": 6, + "timeout-critical": 0, + "timeout-low": 5, + "transition-time": 200, + "widget-config": { + + "mpris": { + "image-radius": 24, + "image-size": 64, + "blacklist": ["playerctld"] + }, + + "title": { + "text": "Notifications", + "button-text": "Clear", + "clear-all-button": true + } + }, + "widgets": ["dnd", "title", "notifications", "mpris"] + + +} diff --git a/config/swaync/style.css b/config/swaync/style.css new file mode 100755 index 0000000..33b689d --- /dev/null +++ b/config/swaync/style.css @@ -0,0 +1,226 @@ +@import "/home/whyoolw/.cache/wal/colors-waybar.css"; + +@define-color noti-border-color @color2; +@define-color noti-close-bg @color10; +@define-color noti-close-bg-hover @color13; +@define-color noti-bg-hover @color5; +@define-color noti-bg-focus @color3; +@define-color noti-urgent #BF616A; + +@define-color bg-selected rgb(0, 128, 255); + +* { + color: @foreground; + font-family: Liga SFMono Nerd Font; +} + +.notification-row { + outline: none; +} + +.notification-row:focus, +.notification-row:hover { +} + +.notification { + background-color: @background; + border: 5px solid @color0; + border-radius: 1em; + margin: 6px 12px; + box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.3), + 0 1px 3px 1px rgba(0, 0, 0, 0.7), 0 2px 6px 2px rgba(0, 0, 0, 0.3); +} + +.critical { + background: @noti-urgent; + padding: 2px; +} + +.notification-content { + padding: 6px; +} + +.close-button { + background: @noti-close-bg; + color: white; + text-shadow: none; + padding: 0; + border-radius: 1em; + margin-top: 10px; + margin-right: 16px; + box-shadow: none; + border: none; + min-width: 24px; + min-height: 24px; +} + +.close-button:hover { + box-shadow: none; + background: @noti-close-bg-hover; + transition: all 0.15s ease-in-out; + border: none; +} + +.notification-default-action, +.notification-action { + padding: 4px; + margin: 0; + box-shadow: none; + background: @color0; + border: none; + color: white; +} + +.notification-default-action:hover, +.notification-action:hover { + -gtk-icon-effect: none; + background: @noti-bg-hover; +} + +.notification-default-action { + border-radius: 12px; +} + +/* When alternative actions are visible */ +.notification-default-action:not(:only-child) { + border-bottom-left-radius: 0px; + border-bottom-right-radius: 0px; +} + +.notification-action { + border-radius: 0px; + border-top: none; + border-right: none; +} + +/* add bottom border radius to eliminate clipping */ +.notification-action:first-child { + border-bottom-left-radius: 10px; +} + +.notification-action:last-child { + border-bottom-right-radius: 10px; + border-right: 1px solid @noti-border-color; +} + +.image { +} + +.body-image { + margin-top: 6px; + background-color: white; + border-radius: 12px; +} + +/* notification setting */ +.summary { + font-weight: bold; + background: transparent; + color: white; + text-shadow: none; +} + +.time { + font-weight: bold; + background: transparent; + color: white; + text-shadow: none; + margin-right: 18px; +} + +.body { + font-weight: normal; + background: transparent; + color: white; + text-shadow: none; +} + +/* The "Notifications" and "Do Not Disturb" text widget */ +.top-action-title { + color: white; + text-shadow: none; +} + +.control-center { + background-color: @background; + border: 5px solid @color1; + border-radius: 1em; +} + +.control-center-list { + background: @background; +} + +.floating-notifications { + background: transparent; +} + +/* Window behind control center and on all other monitors */ +.blank-window { + background: transparent; +} + +/*** Widgets ***/ + +/* Title widget */ +.widget-title { + margin: 8px; + font-weight: bold; +} + +.widget-title > button { + color: white; + background: @color0; + border: 3px solid @color0; + border-radius: 12px; +} + +.widget-title > button:hover { + background: @noti-bg-hover; +} + +/* DND widget */ +.widget-dnd { + margin: 8px; +} + +.widget-dnd > switch { + border-radius: 12px; + background: @color0; + border: 5px solid @color13; + box-shadow: none; +} + +.widget-dnd > switch:checked { + background: @color13; +} + +.widget-dnd > switch slider { + background: @noti-bg-hover; + border-radius: 12px; +} + +/* Mpris widget */ +.widget-mpris { + /* The parent to all players */ +} + +.widget-mpris-player { + padding: 8px; + margin: 8px; +} + +.widget-mpris-title { + font-weight: bold; +} + +/* Volume and Brightness Widget */ +.widget-volume { + background-color: transparent; + padding: 4px 8px 8px 8px; + margin: 0px 8px 8px 8px; + border-bottom-left-radius: 12px; + border-bottom-right-radius: 12px; +} + + diff --git a/config/waybar/config.jsonc b/config/waybar/config.jsonc new file mode 100755 index 0000000..def3f90 --- /dev/null +++ b/config/waybar/config.jsonc @@ -0,0 +1,181 @@ +// -*- mode: jsonc -*- +{ + "width": 1400, + "height": 25, + "layer": "top", + "position": "top", + "exclusive": true, + "passthrough": false, + "margin-top": 6, + "spacing": 8, + "fixed-center": true, + "reload_style_on_change": true, + "modules-left": [ + "custom/notifications", + "custom/sep", + "tray", + "custom/sep", + "niri/language", + "niri/window", "cava" ], + "modules-center": [ + "clock" + ], + "modules-right": [ + "cava","privacy", "custom/sep", + "pulseaudio","custom/sep", + "backlight","custom/sep", + "battery","custom/sep", + "network", + + ], + /*"custom/sep": { + "format": "|", + "tooltip": false, + },*/ +"niri/window": { + "format": "{app_id}", + "icon": true, + "icon-size": 14, + "seperate-outputs": false, +"rewrite": { + "io.github.kukuruzka165.materialgram": "materialgram", + "com.obsproject.Studio": "obs", + "com.github.th_ch.youtube_music": "ytm", +}, + }, + +"cava": { + "framerate": 60, + "autosens": 1, + "bars": 8, + "lower_cutoff_freq": 50, + "higher_cutoff_freq": 10000, + "method": "pulse", + "source": "auto", + "stereo": true, + "bar_delimiter": 0, + "noise_reduction": 0.30, + "input_delay": 0, + "format-icons" : ["", "▁", "▂", "▃", "▄", "▅", "▆", "▇", "█" ], + }, + +"niri/workspaces": { + "disable-scroll": false, + "show-special": false, + "format": "{icon}", + "format-icons": { + "active": "1", + "default": "0" + }, +}, + "privacy": { + "icon-spacing": 10, + "icon-size": 12, + "transition-duration": 250, + "modules": [ + { + "type": "screenshare", + "tooltip": true, + "tooltip-icon-size": 24 + }, + { + "type": "audio-in", + "tooltip": true, + "tooltip-icon-size": 24 + } + ], + "ignore-monitor": true, + "ignore": [ + { + //"type": "screenshare", + //"name": "obs" + + "type": "audio-in", + "name": "cava" + } + ] + }, + "network": { + "format-wifi": "󰤯", + "format-ethernet": "󰈀", + "format-linked": "󰈀", + "format-disconnected": "󰤮", + "on-click": "python ~/.config/rofi/network/network.py", + "on-click-right": "/mnt/bine4/scripts/wallpaperkonachan.bash", + }, + + + "custom/notifications": { + "tooltip": false, + "format": "{icon}", + "format-icons": { + "notification": "", + "none": "", + "dnd-notification":"", + "dnd-none": "", + }, + "return-type": "json", + "exec-if": "which swaync-client", + "exec": "swaync-client -swb", + "on-click": "swaync-client -t -sw", + "on-click-right": "swaync-client -d -sw", + "escape": true + }, + "tray": { + "icon-size": 14, + "spacing": 5, + }, + + "clock": { + "format": "{:%H:%M:%S  %d.%m.%y}", + "tooltip-format": "{:%OI:%M:%S}", + "timezone": "Europe/Riga", + "interval": 1, + "tooltip": "false", + // "format-alt": "{:%d.%m.%y}", + "on-click-right": "bash ~/.config/rofi/calendar/calendar.sh" + + }, + + + "pulseaudio": { + "format": "{volume} {format_source}", + "format-muted": "MUTE", + "format-source": "1", + "format-source-muted": "0", + "format-icons": { + "default": ["1", "2", "3"]}, + "on-click": "pavucontrol", + "tooltip-format": "{volume}%" + }, + + + "niri/language": { + "format": "{}", + "format-en": "󰑂 ", + "format-ru": "󰑀 " + }, + "battery": { + "interval": 5, + "states": { + "warning": 40, + "critical": 20, + }, + "format": "{capacity}", + "format-icons": ["0", "1", "2", "3", "4"], + "format-time": "{H}h {M}m", + "tooltip-format": "{capacity} {power}w {time}", + "tooltip-format-charging": "{capacity}% (charging) {time}", +}, + + + "backlight": { + "device": "intel_backlight", +"format": "{percent}", + "format-icons": ["1","2","3"], + "on-scroll-up": "brightnessctl s 1%+", + "on-scroll-down": "brightnessctl s 1%-", + "on-click-right": "brightnessctl s 0" +}, + +} diff --git a/config/waybar/style.css b/config/waybar/style.css new file mode 100755 index 0000000..dbf68cb --- /dev/null +++ b/config/waybar/style.css @@ -0,0 +1,115 @@ +* { + font-family: Google Sans; + font-weight: bold; + border-radius: 12; + font-size: 14px; +} + +window#waybar { + background-color: @background; + transition-property: background-color; + transition-duration: .5s; +} + +@import "/home/whyoolw/.cache/wal/colors-waybar.css"; + +#workspaces { + font-size: 11pt; + padding: 0 0 0 0; + margin: 0 0 0 0; +} + +#workspaces button { + border-radius: 16px; + color: @color11; + background-color: @color4; + transition: all 0.8s ease-in-out; + padding: 0 0 0 0; + margin: 0 0 0 0; + +} + +#workspaces button:hover { + background-color: @color2; + color: @color2; + border-radius: 4; + transition: all 0.3s ease-in-out; + padding: 0 0 0 0; + margin: 0 0 0 0; + +} + +#workspaces button.active { + background-color: @color2; + padding: 0px 10px 0 10; + border-radius: 16px; + transition: all .4s ease-in-out; + +} + +#window{ + background: @background; + color: @color6; + padding: 0 2 0 2; + margin: 0 0 0 0; +} +#tray { + background: @background; + color: @color9; + padding: 0 2 0 2; + margin: 0 0 0 0; + +} +#battery { + background: @background; + color: @color6; + padding: 0 0 0 0; +} + +#network { + background: @background; + color: @color6; + padding: 0 8 0 0; +} + +#custom-notifications { + color: @color2; + margin: 0 2 0 8; +} + + + +#pulseaudio { + background: @background; + color: @color6; + margin: 0 0 0 0; + +} + +#clock, #cava { + background: @background; + color: @color6; + font-size: 16px; +} + +#language { + background: @background; + color: @color6; +} +#backlight { + background: @background; + color: @color6; + margin: 0 0 0 0; + +} + +#privacy{ + background: @background; + color: @color6; + margin: 2 4 0 1; +} + +#custom-sep { + background: @background; + color: @color6; +}