diff --git a/.config/btop/btop.conf b/.config/btop/btop.conf index 9ef0fe7..dd743b7 100644 --- a/.config/btop/btop.conf +++ b/.config/btop/btop.conf @@ -1,18 +1,18 @@ -#? Config file for btop v. 1.4.5 +#? Config file for btop v.1.4.6 #* 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 = "/usr/share/btop/themes/gruvbox_dark.theme" #* 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 #* 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 +22,13 @@ 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 #* 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 = true #* Default symbols to use for graph creation, "braille", "block" or "tty". #* "braille" offers the highest resolution but might not be included in all fonts. @@ -60,37 +63,40 @@ update_ms = 100 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 #* 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. @@ -104,28 +110,28 @@ cpu_graph_lower = "Auto" show_gpu_info = "Auto" #* 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_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. @@ -137,17 +143,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 = "first" #* 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 = "" @@ -157,43 +166,43 @@ 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 = false #* 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". @@ -205,10 +214,10 @@ 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 = False +net_auto = false #* Sync the auto scaling for download and upload to whichever currently has the highest scale. -net_sync = True +net_sync = true #* Starts with the Network Interface specified here. net_iface = "" @@ -217,26 +226,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" +shown_gpus = "nvidia amd intel" #* Custom gpu0 model name, empty string to disable. custom_gpu_name0 = "" diff --git a/.config/fish/config.fish b/.config/fish/config.fish index 942b141..dc4fb44 100644 --- a/.config/fish/config.fish +++ b/.config/fish/config.fish @@ -11,3 +11,6 @@ alias sudo="sudo-rs" starship init fish | source zoxide init fish | source + +# opencode +fish_add_path /home/tahinli/.opencode/bin diff --git a/.config/fish/fish_variables b/.config/fish/fish_variables index f3d901f..57dac05 100644 --- a/.config/fish/fish_variables +++ b/.config/fish/fish_variables @@ -40,3 +40,4 @@ SETUVAR fish_pager_color_selected_background:\x2d\x2dbackground\x3dE6B450 SETUVAR fish_pager_color_selected_completion:\x1d SETUVAR fish_pager_color_selected_description:\x1d SETUVAR fish_pager_color_selected_prefix:\x1d +SETUVAR fish_user_paths:/home/tahinli/\x2eopencode/bin diff --git a/.config/hypr/hyprland.conf b/.config/hypr/hyprland.conf index 8a49d48..59a0bee 100644 --- a/.config/hypr/hyprland.conf +++ b/.config/hypr/hyprland.conf @@ -1,7 +1,9 @@ monitor=,preferred,auto,auto # monitor = eDP-1, 2880x1800@90, 0x1080, 2 -monitor = HDMI-A-1, 1920x1080@75, 0x0, 1 +monitor = DP-1, 2560x1440@180, 0x0, 1, bitdepth, 10 +monitor = HDMI-A-1, 1920x1080@75, 2560x0, 1, bitdepth, 10 # monitor = eDP-1, disable +# monitor = HDMI-A-1, disable bindl = , switch:on:Lid Switch, exec, hyprctl keyword monitor "eDP-1, disable" bindl = , switch:off:Lid Switch, exec, hyprctl keyword monitor "eDP-1, enable" bindl = , switch:on:Lid Switch, exec, hyprctl keyword input:touchdevice:enabled false @@ -41,14 +43,14 @@ $fileManager = nautilus --new-window $active_menu = rofi -show $menu = rofi -show drun -show-icons $menu_unsafe = mullvad-exclude rofi -show drun -show-icons -$clipboard = cliphist list | rofi -dmenu -show-icons | cliphist decode | wl-copy +$clipboard = cliphist list | rofi -dmenu -show-icons -i | cliphist decode | wl-copy $screenshot = grim "$HOME/Pictures/Screenshots/$(date '+%y%m%d_%H-%M-%S').png" | grim - | wl-copy $screenshot_with_area_selector = grim -g "$(slurp)" - | wl-copy $power_menu = bash ~/.config/scripts/system/power_menu.sh $browser = flatpak run io.github.ungoogled_software.ungoogled_chromium --enable-features=MiddleClickAutoscroll -$browser_unsafe = mullvad-exclude flatpak run com.brave.Browser --incognito --enable-features=MiddleClickAutoscroll +$browser_unsafe = mullvad-exclude flatpak run org.chromium.Chromium --incognito --enable-features=MiddleClickAutoscroll,AllowLegacyMV2Extensions --disable-features=ExtensionManifestV2Unsupported,ExtensionManifestV2Disabled,ExtensionsManifestV3Only $signal = flatpak run org.signal.Signal -$deezer = mullvad-exclude flatpak run app.zen_browser.zen +$deezer = mullvad-exclude flatpak run io.github.ungoogled_software.ungoogled_chromium --no-first-run --app="https://deezer.com/" --class=chrome-deezer.com__-Default --name=chrome-deezer.com__-Default --user-data-dir=/home/tahinli/.var/app/io.github.ungoogled_software.ungoogled_chromium/data/web-app-hub/profiles/VjW8vTQ3 $mainMod = SUPER $my_trigger = Alt @@ -77,11 +79,12 @@ bind = $mainMod, Escape, exec, $power_menu $discord = flatpak run dev.vencord.Vesktop $youtube = mullvad-exclude flatpak run io.freetubeapp.FreeTube $code = zed -$mail = flatpak run me.proton.Mail -$whatsapp = flatpak run com.rtosta.zapzap +$mail = flatpak run io.github.ungoogled_software.ungoogled_chromium --no-first-run --app="https://mail.proton.me/" --class=chrome-mail.proton.me__-Default --name=chrome-mail.proton.me__-Default --user-data-dir=/home/tahinli/.var/app/io.github.ungoogled_software.ungoogled_chromium/data/web-app-hub/profiles/eIpzVtL8 +$whatsapp = flatpak run io.github.ungoogled_software.ungoogled_chromium --no-first-run --app="https://web.whatsapp.com/" --class=chrome-web.whatsapp.com__-Default --name=chrome-web.whatsapp.com__-Default --user-data-dir=/home/tahinli/.var/app/io.github.ungoogled_software.ungoogled_chromium/data/web-app-hub/profiles/aW2IMaZ8 +$github = flatpak run io.github.ungoogled_software.ungoogled_chromium --no-first-run --app="https://github.com/" --class=chrome-github.com__-Default --name=chrome-github.com__-Default --user-data-dir=/home/tahinli/.var/app/io.github.ungoogled_software.ungoogled_chromium/data/web-app-hub/profiles/FCF18Wmt workspace = 100, on-created-empty: $code -workspace = 101, on-created-empty: $tahinli_source +workspace = 200, on-created-empty: $github workspace = 201, on-created-empty: $whatsapp workspace = 202, on-created-empty: $discord workspace = 203, on-created-empty: $deezer @@ -90,7 +93,7 @@ workspace = 205, on-created-empty: $mail workspace = 206, on-created-empty: $signal bind = $my_trigger, C, workspace, 100 -bind = $my_trigger, G, workspace, 101 +bind = $my_trigger, G, workspace, 200 bind = $my_trigger, W, workspace, 201 bind = $my_trigger, D, workspace, 202 bind = $my_trigger, S, workspace, 203 @@ -98,8 +101,15 @@ bind = $my_trigger, Y, workspace, 204 bind = $my_trigger, P, workspace, 205 bind = $my_trigger, N, workspace, 206 +bind = $mainMod SHIFT, C, movetoworkspace, 100 +bind = $mainMod SHIFT, W, movetoworkspace, 201 +bind = $mainMod SHIFT, D, movetoworkspace, 202 +bind = $mainMod SHIFT, Y, movetoworkspace, 204 +bind = $mainMod SHIFT, P, movetoworkspace, 205 +bind = $mainMod SHIFT, N, movetoworkspace, 206 -bind = $mainMod, D, workspace, 999 +# bind = $mainMod, D, workspace, 999 +bind = $mainMod, D, exec, ~/.config/scripts/hyprland/show_desktop.sh bind = Alt, F4, killactive, bind = Alt, 4, killactive, @@ -112,9 +122,14 @@ binds { bindr = $mainMod, Tab, bringactivetotop binde = $mainMod, Tab, cyclenext bind = Alt, Tab, workspace, previous +bind = $mainMod SHIFT, Tab, swapactiveworkspaces, DP-1 HDMI-A-1 bind = $mainMod, P, pseudo, # dwindle bind = $mainMod, J, togglesplit, # dwindle bind = $mainMod, F, togglefloating, +bind = $mainMod, Q, focusmonitor, l +bind = $mainMod, E, focusmonitor, r +bind = $mainMod SHIFT, Q, movewindow, mon:l +bind = $mainMod SHIFT, E, movewindow, mon:r bind = $mainMod, left, movefocus, l bind = $mainMod, right, movefocus, r bind = $mainMod, up, movefocus, u @@ -168,8 +183,12 @@ bindl = , XF86AudioPause, exec, playerctl play-pause bindl = , XF86AudioPlay, exec, playerctl play-pause bindl = , XF86AudioPrev, exec, playerctl previous -windowrulev2 = suppressevent maximize, class:.* -windowrulev2 = nofocus,class:^$,title:^$,xwayland:1,floating:1,fullscreen:0,pinned:0 +windowrule = match:class .*, suppress_event maximize +windowrule = match:class ^$, match:title ^$, match:xwayland 1, match:float 1, match:fullscreen 0, match:pin 0, no_focus on +windowrule = match:class kitty, opacity 0.8 +# windowrule = match:class dev.zed.Zed, opacity 0.6 +windowrule = match:class .*wezterm.*, opacity 0.8 +windowrule = match:class .*dev.heppen.webapps.*, tile on general { gaps_in = 3 @@ -188,7 +207,7 @@ general { } render { - cm_auto_hdr = 0 + cm_fs_passthrough = 2 } decoration { @@ -205,9 +224,6 @@ decoration { vibrancy = 0.1696 } - windowrule = opacity 0.8, class:kitty - windowrule = opacity 0.8, class:.*wezterm.* - windowrule = tile, class:.*dev.heppen.webapps.* } animations { @@ -234,6 +250,7 @@ master { misc { force_default_wallpaper = 0 # Set to 0 or 1 to disable the anime mascot wallpapers disable_hyprland_logo = true # If true disables the random hyprland logo / anime girl background. :( + vrr = 0 } # =================================== @@ -266,3 +283,4 @@ device { name = epic-mouse-v1 sensitivity = -0.5 } +exec-once = sudo /usr/local/bin/asus-receiver-rebind diff --git a/.config/hypr/hyprpaper.conf b/.config/hypr/hyprpaper.conf index 3c8a8ea..28bea19 100644 --- a/.config/hypr/hyprpaper.conf +++ b/.config/hypr/hyprpaper.conf @@ -1,5 +1,12 @@ -$location = ~/Pictures/alvaro-polo-ZfSe7Zv58rY-unsplash.jpg -preload = $location -wallpaper = eDP-1,$location -wallpaper = HDMI-A-1,$location +# $location = ~/Pictures/andrew-ruiz-RbIQ3YvUREw-unsplash.jpg +# preload = $location +# wallpaper = eDP-1,$location +# wallpaper = HDMI-A-1,$location splash = false + +wallpaper { + monitor = + # path = ~/Pictures/andrew-ruiz-RbIQ3YvUREw-unsplash.jpg + path = ~/Pictures/ryunosuke-kikuno-VXp-9HwN1eg-unsplash.jpg + fit_mode = cover +} diff --git a/.config/mimeapps.list b/.config/mimeapps.list index 1a85015..5263ffe 100644 --- a/.config/mimeapps.list +++ b/.config/mimeapps.list @@ -56,6 +56,7 @@ text/css=com.system76.CosmicEdit.desktop text/x-rust=com.system76.CosmicEdit.desktop application/x-shellscript=com.system76.CosmicEdit.desktop application/x-python=com.system76.CosmicEdit.desktop +x-scheme-handler/claude-cli=claude-code-url-handler.desktop [Added Associations] video/mp4=org.gnome.Showtime.desktop; diff --git a/.config/nvim/lua/keymaps.lua b/.config/nvim/lua/keymaps.lua index 8ee86ed..88fe868 100644 --- a/.config/nvim/lua/keymaps.lua +++ b/.config/nvim/lua/keymaps.lua @@ -12,11 +12,17 @@ vim.keymap.set("n", ".", require("fzf-lua").lsp_code_actions, { noremap = true, silent = true, }) vim.keymap.set("n", ",", function() vim.diagnostic.open_float() end, {}) -vim.keymap.set("n", "\"r", function() vim.lsp.buf.rename() end, {}) +vim.keymap.set("n", "", function() vim.lsp.buf.rename() end, {}) vim.keymap.set("n", ";", require("fzf-lua").diagnostics_workspace, {}) vim.keymap.set({ "n", "i", "v" }, "", format_and_save) + +vim.api.nvim_create_autocmd("BufWritePre", { + callback = function() + vim.lsp.buf.format() + end, +}) vim.keymap.set({ "n", "v" }, "-", "Oil", { noremap = true, silent = true, }) -- terminal exit close remap vim.keymap.set("t", "e", "", { noremap = true }) diff --git a/.config/nvim/lua/plugins/mason-lspconfig.lua b/.config/nvim/lua/plugins/mason-lspconfig.lua index b5bf4e5..7fbf3ba 100644 --- a/.config/nvim/lua/plugins/mason-lspconfig.lua +++ b/.config/nvim/lua/plugins/mason-lspconfig.lua @@ -11,6 +11,7 @@ return { "cssls", "html", "ts_ls", + "marksman", }, }) end, diff --git a/.config/nvim/lua/plugins/nvim-lspconfig.lua b/.config/nvim/lua/plugins/nvim-lspconfig.lua index fd5f152..50219ab 100644 --- a/.config/nvim/lua/plugins/nvim-lspconfig.lua +++ b/.config/nvim/lua/plugins/nvim-lspconfig.lua @@ -55,6 +55,10 @@ return { capabilities = capabilities, }) + vim.lsp.config("marksman", { + capabilities = capabilities, + }) + -- Enable all configured servers vim.lsp.enable("lua_ls") vim.lsp.enable("clangd") @@ -63,5 +67,6 @@ return { vim.lsp.enable("cssls") vim.lsp.enable("html") vim.lsp.enable("ts_ls") + vim.lsp.enable("marksman") end } diff --git a/.config/nvim/lua/plugins/nvim-treesitter.lua b/.config/nvim/lua/plugins/nvim-treesitter.lua index cdb0409..9ce5f78 100644 --- a/.config/nvim/lua/plugins/nvim-treesitter.lua +++ b/.config/nvim/lua/plugins/nvim-treesitter.lua @@ -4,8 +4,8 @@ return { config = function() require("nvim-treesitter.configs").setup({ auto_install = true, - highlight = { enabled = true }, - indent = { enabled = true }, + highlight = { enable = true }, + indent = { enable = true }, }) end, } diff --git a/.config/nvim/lua/plugins/render-markdown.lua b/.config/nvim/lua/plugins/render-markdown.lua new file mode 100644 index 0000000..809af92 --- /dev/null +++ b/.config/nvim/lua/plugins/render-markdown.lua @@ -0,0 +1,12 @@ +return { + "MeanderingProgrammer/render-markdown.nvim", + dependencies = { "nvim-treesitter/nvim-treesitter" }, + ft = { "markdown" }, + opts = { + code = { + above = "", + below = "", + style = "language", + }, + }, +} diff --git a/.config/rofi/config.rasi b/.config/rofi/config.rasi index 32ee50a..da9a4d5 100644 --- a/.config/rofi/config.rasi +++ b/.config/rofi/config.rasi @@ -1,4 +1,5 @@ configuration { font: "fira 18"; + case-sensitive: false; } @theme "/usr/share/rofi/themes/gruvbox-dark-hard.rasi" diff --git a/.config/scripts/hyprland/show_desktop.sh b/.config/scripts/hyprland/show_desktop.sh new file mode 100755 index 0000000..a66c5fc --- /dev/null +++ b/.config/scripts/hyprland/show_desktop.sh @@ -0,0 +1,28 @@ +#!/bin/bash + +STATE_FILE="/tmp/hypr_show_desktop" + +if [ -f "$STATE_FILE" ]; then + source "$STATE_FILE" + hyprctl dispatch workspace "$WS_OTHER" + hyprctl dispatch swapactiveworkspaces "$MON1" "$MON2" + hyprctl dispatch workspace "$WS_FOCUSED" + rm "$STATE_FILE" +else + mon_json=$(hyprctl monitors -j) + MON1=$(echo "$mon_json" | jq -r '.[] | select(.focused==true) | .name') + WS_FOCUSED=$(echo "$mon_json" | jq -r '.[] | select(.focused==true) | .activeWorkspace.id') + MON2=$(echo "$mon_json" | jq -r '.[] | select(.focused==false) | .name') + WS_OTHER=$(echo "$mon_json" | jq -r '.[] | select(.focused==false) | .activeWorkspace.id') + + cat > "$STATE_FILE" << EOF +MON1=$MON1 +MON2=$MON2 +WS_FOCUSED=$WS_FOCUSED +WS_OTHER=$WS_OTHER +EOF + + hyprctl dispatch workspace 998 + hyprctl dispatch swapactiveworkspaces "$MON1" "$MON2" + hyprctl dispatch workspace 999 +fi