diff --git a/cava/config b/cava/config index 5a2f798..2bc0d06 100644 --- a/cava/config +++ b/cava/config @@ -23,7 +23,7 @@ framerate = 45 # The number of bars (0-512). 0 sets it to auto (fill up console). # Bars' width and space between bars in number of characters. ; bars = 0 -; bar_width = 2 +bar_width = 1 ; bar_spacing = 1 # bar_height is only used for output in "noritake" format ; bar_height = 32 diff --git a/copyq/copyq.conf b/copyq/copyq.conf index 0f5aeb9..70e7bec 100644 --- a/copyq/copyq.conf +++ b/copyq/copyq.conf @@ -9,11 +9,11 @@ activate_pastes=true always_on_top=false autocompletion=true autostart=false -check_clipboard=true +check_clipboard=false check_selection=false clipboard_notification_lines=0 clipboard_tab=&clipboard -close_on_unfocus=true +close_on_unfocus=false close_on_unfocus_delay_ms=500 command_history_size=100 confirm_exit=true @@ -25,6 +25,7 @@ editor=gedit --standalone -- %1 expire_tab=0 filter_case_insensitive=true filter_regular_expression=false +frameless_window=false hide_main_window=true hide_main_window_in_task_bar=false hide_tabs=false @@ -47,6 +48,7 @@ notification_position=3 notification_vertical_offset=10 number_search=false open_windows_on_current_screen=true +prevent_screen_cature=true restore_geometry=true row_index_from_one=true run_selection=true diff --git a/eww/eww.yuck b/eww/eww.yuck new file mode 100644 index 0000000..247fd75 --- /dev/null +++ b/eww/eww.yuck @@ -0,0 +1,22 @@ +(defwindow example + :monitor 0 + :geometry (geometry :x "0%" + :y "20px" + :width "90%" + :height "30px" + :anchor "top center") + :stacking "bottom" + :exclusive false + :focusable false + :namespace "eww-menu" + (defwindow example + ; ... values omitted + (greeter :text "Say hello!" + :name "Tim")) +) +(defwidget greeter [?text name] + (box :orientation "horizontal" + :halign "center" + text + (button :onclick "notify-send 'Hello' 'Hello, ${name}'" + "Greet"))) diff --git a/hypr/hyprland.conf b/hypr/hyprland.conf index 5c8b501..b95c6de 100644 --- a/hypr/hyprland.conf +++ b/hypr/hyprland.conf @@ -23,6 +23,7 @@ $powermodemenu = $HOME/.config/rofi/scripts/dmenu_powermodemenu.sh $browser = env GTK_THEME=Adwaita:light zen-browser $privateBrowser = env GTK_THEME=Adwaita:light zen-browser --private-window $notificationCenter = pkill rofi & swaync-client -t -sw || notify-send --hint int:transient:1 "Error SwayNC is down" +$waybar = GTK_THEME="Simply_Circles_Dark" waybar ################# ### AUTOSTART ### @@ -38,22 +39,23 @@ exec-once = gsettings set org.gnome.desktop.interface color-scheme "prefer-dark" # exec-once = hyprpaper exec-once = swww-daemon exec-once = ~/.config/hypr/scripts/autofreeze_swww.sh -exec-once = waybar & hypridle & hyprsunset & +exec-once = $waybar +exec-once = swaync +exec-once = hypridle +exec-once = hyprsunset exec-once = eww daemon exec-once = mullvad-vpn -exec-once = swaync exec-once = ~/.config/hypr/scripts/random_wallpaper.sh exec-once = ~/.config/hypr/scripts/autofreezer.sh exec-once = ~/.config/fastfetch/scripts/fetch_update_count.sh exec-once = copyq --start-server -exec-once = /usr/lib/polkit-gnome/polkit-gnome-authentication-agent-1 & +exec-once = /usr/lib/polkit-gnome/polkit-gnome-authentication-agent-1 exec-once = thunar --daemon exec-once = touch /tmp/toggle_ssocks exec-once = ~/.config/hypr/scripts/toggle_proxy.sh exec-once = nextcloud --background & -exec-once = [workspace 8 silent] Telegram +exec-once = [workspace 8 silent] AyuGram # exec-once = [workspace 7 silent] superproductivity -# exec-once = $terminal # exec-once = nm-applet & # exec-once = waybar & hyprpaper & firefox @@ -338,7 +340,7 @@ bind = $mainMod, N, exec, $notificationCenter bind = $mainMod SHIFT, Return, exec, [float; size 800 600; move center] $fastTerminal --class kitty-float # Open bluetooth -bind = $mainMod, F3, exec, [float; size 600 400; move center] $fastTerminal --class kitty-float bluetuith +bind = $mainMod, F3, exec, [float; size 600 400; move center] $fastTerminal --class kitty-float bluetui # Open alsamixer bind = $mainMod, F2, exec, [float; size 600 400; move center] $fastTerminal --class kitty-float alsamixer -V all @@ -409,7 +411,7 @@ bind = $mainMod SHIFT, minus, movetoworkspacesilent, 11 bind = $mainMod SHIFT, equal, movetoworkspacesilent, 12 # Cycle monitors -# bind = $mainMod SHIFT, U, swapactiveworkspaces, eDP-1 HDMI-A-1 +bind = $mainMod CTRL, U, swapactiveworkspaces, eDP-1 HDMI-A-1 bind = $mainMod, O, focusmonitor, +1 # Example special workspace (scratchpad) @@ -519,11 +521,8 @@ bind = $mainMod SHIFT, G, exec, ~/.config/hypr/scripts/gamemode.sh # Enable reserved space bind = $mainMod, B, exec, ~/.config/hypr/scripts/reserved_space.sh -# Cycle cpu frequency mode -bind = $mainMod CTRL, C, exec, ~/.config/hypr/scripts/cpufreq.sh - -# Cycle power mode -bind = $mainMod CTRL, V, exec, pkill rofi || $powermodemenu & +# Powermode and CPU frequency menu +bind = $mainMod CTRL, C, exec, pkill rofi || $powermodemenu & # Pin window bind = $mainMod CTRL, Y, pin, active @@ -560,7 +559,7 @@ bindr = , F8, sendshortcut, CTRL SHIFT, F8, class:^(vesktop)$ # Telegram PTT binde = $mainMod CTRL, F9, tagwindow, voicechatuz -bindr = , F9, sendshortcut, , F9, class:TelegramDesktop +bindr = , F9, sendshortcut, , F9, class:com.ayugram.desktop windowrule = bordercolor rgba(ffff00ff) rgba(ffff0055),tag:voicechatuz # Zen - focus searchbar @@ -580,6 +579,21 @@ submap = clean bind = $mainMod, Escape, submap, reset submap = reset +# Easymove submap +bind = $mainMod SHIFT, Space, submap, ezmv +submap = ezmv +bind = , h, sendshortcut, , Left, activewindow +bind = , j, sendshortcut, , Down, activewindow +bind = , k, sendshortcut, , Up, activewindow +bind = , l, sendshortcut, , Right, activewindow +bind = , g, sendshortcut, , Home, activewindow +bind = SHIFT, g, sendshortcut, , End, activewindow +bind = $mainMod SHIFT, Space, submap, reset +bind = $mainMod, Tab, submap, reset + +bind = $mainMod, Escape, submap, reset +submap = reset + ############################## ### WINDOWS AND WORKSPACES ### ############################## @@ -592,6 +606,8 @@ windowrule = float,class:^(kitty-float)$ windowrule = size 600 400,class:^(kitty-float)$ windowrule = move center,class:^(kitty-float)$ +windowrule = workspace special:dungeon,class:org.freedesktop.Xwayland + # Zenity windowrule = float,class:^(zenity)$ @@ -599,8 +615,8 @@ windowrule = float,class:^(zenity)$ windowrule = workspace 7 silent,class:^(superProductivity)$ # Telegram -windowrule = workspace 8 silent,class:^(org.telegram.desktop)$ -windowrule = group set,class:^(org.telegram.desktop)$ +windowrule = workspace 8 silent,class:^(com.ayugram.desktop)$ +windowrule = group set,class:^(com.ayugram.desktop)$ # Vesktop windowrule = workspace 8 silent,class:^(vesktop)$ @@ -661,7 +677,7 @@ workspace = 9, gapsin:15, gapsout:40 ############### ### PLUGINS ### ############### -exec-once = hyprpm reload -n +# exec-once = hyprpm reload -n # # Easymotion # bind = SUPER, x, easymotion, action:hyprctl dispatch focuswindow address:{} diff --git a/hypr/hyprsunset.conf b/hypr/hyprsunset.conf new file mode 100644 index 0000000..49349a4 --- /dev/null +++ b/hypr/hyprsunset.conf @@ -0,0 +1,12 @@ +max-gamma = 150 + +profile { + time = 7:30 + identity = true +} + +profile { + time = 21:00 + gamma = 0.8 + temperature = 5000 +} diff --git a/hypr/privacy.conf b/hypr/privacy.conf index 9bb1ce5..713eaaa 100644 --- a/hypr/privacy.conf +++ b/hypr/privacy.conf @@ -1,6 +1,8 @@ windowrule = tag +privacy,class:^(org.telegram.desktop)$ +windowrule = tag +privacy,class:^(com.ayugram.desktop)$ windowrule = tag +privacy,class:^(Element)$ windowrule = tag +privacy,class:^(vesktop)$ +windowrule = tag +privacy,class:^(chat-simplex-desktop-MainKt)$ windowrule = tag +privacy,class:^(com.github.hluk.copyq)$ windowrule = tag +privacy,class:^(org.keepassxc.KeePassXC)$ windowrule = tag +privacy,class:^(otpclient)$ diff --git a/hypr/scripts/muza.sh b/hypr/scripts/muza.sh index e75dfa2..f0a2494 100755 --- a/hypr/scripts/muza.sh +++ b/hypr/scripts/muza.sh @@ -8,13 +8,11 @@ if [ $arg != "ncmpcpp" ] && [ $arg != "rmpc" ]; then exit 1 fi -kitty --single-instance btop & -sleep 0.1 -kitty --single-instance cava & -sleep 0.1 +kitty --single-instance btop +kitty --single-instance cava +sleep 0.2 hyprctl dispatch resizeactive 0 250 -sleep 0.1 hyprctl dispatch resizeactive -90 0 hyprctl dispatch movefocus l diff --git a/hypr/scripts/toggle_proxy.sh b/hypr/scripts/toggle_proxy.sh index 32ad8b1..2bd1270 100755 --- a/hypr/scripts/toggle_proxy.sh +++ b/hypr/scripts/toggle_proxy.sh @@ -2,16 +2,22 @@ TOGGLE_FILE="/tmp/toggle_ssocks" +kill_process() { + local process_name="$1" + killall "$process_name" 2>/dev/null + sleep 0.25 + killall -9 "$process_name" 2>/dev/null 2>&1 +} + +kill_process sslocal +kill_process spoof-dpi + if [ -f "$TOGGLE_FILE" ]; then echo "Enabling spoofdpi" - killall sslocal - http_proxy="" spoof-dpi -addr 127.0.0.1 -port 1080 & + http_proxy="" spoof-dpi -addr 127.0.0.1 -port 1080 >/dev/null 2>&1 & rm "$TOGGLE_FILE" - else echo "Enabling shadowsocks" - killall spoof-dpi - http_proxy="" sslocal -c /etc/shadowsocks-rust/mega.json & + http_proxy="" sslocal -c /etc/shadowsocks-rust/mega.json >/dev/null 2>&1 & touch "$TOGGLE_FILE" - fi diff --git a/rmpc/config.ron b/rmpc/config.ron index b721302..c42be12 100644 --- a/rmpc/config.ron +++ b/rmpc/config.ron @@ -117,8 +117,8 @@ pane: Split( direction: Vertical, panes: [ - (size: "60%", pane: Pane(Queue)), - (size: "40%", pane: Pane(Cava)), + (size: "72%", pane: Pane(Queue)), + (size: "28%", pane: Pane(Cava)), ], ), ), diff --git a/rmpc/themes/kolinux.ron b/rmpc/themes/kolinux.ron index e6569af..55f0c1c 100644 --- a/rmpc/themes/kolinux.ron +++ b/rmpc/themes/kolinux.ron @@ -2,7 +2,7 @@ #![enable(unwrap_newtypes)] #![enable(unwrap_variant_newtypes)] ( - default_album_art_path: "/home/greg/Pictures/Fetch/atheism_paint.png", + default_album_art_path: "/home/greg/Pictures/Fetch/levi.jpg", show_song_table_header: false, draw_borders: true, format_tag_separator: " | ", @@ -16,7 +16,7 @@ preview_metadata_group_style: (fg: "yellow", modifiers: "Bold"), tab_bar: ( enabled: true, - active_style: (fg: "black", bg: "blue", modifiers: "Bold"), + active_style: (fg: "white", bg: "blue", modifiers: "Bold"), inactive_style: (), ), highlighted_item_style: (fg: "blue", modifiers: "Bold"), @@ -41,7 +41,7 @@ trace: (fg: "magenta", bg: "black"), ), progress_bar: ( - symbols: ["🬋", "󰃚 ", "⠔"], + symbols: ["🬋", " ", "⠔"], track_style: (fg: "blue"), elapsed_style: (fg: "blue"), thumb_style: (fg: "blue"), @@ -59,7 +59,7 @@ default: (kind: Text(""), style: (fg: "yellow")), style: (fg: "yellow"), ), - width: "25%", + width: "20%", ), ( prop: (kind: Property(Title), @@ -74,7 +74,7 @@ default: (kind: Text("-")), style: (fg: "magenta"), ), - width: "5%", + width: "10%", alignment: Right, ), ], @@ -131,6 +131,10 @@ ] ), ), + ( + size: "3", + pane: Pane(Tabs), // Changed from TabBar to Tabs + ), ( size: "100%", pane: Pane(TabContent), diff --git a/rofi/launchers/type-1/style-7.rasi b/rofi/launchers/type-1/style-7.rasi index 923bbcb..1d4c146 100644 --- a/rofi/launchers/type-1/style-7.rasi +++ b/rofi/launchers/type-1/style-7.rasi @@ -222,3 +222,10 @@ error-message { background-color: @background; text-color: @foreground; } + +configuration { + kb-mode-next: "Shift+Right,Control+Tab,L"; + kb-mode-previous: "Shift+Left,H"; + kb-page-prev: "K"; + kb-page-next: "J"; +} diff --git a/rofi/scripts/dmenu_powermodemenu.sh b/rofi/scripts/dmenu_powermodemenu.sh index a168472..acb709d 100755 --- a/rofi/scripts/dmenu_powermodemenu.sh +++ b/rofi/scripts/dmenu_powermodemenu.sh @@ -1,6 +1,6 @@ #!/bin/sh -mode=$(echo -e "\n󰾅\n󰓅" | rofi \ +mode=$(echo -e "\n400\n2000\n󰾅\n700\n3000\n󰈸\n1000\n4200" | rofi \ -modes drun,run,calc \ -dmenu -p "Power menu" \ -theme "$HOME/.config/rofi/styles/style-powermodemenu.rasi" \ @@ -8,15 +8,36 @@ mode=$(echo -e "\n󰾅\n󰓅" | rofi \ -drun-use-desktop-cache \ ) +cpupowerset="sudo cpupower frequency-set --max" +powerprofileset="powerprofilesctl set" + case "$mode" in "") - powerprofilesctl set power-saver + $powerprofileset power-saver ;; "󰾅") - powerprofilesctl set balanced + $powerprofileset balanced ;; - "󰓅") - powerprofilesctl set performance + "󰈸") + $powerprofileset performance + ;; + "400") + $cpupowerset "400MHz" + ;; + "700") + $cpupowerset "700MHz" + ;; + "1000") + $cpupowerset "1000MHz" + ;; + "2000") + $cpupowerset "2000MHz" + ;; + "3000") + $cpupowerset "3000MHz" + ;; + "4200") + $cpupowerset "4200MHz" ;; *) exit 0 diff --git a/rofi/styles/style-powermenu.rasi b/rofi/styles/style-powermenu.rasi index 01fe44b..98139bd 100644 --- a/rofi/styles/style-powermenu.rasi +++ b/rofi/styles/style-powermenu.rasi @@ -98,3 +98,10 @@ element-text, element-icon { background-color: transparent; text-color: inherit; } + +configuration { + kb-row-left: "h,H"; + kb-row-right: "l,L"; + kb-row-down: "j,J"; + kb-row-up: "k,K"; +} diff --git a/rofi/styles/style-powermodemenu.rasi b/rofi/styles/style-powermodemenu.rasi index 7028e7e..2cda70d 100644 --- a/rofi/styles/style-powermodemenu.rasi +++ b/rofi/styles/style-powermodemenu.rasi @@ -21,7 +21,7 @@ window { anchor: center; location: center; width: 1000px; - height: 250px; + height: 556px; padding: 6px; children: [ mainbox ]; border: 1px; @@ -39,12 +39,12 @@ mainbox { listview { enabled: true; - columns: 1; + columns: 3; lines: 3; cycle: true; dynamic: true; scrollbar: false; - layout: horizontal; + layout: vertical; reverse: false; fixed-height: true; fixed-columns: true; @@ -60,7 +60,7 @@ listview { element { enabled: true; spacing: 15px; - width: calc(100% / 3 - 12); + width: calc(100% / 3); padding: 8px; border-radius: 10px; text-color: @foreground; @@ -80,7 +80,7 @@ element selected.normal { element-text { vertical-align: 0.5; horizontal-align: 0.5; - padding: 80; + padding: 50; } prompt { @@ -99,3 +99,10 @@ element-text, element-icon { background-color: transparent; text-color: inherit; } + +configuration { + kb-row-left: "h,H"; + kb-row-down: "j,J"; + kb-row-up: "k,K"; + kb-row-right: "l,L"; +} diff --git a/rofi/styles/style-recorder.rasi b/rofi/styles/style-recorder.rasi index cd20490..8a6a076 100644 --- a/rofi/styles/style-recorder.rasi +++ b/rofi/styles/style-recorder.rasi @@ -126,3 +126,10 @@ element-text, element-icon { background-color: transparent; text-color: inherit; } + +configuration { + kb-row-left: "h,H"; + kb-row-down: "j,J"; + kb-row-up: "k,K"; + kb-row-right: "l,L"; +} diff --git a/swaync/style.css b/swaync/style.css index 862d7ad..2d12fc1 100644 --- a/swaync/style.css +++ b/swaync/style.css @@ -7,7 +7,7 @@ --noti-bg-darker: rgb(38, 38, 38); --noti-bg-hover: rgb(56, 56, 56); --noti-bg-focus: transparent; - --noti-bg-selection: #9e2238dd; + --noti-bg-selection: #9e2238; --noti-close-bg: rgb(78, 78, 78); --noti-close-bg-hover: rgb(94, 94, 94); --text-color: #FFe8EE; @@ -18,7 +18,7 @@ --notification-group-icon-size: 32px; --button: #303030; --button-top: #505050; - --button-on-top: #CE5268dd; + --button-on-top: #CE5268; --button-off: #2e2d31; } @@ -28,8 +28,10 @@ } button { + background: none; background-color: var(--button-off); - border-top: 1px solid var(--button-top); + border-top: 1.5px solid var(--button-top); + border-radius: 15px; } button:hover { @@ -475,41 +477,31 @@ button:hover { font-family: "Iosevka Nerd Font Mono"; } +/* .widget-buttons-grid flowboxchild > button.toggle { */ +/* background-color: #000000; */ +/* } */ + +.widget-buttons-grid flowboxchild > * { + background-color: var(--button); + +} + +.widget-buttons-grid flowboxchild > * { + /* style given to the active toggle button */ + background-color: var(--button); + box-shadow: none; +} + .widget-buttons-grid flowboxchild > button.toggle:checked { /* style given to the active toggle button */ background-color: var(--noti-bg-selection); - border-top: 1px solid var(--button-on-top); + border-top: 1.5px solid var(--button-on-top); } .widget-buttons-grid flowboxchild > button.toggle:hover { /* style given to the active toggle button */ background-color: var(--bg-selected); -} - -/* Menubar widget */ -.widget-menubar { - /* The revealer buttons */ - /* .AnyName { Name defined in config after # - background-color: rgba(var(--noti-bg), 1.0); - padding: 8px; - margin: 8px; - border-radius: 12px; - } - - .AnyName>button { - background: transparent; - border: none; - } - - .AnyName>button:hover { - background-color: var(--noti-bg-hover); - } */ -} - -.widget-menubar > .menu-button-bar { - /* The left button container */ - /* The right button container */ - /* The left and right button container */ + border-top: 1.5px solid var(--button-on-top); } .widget-menubar > .menu-button-bar > .start { @@ -522,6 +514,7 @@ button:hover { .widget-menubar > .menu-button-bar > .widget-menubar-container button { border-radius: 12px; + padding: 0px 15px; margin: 0 4px; background-color: var(--noti-bg-selection); border-top: 1px solid var(--button-on-top); diff --git a/waybar/config.jsonc b/waybar/config.jsonc index a66eae4..a53e861 100644 --- a/waybar/config.jsonc +++ b/waybar/config.jsonc @@ -13,7 +13,8 @@ // Choose the order of the modules "modules-left": [ "hyprland/workspaces", - "custom/pomodoro" + "custom/pomodoro", + "custom/submap" // "custom/goal" ], "modules-center": [ @@ -244,6 +245,16 @@ ], "on-click": "pwvucontrol" }, + "custom/submap": { + "format": "{icon} {text}", + "max-length": 10, + "format-icons": { + "default": "󰥻" + }, + "interval": 1, + "exec": "state=$(hyprctl submap) && [[ $state != 'default' ]] && echo $state", + "on-click": "hyprctl dispatch submap reset" + }, "custom/media": { "format": "{icon} {text}", "return-type": "json", diff --git a/waybar/style.css b/waybar/style.css index a209a7f..583ca80 100644 --- a/waybar/style.css +++ b/waybar/style.css @@ -1,6 +1,6 @@ /* GTK Color Definitions */ -@define-color bg-primary rgba(23, 28, 39, 0.8); -@define-color bg-secondary rgba(23, 28, 39, 0.7); +@define-color bg-primary rgba(28, 28, 28, 0.81); +@define-color bg-secondary rgba(28, 28, 28, 0.81); @define-color bg-opaque rgba(23, 28, 39, 0.8); @define-color border-color rgba(90, 104, 115, 1); @define-color text-primary #ffffff; @@ -156,6 +156,22 @@ window#waybar.chromium { /* border-right: none; */ } +#custom-submap { + color: @accent-color; + background: linear-gradient(to bottom, @bg-primary, @bg-secondary); + border: 1px solid @border-color; + border-top: none; + border-radius: 0 0 10px 10px; + padding: 0 10px; + transition: color 2s ease-out, box-shadow 2s ease-out, background 2s ease-out; +} + +#custom-pomodoro { + border-radius: 0 0 10px 10px; + /* margin-right: 0; */ + /* border-right: none; */ +} + #custom-goal { border-radius: 0 0 10px 0; margin: 0; diff --git a/zsh/aliases.sh b/zsh/aliases.sh index 87ae34b..d73475c 100644 --- a/zsh/aliases.sh +++ b/zsh/aliases.sh @@ -30,7 +30,7 @@ alias d="sudo loadkeys dvorak" alias ssh="TERM=xterm-256color ssh" alias vesktop="vesktop --proxy-server=127.0.0.1:1080" alias govno="_JAVA_AWT_WM_NONREPARENTING=1 nohup idea > /dev/null 2>&1 & exit" -alias blu="bluetuith" +alias blu="bluetui" alias lyns="lynx https://duckduckgo.com" alias chat="input=\$(whiptail --inputbox 'What do you want from ChatGPT today?' 20 50 '' 3>&1 1>&2 2>&3) && echo \$input | /home/greg/.go/bin/tgpt | less" alias prevsus=".config/bspwm/prevent_suspend.sh"