diff --git a/.gitignore b/.gitignore index 5390509..8ed9d74 100644 --- a/.gitignore +++ b/.gitignore @@ -1,5 +1,5 @@ autostart -Code +Code/* composer dconf google-chrome @@ -20,3 +20,4 @@ libreoffice epdfview btop xpra +psysh diff --git a/QtProject.conf b/QtProject.conf index c09009d..19dcb71 100644 --- a/QtProject.conf +++ b/QtProject.conf @@ -1,7 +1,7 @@ [FileDialog] history=@Invalid() lastVisited=file:///dev -qtVersion=5.15.10 +qtVersion=5.15.12 shortcuts=file:, file:///home/tanveer sidebarWidth=84 treeViewHeader=@ByteArray(\0\0\0\xff\0\0\0\0\0\0\0\x1\0\0\0\0\0\0\0\0\x1\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\x1\xb8\0\0\0\x4\x1\x1\0\0\0\0\0\0\0\0\0\0\0\0\0\0\x64\xff\xff\xff\xff\0\0\0\x81\0\0\0\0\0\0\0\x4\0\0\0\xe8\0\0\0\x1\0\0\0\0\0\0\0\x36\0\0\0\x1\0\0\0\0\0\0\0:\0\0\0\x1\0\0\0\0\0\0\0`\0\0\0\x1\0\0\0\0\0\0\x3\xe8\0\xff\xff\xff\xff\0\0\0\0) diff --git a/dunst/dunstrc b/dunst/dunstrc index ff02e7a..3dab33b 100644 --- a/dunst/dunstrc +++ b/dunst/dunstrc @@ -80,7 +80,7 @@ # Padding between text and separator. padding = 8 - highlight = "#00D8CE" + highlight = "#5E88DD" # Horizontal padding. horizontal_padding = 8 @@ -93,7 +93,7 @@ frame_width = 3 # Defines color of the frame around the notification window. - frame_color = "#00D8CE" + frame_color = "#5E88DD" # Size of gap to display between notifications - requires a compositor. # If value is greater than 0, separator_height will be ignored and a border @@ -215,7 +215,7 @@ max_icon_size = 128 # Paths to default icons (only neccesary when not using recursive icon lookup) - icon_path = /usr/share/icons/Papirus/16x16/status/:/usr/share/icons/Papirus/16x16/devices/:/usr/share/icons/Papirus/16x16/panel/ + icon_path = /usr/share/icons/Papirus/16x16/status/:/usr/share/icons/Papirus/16x16/devices/:/usr/share/icons/Papirus/16x16/panel/:/usr/share/icons/Papirus/22x22/status/ ### History ### diff --git a/eww/eww.yuck b/eww/eww.yuck index 6bf0967..c2b133c 100644 --- a/eww/eww.yuck +++ b/eww/eww.yuck @@ -43,7 +43,7 @@ :y "50" :width "30%" :height "40px" - :anchor "bottom left") + :anchor "top left") :stacking "bg" :reserve (struts :distance "10px" :side "bottom") :windowtype "dock" @@ -74,7 +74,7 @@ (circular-progress :class "music_bar" :value CURRENT :thickness 10 :clockwise true :start-at "${(CURRENT+75)%100}" (image :path "${song.cover}" :image-height 270 :image-width 270))) (box :orientation "v" :spacing 20 :space-evenly "false" :vexpand "false" :hexpand "false" - (label :tooltip "${song.name}" :halign "center" :class "song" :wrap "false" :limit-width 20 :text "${song.name}") + (label :tooltip "${song.name}" :halign "center" :class "song" :wrap "false" :limit-width 32 :text "${song.name}") (label :halign "center" :class "artist" :wrap "false" :limit-width 20 :text "${song.artist}") (box :orientation "h" :spacing 80 :halign "center" :space-evenly "true" :vexpand "false" :hexpand "false" (button :class "btn_controls" :tooltip "History : ${song.prev}" :onclick "./script prev" "󰒮") diff --git a/foot/foot.ini b/foot/foot.ini index c6699f1..dee3d39 100644 --- a/foot/foot.ini +++ b/foot/foot.ini @@ -49,7 +49,7 @@ box-drawings-uses-font-glyphs=yes # indicator-format= [url] -# launch=xdg-open ${url} +launch=google-chrome-stable ${url} # label-letters=sadfjklewcmpgh # osc8-underline=url-mode # protocols=http, https, ftp, ftps, file, gemini, gopher diff --git a/hypr/battery b/hypr/battery new file mode 100755 index 0000000..97e3193 --- /dev/null +++ b/hypr/battery @@ -0,0 +1,20 @@ +#!/bin/sh + +i=10 +dir="/sys/class/power_supply/BAT0/" +icon_dir="/usr/share/icons/Papirus/22x22/panel/" + +[ -n "$1" ] && printf "Sleep for %s seconds\n" "$i" + +while sleep $i; do + capacity_level=$(cat "$dir"/capacity_level) + state=$(cat "$dir"/status) + case $capacity_level in + *ritical) i=10 ;; + *ow) i=60 ;; + *) i=300 ;; + esac + [ -n "$1" ] && printf "Sleep for %s seconds\n" "$i" + [ "$state" = "Discharging" ] || continue + [ "$capacity_level" != "Normal" ] && notify-send -i "$icon_dir/battery-010.svg" -h "string:x-canonical-private-synchronous:${0##*/}" "$(cat "$dir/capacity") Battery $capacity_level, Please Plugin Charger!!" -u "$capacity_level" +done diff --git a/hypr/hyprland.conf b/hypr/hyprland.conf index 2085383..b6b9f88 100644 --- a/hypr/hyprland.conf +++ b/hypr/hyprland.conf @@ -1,7 +1,9 @@ # See https://wiki.hyprland.org/Configuring/Monitors/ -monitor=,highrr,auto,1.6 +monitor=,highrr,auto,1.6,bitdepth,10 +#monitor=,2880x1800@60.000999,auto,1.6,bitdepth,10 + $hypr_dir="$HOME/.config/hypr" -$accent=00D8CE +$accent=5E88DD #envs #env = LIBVA_DRIVER_NAME,nvidia @@ -37,7 +39,7 @@ general { gaps_out = 4 border_size = 3 col.active_border = rgb($accent) - col.inactive_border = rgba(595959aa) + col.inactive_border = rgba(484848aa) resize_on_border=false layout = dwindle @@ -54,7 +56,7 @@ decoration { blur { enabled = yes size = 8 - passes = 3 + passes = 2 } } @@ -87,6 +89,7 @@ gestures { misc { force_default_wallpaper = 0 + vfr = 1 } # See https://wiki.hyprland.org/Configuring/Keywords/ for more @@ -185,8 +188,9 @@ exec-once=dbus-update-activation-environment --systemd --all exec-once=ssh-agent exec-once=/usr/lib/polkit-gnome/polkit-gnome-authentication-agent-1 exec-once=node $HOME/github/arrpc/src > /tmp/arrpc-log -#exec-once=swaybg -i $HOME/.config/wall/9.png +exec-once=swaybg -i $HOME/.config/wall/18.png exec-once=xrdb -merge $HOME/.config/.Xresource exec-once=$hypr_dir/workspace 'focus' -exec-once=sleep 2 && $hypr_dir/workspace +exec-once=$hypr_dir/battery +#exec-once=sleep 2 && $hypr_dir/workspace exec-once=google-chrome-stable diff --git a/hypr/hyprland.png b/hypr/hyprland.png deleted file mode 100644 index ea30745..0000000 Binary files a/hypr/hyprland.png and /dev/null differ diff --git a/hypr/info b/hypr/info index 103aa26..736383f 100755 --- a/hypr/info +++ b/hypr/info @@ -10,9 +10,11 @@ while [ $i -le 5 ]; do temp=$((temp / 1000)) bat_stats=$(cat /sys/class/power_supply/BAT0/status) vol_stats=$(pamixer --get-mute) + charge=$(cat /sys/class/power_supply/BAT*/capacity) [ "$bat_stats" = "Discharging" ] && bat_icon=🔋 || bat_icon=🔌 + [ "$bat_stats" = "Discharging" ] && [ "$charge" -lt 20 ] && bat_icon="🪫" [ "$vol_stats" = "true" ] && vol_icon=🔇 || vol_icon=🔊 - notify-send -i "lol" "<----------(STATS)---------->" "🧠 CPU usage : $(top -ibn1 | sed -nE 's_%Cpu\(s\):(.*)us.*_\1_p' | cut -d' ' -f2-3) %\n🌡️ Cpu Temp : $temp °C\n🔳 RAM : $mem MB / $mem_total_mb MB\n$bat_icon Battery : $(cat /sys/class/power_supply/BAT*/capacity) (${bat_stats})\n☀️ Brightness : $(light -G | cut -d'.' -f1)%\n$vol_icon Volume : $(pamixer --get-volume-human)\n🎵 $(pgrep -af mpvsocket >/dev/null && cut -d ">" -f1 /tmp/yt-music/current | cut -d":" -f2)" -h "string:x-canonical-private-synchronous:${0##*/}" -t 1500 & + notify-send -i "lol" "<----------(STATS)---------->" "🧠 CPU usage : $(top -ibn1 | sed -nE 's_%Cpu\(s\):(.*)us.*_\1_p' | cut -d' ' -f2-3) %\n🌡️ Cpu Temp : $temp °C\n🔳 RAM : $mem MB / $mem_total_mb MB\n$bat_icon Battery : $charge (${bat_stats})\n☀️ Brightness : $(light -G | cut -d'.' -f1)%\n$vol_icon Volume : $(pamixer --get-volume-human)\n🎵 $(pgrep -af mpvsocket >/dev/null && cut -d ">" -f1 /tmp/yt-music/current | cut -d":" -f2)" -h "string:x-canonical-private-synchronous:${0##*/}" -t 1500 & : $((i += 1)) sleep 1 done diff --git a/hypr/wall_2K.png b/hypr/wall_2K.png deleted file mode 100644 index 5aea012..0000000 Binary files a/hypr/wall_2K.png and /dev/null differ diff --git a/hypr/wall_4K.png b/hypr/wall_4K.png deleted file mode 100644 index f835a97..0000000 Binary files a/hypr/wall_4K.png and /dev/null differ diff --git a/hypr/wall_8K.png b/hypr/wall_8K.png deleted file mode 100644 index 539aa97..0000000 Binary files a/hypr/wall_8K.png and /dev/null differ diff --git a/nvim/init.lua b/nvim/init.lua index 0875924..e2f3866 100644 --- a/nvim/init.lua +++ b/nvim/init.lua @@ -97,7 +97,7 @@ end -- Enable some language servers with the additional completion capabilities offered by nvim-cmp -local servers = { 'bashls', 'pyright', 'lua_ls', 'intelephense','phpactor' , 'html' ,'cssls'} +local servers = { 'bashls', 'pyright', 'lua_ls', 'html' ,'cssls'} for _, lsp in ipairs(servers) do lspconfig[lsp].setup { capabilities = capabilities, diff --git a/nvim/lazy-lock.json b/nvim/lazy-lock.json index ffa37fd..0c5f5d9 100644 --- a/nvim/lazy-lock.json +++ b/nvim/lazy-lock.json @@ -1,25 +1,25 @@ { - "LuaSnip": { "branch": "master", "commit": "2dbef19461198630b3d7c39f414d09fb07d1fdd2" }, + "LuaSnip": { "branch": "master", "commit": "f3b3d3446bcbfa62d638b1903ff00a78b2b730a1" }, "cmp-buffer": { "branch": "main", "commit": "3022dbc9166796b644a841a02de8dd1cc1d311fa" }, "cmp-cmdline": { "branch": "main", "commit": "8ee981b4a91f536f52add291594e89fb6645e451" }, "cmp-nvim-lsp": { "branch": "main", "commit": "5af77f54de1b16c34b23cba810150689a3a90312" }, "cmp-nvim-lua": { "branch": "main", "commit": "f12408bdb54c39c23e67cab726264c10db33ada8" }, "cmp-path": { "branch": "main", "commit": "91ff86cd9c29299a64f968ebb45846c485725f23" }, "cmp_luasnip": { "branch": "master", "commit": "05a9ab28b53f71d1aece421ef32fee2cb857a843" }, - "friendly-snippets": { "branch": "main", "commit": "b8fae73a479ae0a1c54f5c98fa687ae8a0addc53" }, - "lazy.nvim": { "branch": "main", "commit": "28126922c9b54e35a192ac415788f202c3944c9f" }, + "friendly-snippets": { "branch": "main", "commit": "dbd45e9ba76d535e4cba88afa1b7aa43bb765336" }, + "lazy.nvim": { "branch": "main", "commit": "aedcd79811d491b60d0a6577a9c1701063c2a609" }, "lualine.nvim": { "branch": "master", "commit": "7d131a8d3ba5016229e8a1d08bf8782acea98852" }, - "mason-lspconfig.nvim": { "branch": "main", "commit": "0954d7730e749d606ddf8d7ae8846848be435d53" }, + "mason-lspconfig.nvim": { "branch": "main", "commit": "60f6805b12a12e8a912aeb2f975dec1794a8994e" }, "mason.nvim": { "branch": "main", "commit": "c43eeb5614a09dc17c03a7fb49de2e05de203924" }, "monokai-pro.nvim": { "branch": "main", "commit": "8ba1fea7774e7c522b006091a9adb32b5cef95b9" }, - "nvim-autopairs": { "branch": "master", "commit": "096d0baecc34f6c5d8a6dd25851e9d5ad338209b" }, + "nvim-autopairs": { "branch": "master", "commit": "90f824d37c0cb079d2764927e73af77faa9ba0ef" }, "nvim-cmp": { "branch": "main", "commit": "04e0ca376d6abdbfc8b52180f8ea236cbfddf782" }, "nvim-colorizer.lua": { "branch": "master", "commit": "36c610a9717cc9ec426a07c8e6bf3b3abcb139d6" }, - "nvim-dap": { "branch": "master", "commit": "9adbfdca13afbe646d09a8d7a86d5d031fb9c5a5" }, - "nvim-dap-python": { "branch": "master", "commit": "f5b6f3a90aae0284b61fb3565e575267c19a16e6" }, - "nvim-lspconfig": { "branch": "master", "commit": "d12140c5687a1186b95b3f42dbc6cc769df0cf0d" }, + "nvim-dap": { "branch": "master", "commit": "fc880e82059eb21c0fa896be60146e5f17680648" }, + "nvim-dap-python": { "branch": "master", "commit": "66560f0ebddf96604f7037e1efad3ba6942761e6" }, + "nvim-lspconfig": { "branch": "master", "commit": "aa199c5bbdbb7fd28b56212a89206f13db02799e" }, "nvim-parinfer": { "branch": "master", "commit": "5ca09287ab3f4144f78ff7977fabc27466f71044" }, - "nvim-treesitter": { "branch": "master", "commit": "4fbf150a1621d52f17b099506e1a32f107079210" }, + "nvim-treesitter": { "branch": "master", "commit": "d1484a1507b36ca6af7f7925c627846010faeabe" }, "packer.nvim": { "branch": "master", "commit": "ea0cc3c59f67c440c5ff0bbe4fb9420f4350b9a3" }, - "telescope.nvim": { "branch": "master", "commit": "236083884cfe6c874e03e6cb4e7cb08809c1333c" } + "telescope.nvim": { "branch": "master", "commit": "b744cf59752aaa01561afb4223006de26f3836fd" } } \ No newline at end of file diff --git a/nvtop/interface.ini b/nvtop/interface.ini new file mode 100644 index 0000000..2a5fb58 --- /dev/null +++ b/nvtop/interface.ini @@ -0,0 +1,39 @@ +; Please do not edit this file. +; The file is automatically generated and modified by nvtop by pressing F12. +; If you wish to modify an option, use nvtop's setup window (F2) and follow up by saving the preference (F12). +[GeneralOption] +UseColor = true +UpdateInterval = 1000 +ShowInfoMessages = true + +[HeaderOption] +UseFahrenheit = false +EncodeHideTimer = 3.000000e+01 + +[ChartOption] +ReverseChart = false + +[ProcessListOption] +HideNvtopProcess = true +SortOrder = descending +SortBy = memory +DisplayField = pId +DisplayField = user +DisplayField = gpuId +DisplayField = type +DisplayField = gpuRate +DisplayField = encRate +DisplayField = decRate +DisplayField = memory +DisplayField = cpuUsage +DisplayField = cpuMem +DisplayField = cmdline + +[Device] +Pdev = 0000:04:00.0 +Monitor = true +ShownInfo = gpuRate +ShownInfo = gpuMemRate +ShownInfo = encodeRate +ShownInfo = decodeRate + diff --git a/qt5ct/qt5ct.conf b/qt5ct/qt5ct.conf index 66c38fc..c041406 100644 --- a/qt5ct/qt5ct.conf +++ b/qt5ct/qt5ct.conf @@ -2,7 +2,7 @@ color_scheme_path=/usr/share/qt5ct/colors/darker.conf custom_palette=true icon_theme=ePapirus-Dark -standard_dialogs=gtk3 +standard_dialogs=xdgdesktopportal style=Fusion [Fonts] @@ -25,7 +25,7 @@ underline_shortcut=1 wheel_scroll_lines=3 [SettingsWindow] -geometry=@ByteArray(\x1\xd9\xd0\xcb\0\x3\0\0\0\0\0\0\0\0\0\0\0\0\x3\xb3\0\0\x4)\0\0\0\0\0\0\0\0\0\0\a\x7f\0\0\x4\x37\0\0\0\0\x2\0\0\0\a\x80\0\0\0\0\0\0\0\0\0\0\x3\xb3\0\0\x4)) +geometry=@ByteArray(\x1\xd9\xd0\xcb\0\x3\0\0\0\0\0\0\0\0\0\0\0\0\x3v\0\0\x4U\0\0\0\0\0\0\0\0\0\0\a\x7f\0\0\x4\x37\0\0\0\0\x2\0\0\0\a\a\0\0\0\0\0\0\0\0\0\0\x3v\0\0\x4U) [Troubleshooting] force_raster_widgets=1 diff --git a/wall/18.png b/wall/18.png new file mode 100644 index 0000000..25af384 Binary files /dev/null and b/wall/18.png differ diff --git a/zsh/zshrc b/zsh/zshrc index 1826347..5b5c5b4 100644 --- a/zsh/zshrc +++ b/zsh/zshrc @@ -126,7 +126,7 @@ help() { addpkg() { [ -z "$*" ] && printf "\033[1;31mPlease write the name of package (just some words)..\033[0m" && return 1 - paru -Ss "$*" | sed -nE 's|^([a-z]*)/([^ ]*).*|[\1] \2|p' | fzf --layout=reverse --border -1 --preview 'paru -Si $(echo {} | cut -d" " -f2) | bat --language=yaml --color=always -pp' --preview-window right:65%:wrap -m | cut -d' ' -f2- | paru -S - + paru -Ss "$*" | sed -nE 's|^([a-zA-Z]*)/([^ ]*).*|[\1] \2|p' | fzf --layout=reverse --border --preview 'paru -Si $(echo {} | cut -d" " -f2) | bat --language=yaml --color=always -pp' --preview-window right:65%:wrap -m | cut -d' ' -f2- | paru -S - } rmpkg() {