From 9763dd58e32f5f4726dc0188ee9a0c17147be466 Mon Sep 17 00:00:00 2001 From: xAlpharax <42233094+xAlpharax@users.noreply.github.com> Date: Tue, 4 Aug 2026 01:21:17 +0300 Subject: New way of doing some things I guess. Changes to be committed: modified: Vencord/settings/settings.json modified: X11/xinit modified: appimageupdate deleted: backlight modified: btop/btop.conf modified: clockpower modified: htop/htoprc modified: keybinds modified: lock modified: nvim/init.vim deleted: qBittorrent/ICEBERG.qbtheme deleted: qBittorrent/ayuDark.qbtheme deleted: vpn modified: xrec modified: zsh/aliases modified: zsh/env modified: zsh/zshrc --- Vencord/settings/settings.json | 100 ++++++++++++++++++-------- X11/xinit | 4 +- appimageupdate | 2 +- backlight | 5 -- btop/btop.conf | 132 +++++++++++++++++++++------------- clockpower | 101 ++++++++++++++++++++++---- htop/htoprc | 7 +- keybinds | 21 +++--- lock | 2 +- nvim/init.vim | 156 ++++++++++++++++++++++++++++++++++------- qBittorrent/ICEBERG.qbtheme | Bin 450721 -> 0 bytes qBittorrent/ayuDark.qbtheme | Bin 450702 -> 0 bytes vpn | 16 ----- xrec | 51 ++++++++++++-- zsh/aliases | 5 +- zsh/env | 6 +- zsh/zshrc | 15 ++++ 17 files changed, 455 insertions(+), 168 deletions(-) delete mode 100755 backlight delete mode 100644 qBittorrent/ICEBERG.qbtheme delete mode 100644 qBittorrent/ayuDark.qbtheme delete mode 100755 vpn diff --git a/Vencord/settings/settings.json b/Vencord/settings/settings.json index 70ac441..6c08a4e 100644 --- a/Vencord/settings/settings.json +++ b/Vencord/settings/settings.json @@ -142,7 +142,10 @@ "transformEmojis": true, "transformCompoundSentence": true, "emojiSize": 48, - "stickerSize": 160 + "stickerSize": 160, + "useHyperLinks": true, + "hyperLinkText": "{{NAME}}", + "disableEmbedPermissionCheck": true }, "FakeProfileThemes": { "enabled": true, @@ -165,7 +168,8 @@ }, "GameActivityToggle": { "enabled": true, - "oldIcon": false + "oldIcon": false, + "location": "PANEL" }, "GifPaste": { "enabled": true @@ -197,16 +201,6 @@ "KeepCurrentChannel": { "enabled": true }, - "LastFMRichPresence": { - "enabled": true, - "shareUsername": false, - "hideWithSpotify": true, - "statusName": "some music", - "useListeningStatus": false, - "missingArt": "lastfmLogo", - "nameFormat": "status-name", - "hideWithActivity": false - }, "LoadingQuotes": { "enabled": true, "replaceEvents": true, @@ -218,7 +212,8 @@ "MemberCount": { "enabled": true, "memberList": true, - "toolTip": true + "toolTip": true, + "voiceActivity": true }, "MessageClickActions": { "enabled": false, @@ -242,11 +237,6 @@ "logDeletes": true, "collapseDeleted": false }, - "MessageTags": { - "enabled": true, - "clyde": true, - "tagsList": {} - }, "MoreCommands": { "enabled": true }, @@ -455,7 +445,8 @@ "enabled": true, "displayNames": false, "mode": "user-nick", - "inReplies": false + "inReplies": false, + "friendNicknames": "dms" }, "SilentMessageToggle": { "enabled": true @@ -506,7 +497,8 @@ "TypingIndicator": { "enabled": true, "includeMutedChannels": false, - "includeCurrentChannel": true + "includeCurrentChannel": true, + "indicatorMode": 3 }, "TypingTweaks": { "enabled": true, @@ -636,7 +628,8 @@ "color": "313338" }, "FixImagesQuality": { - "enabled": true + "enabled": true, + "originalImagesInChat": false }, "Decor": { "enabled": true @@ -725,10 +718,14 @@ "enabled": false }, "ImageLink": { - "enabled": false + "enabled": true }, "MessageLatency": { - "enabled": false + "enabled": true, + "latency": 2, + "detectDiscordKotlin": true, + "showMillis": false, + "ignoreSelf": false }, "NoServerEmojis": { "enabled": false @@ -746,7 +743,7 @@ "enabled": false }, "VoiceDownload": { - "enabled": false + "enabled": true }, "PartyMode": { "enabled": false, @@ -765,7 +762,8 @@ "enabled": false }, "CopyEmojiMarkdown": { - "enabled": false + "enabled": false, + "copyUnicode": true }, "CustomIdle": { "enabled": false @@ -797,7 +795,8 @@ "enabled": true }, "AccountPanelServerProfile": { - "enabled": false + "enabled": false, + "prioritizeServerProfile": false }, "AlwaysExpandRoles": { "enabled": false @@ -815,7 +814,8 @@ "enabled": false }, "MentionAvatars": { - "enabled": false + "enabled": true, + "showAtSymbol": true }, "NoMaskedUrlPaste": { "enabled": false @@ -827,16 +827,49 @@ "enabled": false }, "Summaries": { - "enabled": false + "enabled": true }, "StickerPaste": { "enabled": false }, "YoutubeAdblock": { - "enabled": false + "enabled": true }, "ExpressionCloner": { "enabled": true + }, + "CustomCommands": { + "enabled": true, + "clyde": true, + "tagsList": {} + }, + "AutoDNDWhilePlaying": { + "enabled": false + }, + "CharacterCounter": { + "enabled": true + }, + "CopyStickerLinks": { + "enabled": false + }, + "ImageFilename": { + "enabled": false + }, + "MoreQuickReactions": { + "enabled": false + }, + "ConcatenatedComponentExtractor": { + "enabled": true + }, + "MusicRichPresence": { + "enabled": true, + "shareUsername": false, + "hideWithSpotify": true, + "statusName": "some music", + "useListeningStatus": false, + "missingArt": "lastfmLogo", + "nameFormat": "status-name", + "hideWithActivity": false } }, "notifications": { @@ -849,7 +882,12 @@ "authenticated": false, "url": "https://api.vencord.dev/", "settingsSync": false, - "settingsSyncVersion": 1749040617789 + "settingsSyncVersion": 1784375509010 + }, + "eagerPatches": false, + "uiElements": { + "chatBarButtons": {}, + "messagePopoverButtons": {} }, - "eagerPatches": false + "windowsMaterial": "none" } \ No newline at end of file diff --git a/X11/xinit b/X11/xinit index 6c87ddc..adbbbfd 100755 --- a/X11/xinit +++ b/X11/xinit @@ -13,8 +13,8 @@ xrandr -s 1920x1080 -r 144 & # target screen resolution xset r rate 300 30 & # key repeat delay and speed xset b off # disable bell -xrdb merge ~/.Xresources # asset resources -picom --backend glx & # compositor +xrdb merge ~/.Xresources # asset resources +picom --no-vsync --backend glx --unredir-if-possible & # compositor # # # ## more stuff ## # diff --git a/appimageupdate b/appimageupdate index 84f87dc..ca5d648 100755 --- a/appimageupdate +++ b/appimageupdate @@ -3,6 +3,6 @@ set -e /home/alphara/.applications/AppImageUpdate-x86_64.AppImage $@ # GUI -#/home/alphara/.applications/appimageupdatetool-x86_64.AppImage $@ # CLI +/home/alphara/.applications/appimageupdatetool-x86_64.AppImage $@ # CLI rm ./*.zs-old diff --git a/backlight b/backlight deleted file mode 100755 index 8eaf6e4..0000000 --- a/backlight +++ /dev/null @@ -1,5 +0,0 @@ -#!/bin/bash - -set -e - -sudo echo $1 > /sys/class/backlight/amdgpu_bl0/brightness diff --git a/btop/btop.conf b/btop/btop.conf index 33779c2..f39326b 100644 --- a/btop/btop.conf +++ b/btop/btop.conf @@ -1,18 +1,23 @@ -#? Config file for btop v. 1.4.4 +#? Config file for btop v.1.4.7 #* Name of a btop++/bpytop/bashtop formatted ".theme" file, "Default" and "TTY" for builtin themes. #* Themes should be placed in "../share/btop/themes" relative to binary or "$HOME/.config/btop/themes" color_theme = "TTY" #* If the theme set background should be shown, set to False if you want terminal background transparency. -theme_background = False +theme_background = false #* Sets if 24-bit truecolor should be used, will convert 24-bit colors to 256 color (6x6x6 color cube) if false. -truecolor = True +truecolor = true #* Set to true to force tty mode regardless if a real tty has been detected or not. #* Will force 16-color mode and TTY theme, set all graph symbols to "tty" and swap out other non tty friendly symbols. -force_tty = False +force_tty = false + +#* Option to disable presets. Either the default preset, custom presets, or all presets. +#* "Off" All presets are enabled. +#* "Default" preset is disabled.#* "Custom" presets are disabled.#* "All" presets are disabled. +disable_presets = "Off" #* Define presets for the layout of the boxes. Preset 0 is always all boxes shown with default settings. Max 9 presets. #* Format: "box_name:P:G,box_name:P:G" P=(0 or 1) for alternate positions, G=graph symbol to use for box. @@ -22,10 +27,16 @@ presets = "cpu:1:default,proc:0:default cpu:0:default,mem:0:default,net:0:defaul #* Set to True to enable "h,j,k,l,g,G" keys for directional control in lists. #* Conflicting keys for h:"help" and k:"kill" is accessible while holding shift. -vim_keys = False +vim_keys = false + +#* Disable all mouse events. +disable_mouse = false #* Rounded corners on boxes, is ignored if TTY mode is ON. -rounded_corners = True +rounded_corners = true + +#* Use terminal synchronized output sequences to reduce flickering on supported terminals. +terminal_sync = false #* Default symbols to use for graph creation, "braille", "block" or "tty". #* "braille" offers the highest resolution but might not be included in all fonts. @@ -50,47 +61,53 @@ graph_symbol_net = "default" graph_symbol_proc = "default" #* Manually set which boxes to show. Available values are "cpu mem net proc" and "gpu0" through "gpu5", separate values with whitespace. -shown_boxes = "net proc mem cpu gpu0" +shown_boxes = "proc cpu mem net gpu0" #* Update time in milliseconds, recommended 2000 ms or above for better sample times for graphs. update_ms = 100 #* Processes sorting, "pid" "program" "arguments" "threads" "user" "memory" "cpu lazy" "cpu direct", #* "cpu lazy" sorts top process over time (easier to follow), "cpu direct" updates top process directly. -proc_sorting = "memory" +proc_sorting = "cpu lazy" #* Reverse sorting order, True or False. -proc_reversed = False +proc_reversed = false #* Show processes as a tree. -proc_tree = False +proc_tree = false #* Use the cpu graph colors in the process list. -proc_colors = True +proc_colors = true #* Use a darkening gradient in the process list. -proc_gradient = True +proc_gradient = true #* If process cpu usage should be of the core it's running on or usage of the total available cpu power. -proc_per_core = False +proc_per_core = false #* Show process memory as bytes instead of percent. -proc_mem_bytes = True +proc_mem_bytes = true #* Show cpu graph for each process. -proc_cpu_graphs = True +proc_cpu_graphs = true #* Use /proc/[pid]/smaps for memory information in the process info box (very slow but more accurate) -proc_info_smaps = False +proc_info_smaps = false #* Show proc box on left side of screen instead of right. -proc_left = False +proc_left = false #* (Linux) Filter processes tied to the Linux kernel(similar behavior to htop). -proc_filter_kernel = False +proc_filter_kernel = false + +#* Should the process list follow the selected process when detailed view is open. +proc_follow_detailed = true #* In tree-view, always accumulate child process resources in the parent process. -proc_aggregate = False +proc_aggregate = false + +#* Should cpu and memory usage display be preserved for dead processes when paused. +keep_dead_proc_usage = false #* Sets the CPU stat shown in upper half of the CPU graph, "total" is always available. #* Select from a list of detected attributes from the options menu. @@ -101,28 +118,31 @@ cpu_graph_upper = "total" cpu_graph_lower = "total" #* If gpu info should be shown in the cpu box. Available values = "Auto", "On" and "Off". -show_gpu_info = "Auto" +show_gpu_info = "On" #* Toggles if the lower CPU graph should be inverted. -cpu_invert_lower = True +cpu_invert_lower = true #* Set to True to completely disable the lower CPU graph. -cpu_single_graph = False +cpu_single_graph = false #* Show cpu box at bottom of screen instead of top. -cpu_bottom = False +cpu_bottom = false #* Shows the system uptime in the CPU box. -show_uptime = True +show_uptime = true + +#* Shows the CPU package current power consumption in watts. Requires running `make setcap` or `make setuid` or running with sudo. +show_cpu_watts = true #* Show cpu temperature. -check_temp = True +check_temp = true #* Which sensor to use for cpu temperature, use options menu to select from list of available sensors. cpu_sensor = "Auto" #* Show temperatures for cpu cores also if check_temp is True and sensors has been found. -show_coretemp = True +show_coretemp = true #* Set a custom mapping between core and coretemp, can be needed on certain cpus to get correct temperature for correct core. #* Use lm-sensors or similar to see which cores are reporting temperatures on your machine. @@ -134,17 +154,20 @@ cpu_core_map = "" temp_scale = "celsius" #* Use base 10 for bits/bytes sizes, KB = 1000 instead of KiB = 1024. -base_10_sizes = False +base_10_sizes = false #* Show CPU frequency. -show_cpu_freq = True +show_cpu_freq = true + +#* How to calculate CPU frequency, available values: "first", "range", "lowest", "highest" and "average". +freq_mode = "range" #* Draw a clock at top of screen, formatting according to strftime, empty string to disable. #* Special formatting: /host = hostname | /user = username | /uptime = system uptime clock_format = "%X" #* Update main ui in background when menus are showing, set this to false if the menus is flickering too much for comfort. -background_update = True +background_update = true #* Custom cpu model name, empty string to disable. custom_cpu_name = "" @@ -154,58 +177,61 @@ custom_cpu_name = "" disks_filter = "" #* Show graphs instead of meters for memory values. -mem_graphs = True +mem_graphs = true #* Show mem box below net box instead of above. -mem_below_net = False +mem_below_net = false #* Count ZFS ARC in cached and available memory. -zfs_arc_cached = True +zfs_arc_cached = true #* If swap memory should be shown in memory box. -show_swap = True +show_swap = true #* Show swap as a disk, ignores show_swap value above, inserts itself after first disk. -swap_disk = True +swap_disk = true #* If mem box should be split to also show disks info. -show_disks = True +show_disks = true #* Filter out non physical disks. Set this to False to include network disks, RAM disks and similar. -only_physical = True +only_physical = true #* Read disks list from /etc/fstab. This also disables only_physical. -use_fstab = True +use_fstab = true #* Setting this to True will hide all datasets, and only show ZFS pools. (IO stats will be calculated per-pool) -zfs_hide_datasets = False +zfs_hide_datasets = false #* Set to true to show available disk space for privileged users. -disk_free_priv = False +disk_free_priv = false #* Toggles if io activity % (disk busy time) should be shown in regular disk usage view. -show_io_stat = True +show_io_stat = true #* Toggles io mode for disks, showing big graphs for disk read/write speeds. -io_mode = False +io_mode = true #* Set to True to show combined read/write io graphs in io mode. -io_graph_combined = False +io_graph_combined = false #* Set the top speed for the io graphs in MiB/s (100 by default), use format "mountpoint:speed" separate disks with whitespace " ". #* Example: "/mnt/media:100 /:20 /boot:1". io_graph_speeds = "" +#* Swap the positions of the upload and download speed graphs. When true, upload will be on top. +swap_upload_download = false + #* Set fixed values for network graphs in Mebibits. Is only used if net_auto is also set to False. net_download = 100 net_upload = 100 #* Use network graphs auto rescaling mode, ignores any values set above and rescales down to 10 Kibibytes at the lowest. -net_auto = True +net_auto = true #* Sync the auto scaling for download and upload to whichever currently has the highest scale. -net_sync = False +net_sync = false #* Starts with the Network Interface specified here. net_iface = "" @@ -214,26 +240,32 @@ net_iface = "" base_10_bitrate = "Auto" #* Show battery stats in top right if battery is present. -show_battery = True +show_battery = true #* Which battery to use if multiple are present. "Auto" for auto detection. selected_battery = "Auto" #* Show power stats of battery next to charge indicator. -show_battery_watts = True +show_battery_watts = true -#* Set loglevel for "~/.config/btop/btop.log" levels are: "ERROR" "WARNING" "INFO" "DEBUG". +#* Set loglevel for "~/.local/state/btop.log" levels are: "ERROR" "WARNING" "INFO" "DEBUG". #* The level set includes all lower levels, i.e. "DEBUG" will show all logging info. log_level = "WARNING" +#* Automatically save current settings to config file on exit. +save_config_on_exit = true + #* Measure PCIe throughput on NVIDIA cards, may impact performance on certain cards. -nvml_measure_pcie_speeds = True +nvml_measure_pcie_speeds = true #* Measure PCIe throughput on AMD cards, may impact performance on certain cards. -rsmi_measure_pcie_speeds = True +rsmi_measure_pcie_speeds = true #* Horizontally mirror the GPU graph. -gpu_mirror_graph = True +gpu_mirror_graph = true + +#* Set which GPU vendors to show. Available values are "nvidia amd intel apple" +shown_gpus = "nvidia amd intel" #* Custom gpu0 model name, empty string to disable. custom_gpu_name0 = "" diff --git a/clockpower b/clockpower index efcc1da..7fa6473 100755 --- a/clockpower +++ b/clockpower @@ -1,27 +1,102 @@ #!/bin/bash +#case $1 in + + #min) + #sudo cpupower frequency-set --governor powersave + #sudo cpupower frequency-set --related --governor powersave + #sudo cpupower idle-set --enable-all + #;; + + #max) + #sudo cpupower frequency-set --governor performance + #sudo cpupower frequency-set --related --governor performance + + #sudo cpupower frequency-set --freq 3.20GHz # don t do this, comment away + #sudo cpupower frequency-set --min 4.30GHz + + #sudo cpupower idle-set --disable 3 + #sudo cpupower idle-set --disable 2 + #sudo cpupower idle-set --disable 1 + #sudo cpupower idle-set --disable 0 + #;; + +#esac + +#sudo cpupower frequency-info +#sudo cpupower monitor + +# 1.1 4.3 + +#!/bin/bash + +# Helper function to set EPP (Energy Performance Preference) +set_epp() { + for file in /sys/devices/system/cpu/cpu*/cpufreq/energy_performance_preference; do + [ -f "$file" ] && echo "$1" | sudo tee "$file" > /dev/null + done +} + case $1 in - min) - sudo cpupower frequency-set --governor powersave - sudo cpupower frequency-set --related --governor powersave + max) + echo "Applying MAX Performance (osu!lazer Mode)..." + # 1. Enable Sleep States + # Allows unused cores to sleep so the game cores get all the power/speed. + sudo cpupower idle-set --enable-all + + # 2. Set Governor to Performance + sudo cpupower frequency-set --governor performance --related + + # 3. Set Hardware Hint to 'performance' + set_epp performance + + # 4. Reset Frequency Limits + # We set min to your hardware lowest (403MHz) to allow full range boosting. + sudo cpupower frequency-set --min 403MHz + sudo cpupower frequency-set --max 4.47GHz + ;; + + default) + echo "Applying DEFAULT Settings (Balanced)..." sudo cpupower idle-set --enable-all + + # 'powersave' is the standard governor for amd-pstate (it scales dynamically) + sudo cpupower frequency-set --governor powersave --related + + # 'balance_performance' is the default hardware hint + set_epp balance_performance + + # Reset limits + sudo cpupower frequency-set --min 403MHz + sudo cpupower frequency-set --max 4.47GHz ;; - max) - sudo cpupower frequency-set --governor performance - sudo cpupower frequency-set --related --governor performance + min) + echo "Applying MIN Power (Battery Saver)..." + sudo cpupower idle-set --enable-all + sudo cpupower frequency-set --governor powersave --related - sudo cpupower frequency-set --freq 3.20GHz - sudo cpupower frequency-set --min 3.20GHz + # Tell hardware to save as much power as possible + set_epp power - sudo cpupower idle-set --disable 3 - sudo cpupower idle-set --disable 2 - sudo cpupower idle-set --disable 1 - sudo cpupower idle-set --disable 0 + # Cap frequency to 2.0GHz to save battery + sudo cpupower frequency-set --min 403MHz + sudo cpupower frequency-set --max 2.0GHz + ;; + + *) + echo "Usage: $0 {max|default|min}" + exit 1 ;; esac -sudo cpupower frequency-info +echo "------------------------------------------------" +echo "Current Configuration:" +sudo cpupower frequency-info | grep "current policy" +echo "------------------------------------------------" +echo "Monitoring (Press Ctrl+C to stop)..." sudo cpupower monitor + +cat /sys/devices/system/cpu/cpu*/cpufreq/scaling_governor diff --git a/htop/htoprc b/htop/htoprc index 5a09d38..12fa164 100644 --- a/htop/htoprc +++ b/htop/htoprc @@ -1,6 +1,6 @@ # Beware! This file is rewritten by htop when settings are changed in the interface. # The parser is also very primitive, and not human-friendly. -htop_version=3.4.1-3.4.1 +htop_version=3.5.1-3.5.1 config_reader_min_version=3 fields=0 48 17 18 38 39 40 2 46 47 49 1 hide_kernel_threads=1 @@ -23,6 +23,7 @@ header_margin=1 screen_tabs=0 detailed_cpu_time=1 cpu_count_from_one=1 +show_cpu_smt_labels=0 show_cpu_usage=1 show_cpu_frequency=1 show_cpu_temperature=1 @@ -40,14 +41,14 @@ column_meter_modes_0=1 2 1 2 2 2 column_meters_1=RightCPUs2 Blank Tasks Battery LoadAverage Uptime column_meter_modes_1=1 2 2 2 2 2 tree_view=0 -sort_key=47 +sort_key=46 tree_sort_key=46 sort_direction=-1 tree_sort_direction=-1 tree_view_always_by_pid=0 all_branches_collapsed=0 screen:Main=PID USER PRIORITY NICE M_VIRT M_RESIDENT M_SHARE STATE PERCENT_CPU PERCENT_MEM TIME Command -.sort_key=PERCENT_MEM +.sort_key=PERCENT_CPU .tree_sort_key=PERCENT_CPU .tree_view_always_by_pid=0 .tree_view=0 diff --git a/keybinds b/keybinds index 825f559..4893de9 100644 --- a/keybinds +++ b/keybinds @@ -11,12 +11,12 @@ alt + shift + t alt + c color-picker -# Screen Shots +# Screen Shot Keybinds -alt + control + Print +alt + control + f xshot full -alt + Print +alt + F12 clip full alt + control + s @@ -50,12 +50,12 @@ alt + f alt + shift + f brave -# Chromium (dev testing) +# Chromium (dev testing) (not that used) alt + shift + c chromium -# LibreWolf +# LibreWolf (not that used) alt + w librewolf @@ -63,9 +63,9 @@ alt + w # Discord alt + d - vesktop # discord + vesktop # vencord / discord is sometimes working better -# Dino +# Dino (not that used) alt + shift + d dino @@ -80,16 +80,15 @@ alt + e # brightness control XF86MonBrightnessDown - notify-send --replace-id=1 "🌑 Brightness Down" && sudo backlight 0 # Moon Emoji + sudo xbacklight -dec 10 && notify-send --replace-id=1 "🌑 Brightness $(sudo xbacklight -get | cut -d '.' -f 1)%" XF86MonBrightnessUp - notify-send --replace-id=1 "🌞 Brightness Up" && sudo backlight 255 # Sun Emoji + sudo xbacklight -inc 10 && notify-send --replace-id=1 "🌞 Brightness $(sudo xbacklight -get | cut -d '.' -f 1)%" -# fan control +# fan control and performance alt + XF86AudioRaiseVolume notify-send --replace-id=4 "🌬️ Fan Speed Up" && sudo nbfc-set 100 - alt + XF86AudioLowerVolume notify-send --replace-id=4 "🌬️ Fan Speed Down" && sudo nbfc-kill diff --git a/lock b/lock index f0bce84..f540729 100755 --- a/lock +++ b/lock @@ -23,7 +23,7 @@ lock_screen() { xsecurelock - picom --backend glx & + picom --no-vsync --backend glx --unredir-if-possible & } # Settings diff --git a/nvim/init.vim b/nvim/init.vim index 69bc148..433dd2d 100644 --- a/nvim/init.vim +++ b/nvim/init.vim @@ -51,9 +51,11 @@ autocmd FileType * setlocal formatoptions-=c formatoptions-=r formatoptions-=o call plug#begin('~/.vim/plugged') " Appearance and UI - Plug 'vim-airline/vim-airline' - Plug 'vim-airline/vim-airline-themes' - Plug 'ryanoasis/vim-devicons' + Plug 'nvim-lualine/lualine.nvim' + "Plug 'vim-airline/vim-airline' " DEPRECATED: IN NEW VERSION, SWITCHED TO LUALINE + "Plug 'vim-airline/vim-airline-themes' + "Plug 'ryanoasis/vim-devicons' + Plug 'nvim-tree/nvim-web-devicons' " Text manipulation Plug 'tpope/vim-surround' @@ -94,10 +96,15 @@ call plug#begin('~/.vim/plugged') Plug 'hrsh7th/cmp-buffer' Plug 'hrsh7th/cmp-path' Plug 'hrsh7th/cmp-cmdline' + Plug 'saadparwaiz1/cmp_luasnip' + + " Snippets Plug 'L3MON4D3/LuaSnip' + Plug 'rafamadriz/friendly-snippets' " null-ls (for linters and formatters) - Plug 'jose-elias-alvarez/null-ls.nvim' + "Plug 'jose-elias-alvarez/null-ls.nvim' " DEPRECATED: after neovim 0.10 + Plug 'nvimtools/none-ls.nvim' " fork that supports neovim 0.11 " Diagnostics UI (optional UI for LSP diagnostics) Plug 'j-hui/fidget.nvim' @@ -146,6 +153,14 @@ let g:vimtex_view_general_viewer = 'okular' let g:vimtex_view_general_options = '--unique file:@pdf\#src:@line@tex' let maplocalleader = "," +" Do not automatically open the quickfix window, if you want to open it, use ,le +let g:vimtex_quickfix_mode = 0 + +augroup vimtex_auto_compile + autocmd! + autocmd BufWritePost *.tex call vimtex#compiler#compile() +augroup END + " ============================================================================= " Discord Presence " ============================================================================= @@ -157,12 +172,14 @@ let g:presence_main_image="file" " Airline Configurations " ============================================================================= -let g:airline_powerline_fonts = 1 -let g:airline#extensions#tabline#enabled = 1 -let g:airline_theme='deus' +" DEPRECATED: I used to use airline, but I switched to lualine for better performance and more customization options. I keep these settings here in case I want to switch back or if I want to use some of the themes or extensions that airline offers. + +"let g:airline_powerline_fonts = 1 +"let g:airline#extensions#tabline#enabled = 1 +"let g:airline_theme='deus' " for vimtex -let g:airline#extensions#vimtex#enabled = 1 +"let g:airline#extensions#vimtex#enabled = 1 " Enable filetype plugins and indentation filetype plugin indent on @@ -180,6 +197,11 @@ set termguicolors " Setup nvim-colorizer lua require'colorizer'.setup() +" Lualine transparent background +highlight StatusLine guibg=NONE ctermbg=NONE +highlight StatusLineNC guibg=NONE ctermbg=NONE +highlight TabLineFill guibg=NONE ctermbg=NONE + " ============================================================================= " Cursor highlight line " ============================================================================= @@ -214,36 +236,28 @@ autocmd BufEnter * if tabpagenr('$') == 1 && winnr('$') == 1 && exists('b:NERDTr " Spell check toggle map S :setlocal spell! spelllang=en_us -" Movement -map J k -map K j - " Quick save and exit map zz :wq map zx :q! map zs :w -" Ergonomic save and exit -map w :wq -map q :q! -map s :w - " ============================================================================= " Copilot Setup " ============================================================================= -" Disable copilot for text and markdown files +" Disable copilot for text, markdown and latex files autocmd FileType text let g:copilot_enabled = 0 autocmd FileType markdown let g:copilot_enabled = 0 +autocmd FileType tex let g:copilot_enabled = 0 " ============================================================================= " NeoVide Setup " ============================================================================= if exists("g:neovide") - set guifont="Inconsolata" - let g:neovide_transparency = 0.75 - let g:airline_powerline_fonts = 0 + set guifont=Inconsolata:h8 + let g:neovide_opacity = 1 + let g:neovide_normal_opacity = 0.70 let g:neovide_cursor_vfx_mode = "pixiedust" endif @@ -252,6 +266,47 @@ endif " ============================================================================= lua << EOF + +local custom_onedark = require('lualine.themes.onedark') + +for _, mode in pairs(custom_onedark) do + if mode.c then + mode.c.bg = 'NONE' + end +end + +require('lualine').setup { + options = { + theme = custom_onedark, + + icons_enabled = true, + component_separators = { left = '', right = ''}, + section_separators = { left = '', right = ''}, + globalstatus = true, + }, + + tabline = { + lualine_a = {'buffers'}, + lualine_b = {}, + lualine_c = {}, + lualine_x = {}, + lualine_y = {}, + lualine_z = {'tabs'} + }, + + sections = { + lualine_c = { + 'filename', + function() + if vim.bo.filetype == 'tex' and vim.fn.exists('*vimtex#statusline') == 1 then + return vim.fn['vimtex#statusline']() + end + return '' + end + } + } +} + -- Keymap utility functions local function buf_set_keymap(...) vim.api.nvim_buf_set_keymap(0, ...) end @@ -401,7 +456,14 @@ for server, config in pairs(servers) do capabilities = capabilities, }, config or {}) - require("lspconfig")[server].setup(config) + -- Verify if we're on Neovim 0.11+ (which has native vim.lsp.config) + if vim.lsp.config then + vim.lsp.config(server, config) + vim.lsp.enable(server) + else + -- Fallback for Neovim 0.10 + require("lspconfig")[server].setup(config) + end end -- null-ls (for formatters/linters not provided by LSP) @@ -420,15 +482,18 @@ null_ls.setup({ end, }), null_ls.builtins.formatting.isort, - null_ls.builtins.diagnostics.flake8, + -- null_ls.builtins.diagnostics.flake8, null_ls.builtins.formatting.gofmt, null_ls.builtins.formatting.goimports, - null_ls.builtins.formatting.rustfmt, + -- null_ls.builtins.formatting.rustfmt, }, }) -- cmp setup local cmp = require 'cmp' + +require("luasnip.loaders.from_vscode").lazy_load() + cmp.setup({ snippet = { expand = function(args) @@ -458,4 +523,47 @@ require("fidget").setup({ } } }) + +local ls = require("luasnip") +local s = ls.snippet +local t = ls.text_node +local i = ls.insert_node +local fmt = require("luasnip.extras.fmt").fmt + +ls.add_snippets("tex", { + -- 1. Mediu matematic inline rapid + -- Scrii "mk" -> devine "$ cursor $" + s("mk", { + t("$"), i(1), t("$"), i(0) + }), + + -- 2. Fracții + -- Scrii "ff" -> devine "\frac{ cursor }{ }" + s("ff", { + t("\\frac{"), i(1), t("}{"), i(2), t("}"), i(0) + }), + + -- 3. Ecuație numerotată + -- Scrii "eq" -> mediu equation + s("eq", { + t({"\\begin{equation}", "\t"}), + i(1), + t({"", "\\end{equation}"}), i(0) + }), + + -- 4. Ecuație nenumerotată (align*) + -- Scrii "al" -> mediu align* + s("al", { + t({"\\begin{align*}", "\t"}), + i(1), + t({"", "\\end{align*}"}), i(0) + }), + + -- 5. Bold text + -- Scrii "bf" -> \textbf{} + s("bf", { + t("\\textbf{"), i(1), t("}"), i(0) + }), +}) + EOF diff --git a/qBittorrent/ICEBERG.qbtheme b/qBittorrent/ICEBERG.qbtheme deleted file mode 100644 index a4e3b07..0000000 Binary files a/qBittorrent/ICEBERG.qbtheme and /dev/null differ diff --git a/qBittorrent/ayuDark.qbtheme b/qBittorrent/ayuDark.qbtheme deleted file mode 100644 index 7570119..0000000 Binary files a/qBittorrent/ayuDark.qbtheme and /dev/null differ diff --git a/vpn b/vpn deleted file mode 100755 index 7bc5d43..0000000 --- a/vpn +++ /dev/null @@ -1,16 +0,0 @@ -#!/bin/bash - -set -e - -case $1 in - - up) - sudo wg-quick up vpn ;; - - down) - sudo wg-quick down vpn ;; - - status) - sudo wg ;; - -esac diff --git a/xrec b/xrec index 867963a..2008c6f 100755 --- a/xrec +++ b/xrec @@ -2,18 +2,59 @@ set -e -recordingPATH=~/media/screenrecords/ +recordingPATH="$HOME/media/screenrecords" +PID_FILE="/tmp/ffmpeg_screenrecord.pid" + +mkdir -p "$recordingPATH" + +# Detect NVENC support; fallback to fast CPU encoding if no NVIDIA GPU is detected +if command -v nvidia-smi &> /dev/null && nvidia-smi &> /dev/null; then + ENCODER_FLAGS="-c:v h264_nvenc -preset p6 -tune hq -rc constqp -qp 17" +else + ENCODER_FLAGS="-c:v libx264 -preset ultrafast -crf 17" # or medium/slow to be on par with p6 but ehh +fi case $1 in start) - dunstify -t 3000 -i /dev/null " Recording Starts In 3 Seconds" + if [ -f "$PID_FILE" ] && kill -0 "$(cat "$PID_FILE")" 2>/dev/null; then + dunstify -t 3000 -i /dev/null "⚠️ Recording is already running!" + exit 1 + fi + + dunstify -t 3000 -i /dev/null " Recording Starts In 3 Seconds" sleep 3 - ffmpeg -video_size 1920x1080 -framerate 60 -f x11grab -i :0.0+0,0 -crf 16 ${recordingPATH}screenrecording_$(($(ls $recordingPATH | wc -l)+1)).mp4 ;; + + TIMESTAMP=$(date +'%Y-%m-%d_%H-%M-%S') + OUTPUT_FILE="${recordingPATH}/screenrecording_${TIMESTAMP}.mp4" + + # Standard yuv420p conversion allows players to auto-expand blacks properly + ffmpeg -video_size 1920x1080 -framerate 60 -f x11grab -i :0.0+0,0 \ + $ENCODER_FLAGS -profile:v high -pix_fmt yuv420p -movflags +faststart \ + "$OUTPUT_FILE" >/dev/null 2>&1 & + + echo $! > "$PID_FILE" + ;; stop) - pkill ffmpeg - dunstify -t 3000 -i /dev/null " Recording Finished" + if [ -f "$PID_FILE" ]; then + PID=$(cat "$PID_FILE") + if kill -0 "$PID" 2>/dev/null; then + kill -SIGINT "$PID" + rm -f "$PID_FILE" + dunstify -t 3000 -i /dev/null " Recording Finished" + else + dunstify -t 3000 -i /dev/null "⚠️ Process not running." + rm -f "$PID_FILE" + fi + else + dunstify -t 3000 -i /dev/null "⚠️ No active recording." + fi + ;; + + *) + echo "Usage: $0 {start|stop}" + exit 1 ;; esac diff --git a/zsh/aliases b/zsh/aliases index baccb36..a08aea0 100644 --- a/zsh/aliases +++ b/zsh/aliases @@ -61,7 +61,6 @@ alias vis='python $scriptdir/vis.py' # aesthetic alias filmelematrix='cmatrix -C red -a' -#alias colorfetch='neofetch --block_range 0 15' alias change-bg='feh --bg-fill --no-fehbg' alias clock='tty-clock -Dc -C 4' alias sens='watch -n 0.1 sensors' @@ -77,7 +76,6 @@ alias catgirl="catgirl -h irc.libera.chat -j '#voidlinux'" # gaming alias proton='~/.local/share/Steam/steamapps/common/Proton\ -\ Experimental/proton run' -alias protonge='~/.local/share/Steam/compatibilitytools.d/GE-Proton10-12/proton run' # media alias mpv='mpv --ytdl-format="bestvideo[ext=mp4]+bestaudio[ext=m4a]"' @@ -87,7 +85,8 @@ alias ytmp3='yt-dlp --format 'ba' --extract-audio --audio-quality 0 --audio-form alias ytmp4='yt-dlp -S res,ext:mp4:m4a --recode mp4' # envycontrol for nvidia optimus -envycontrol='/home/alphara/dev/envycontrol/envycontrol.py' +#envycontrol='/home/alphara/dev/envycontrol/envycontrol.py' +envycontrol='/home/alphara/dev/envy-new/envycontrol/envycontrol.py' alias dedicated='sudo $envycontrol -s nvidia --coolbits 31 --verbose' alias dedicated-force='sudo $envycontrol -s nvidia --coolbits 31 --verbose --force-comp' alias integrated='sudo $envycontrol -s integrated --verbose' diff --git a/zsh/env b/zsh/env index a76825f..0b104cf 100644 --- a/zsh/env +++ b/zsh/env @@ -31,7 +31,7 @@ export GOPATH=$HOME/.local/go export NO_AT_BRIDGE=1 ### paths ### -export PATH=/bin:/sbin/:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin:/home/alphara/.local/bin:/home/alphara/.cargo/bin::/usr/local/go/bin:/home/alphara/.pub-cache/bin:/home/alphara/dev/dotnet:/home/alphara/exfatssd/IEUCYS/flutter/bin:/usr/lib/jvm/openjdk17/bin +export PATH=/bin:/sbin/:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin:/home/alphara/.local/bin:/home/alphara/.cargo/bin::/usr/local/go/bin:/home/alphara/.pub-cache/bin:/home/alphara/dev/dotnet:/home/alphara/exfatssd1/IEUCYS/flutter/bin:/usr/lib/jvm/openjdk17/bin ## for latexocr export SCREENSHOT_TOOL=gnome-screenshot @@ -72,13 +72,13 @@ export GTK_THEME=Arc:dark export GTK2_RC_FILES=/usr/share/themes/Arc-Dark/gtk-2.0/gtkrc export QT_STYLE_OVERRIDE=kvantum -### pipewire ### +### pipewire ### not here, but from launching specific programs that are buggy with default latency #export PIPEWIRE_LATENCY=256/48000 # 5.3 ms # IF NEEDED 128/48000 2.66 ms 64/48000 1.33 ms 32/48000 0.66 ms 16/48000 0.33 ms 8/48000 0.16 ms 4/48000 0.08 ms 2/48000 0.04 ms 1/48000 0.02 ms # default aim is 1024/48000 21.33 ms and my system defaults to aim to 4/48000 0.08 ms ### cuda & ML ### export PATH=$PATH:/usr/local/cuda-12.4/bin -export LD_LIBRARY_PATH=/lib:/usr/lib:/usr/local/lib:/usr/local/cuda-12.4/bin:/usr/lib/qt6/lib +#export LD_LIBRARY_PATH=/lib:/usr/lib:/usr/local/lib:/usr/local/cuda-12.4/bin:/usr/lib/qt6/lib TORCH_CUDA_ARCH_LIST="8.6" diff --git a/zsh/zshrc b/zsh/zshrc index 7406468..1c6eadc 100644 --- a/zsh/zshrc +++ b/zsh/zshrc @@ -86,3 +86,18 @@ if [ -f '/home/alphara/dev/codestorm-mi/google-cloud-sdk/completion.zsh.inc' ]; export PATH="$PATH:/home/alphara/.lmstudio/bin" # End of LM Studio CLI section +source $HOME/.elan/env + +# opencode +export PATH=/home/alphara/.opencode/bin:$PATH + +# pnpm +export PNPM_HOME="/home/alphara/.local/share/pnpm" +case ":$PATH:" in + *":$PNPM_HOME:"*) ;; + *) export PATH="$PNPM_HOME:$PATH" ;; +esac +# pnpm end + +# OpenClaw Completion +[ -f "/home/alphara/.openclaw/completions/openclaw.zsh" ] && source "/home/alphara/.openclaw/completions/openclaw.zsh" -- cgit v1.2.3