[Insert your commit message here. Be sure to make it descriptive.]

This commit is contained in:
coolnsx
2024-02-26 18:08:57 +05:30
parent ca2da57aa3
commit 09ab6e0765
18 changed files with 95 additions and 29 deletions

3
.gitignore vendored
View File

@@ -1,5 +1,5 @@
autostart autostart
Code Code/*
composer composer
dconf dconf
google-chrome google-chrome
@@ -20,3 +20,4 @@ libreoffice
epdfview epdfview
btop btop
xpra xpra
psysh

View File

@@ -1,7 +1,7 @@
[FileDialog] [FileDialog]
history=@Invalid() history=@Invalid()
lastVisited=file:///dev lastVisited=file:///dev
qtVersion=5.15.10 qtVersion=5.15.12
shortcuts=file:, file:///home/tanveer shortcuts=file:, file:///home/tanveer
sidebarWidth=84 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) 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)

View File

@@ -80,7 +80,7 @@
# Padding between text and separator. # Padding between text and separator.
padding = 8 padding = 8
highlight = "#00D8CE" highlight = "#5E88DD"
# Horizontal padding. # Horizontal padding.
horizontal_padding = 8 horizontal_padding = 8
@@ -93,7 +93,7 @@
frame_width = 3 frame_width = 3
# Defines color of the frame around the notification window. # 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. # Size of gap to display between notifications - requires a compositor.
# If value is greater than 0, separator_height will be ignored and a border # If value is greater than 0, separator_height will be ignored and a border
@@ -215,7 +215,7 @@
max_icon_size = 128 max_icon_size = 128
# Paths to default icons (only neccesary when not using recursive icon lookup) # 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 ### ### History ###

View File

@@ -43,7 +43,7 @@
:y "50" :y "50"
:width "30%" :width "30%"
:height "40px" :height "40px"
:anchor "bottom left") :anchor "top left")
:stacking "bg" :stacking "bg"
:reserve (struts :distance "10px" :side "bottom") :reserve (struts :distance "10px" :side "bottom")
:windowtype "dock" :windowtype "dock"
@@ -74,7 +74,7 @@
(circular-progress :class "music_bar" :value CURRENT :thickness 10 :clockwise true :start-at "${(CURRENT+75)%100}" (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))) (image :path "${song.cover}" :image-height 270 :image-width 270)))
(box :orientation "v" :spacing 20 :space-evenly "false" :vexpand "false" :hexpand "false" (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}") (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" (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" "󰒮") (button :class "btn_controls" :tooltip "History : ${song.prev}" :onclick "./script prev" "󰒮")

View File

@@ -49,7 +49,7 @@ box-drawings-uses-font-glyphs=yes
# indicator-format= # indicator-format=
[url] [url]
# launch=xdg-open ${url} launch=google-chrome-stable ${url}
# label-letters=sadfjklewcmpgh # label-letters=sadfjklewcmpgh
# osc8-underline=url-mode # osc8-underline=url-mode
# protocols=http, https, ftp, ftps, file, gemini, gopher # protocols=http, https, ftp, ftps, file, gemini, gopher

20
hypr/battery Executable file
View File

@@ -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

View File

@@ -1,7 +1,9 @@
# See https://wiki.hyprland.org/Configuring/Monitors/ # 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" $hypr_dir="$HOME/.config/hypr"
$accent=00D8CE $accent=5E88DD
#envs #envs
#env = LIBVA_DRIVER_NAME,nvidia #env = LIBVA_DRIVER_NAME,nvidia
@@ -37,7 +39,7 @@ general {
gaps_out = 4 gaps_out = 4
border_size = 3 border_size = 3
col.active_border = rgb($accent) col.active_border = rgb($accent)
col.inactive_border = rgba(595959aa) col.inactive_border = rgba(484848aa)
resize_on_border=false resize_on_border=false
layout = dwindle layout = dwindle
@@ -54,7 +56,7 @@ decoration {
blur { blur {
enabled = yes enabled = yes
size = 8 size = 8
passes = 3 passes = 2
} }
} }
@@ -87,6 +89,7 @@ gestures {
misc { misc {
force_default_wallpaper = 0 force_default_wallpaper = 0
vfr = 1
} }
# See https://wiki.hyprland.org/Configuring/Keywords/ for more # 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=ssh-agent
exec-once=/usr/lib/polkit-gnome/polkit-gnome-authentication-agent-1 exec-once=/usr/lib/polkit-gnome/polkit-gnome-authentication-agent-1
exec-once=node $HOME/github/arrpc/src > /tmp/arrpc-log 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=xrdb -merge $HOME/.config/.Xresource
exec-once=$hypr_dir/workspace 'focus' 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 exec-once=google-chrome-stable

Binary file not shown.

Before

Width:  |  Height:  |  Size: 76 KiB

View File

@@ -10,9 +10,11 @@ while [ $i -le 5 ]; do
temp=$((temp / 1000)) temp=$((temp / 1000))
bat_stats=$(cat /sys/class/power_supply/BAT0/status) bat_stats=$(cat /sys/class/power_supply/BAT0/status)
vol_stats=$(pamixer --get-mute) vol_stats=$(pamixer --get-mute)
charge=$(cat /sys/class/power_supply/BAT*/capacity)
[ "$bat_stats" = "Discharging" ] && bat_icon=🔋 || bat_icon=🔌 [ "$bat_stats" = "Discharging" ] && bat_icon=🔋 || bat_icon=🔌
[ "$bat_stats" = "Discharging" ] && [ "$charge" -lt 20 ] && bat_icon="🪫"
[ "$vol_stats" = "true" ] && vol_icon=🔇 || vol_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)) : $((i += 1))
sleep 1 sleep 1
done done

Binary file not shown.

Before

Width:  |  Height:  |  Size: 18 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 48 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 146 KiB

View File

@@ -97,7 +97,7 @@ end
-- Enable some language servers with the additional completion capabilities offered by nvim-cmp -- 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 for _, lsp in ipairs(servers) do
lspconfig[lsp].setup { lspconfig[lsp].setup {
capabilities = capabilities, capabilities = capabilities,

View File

@@ -1,25 +1,25 @@
{ {
"LuaSnip": { "branch": "master", "commit": "2dbef19461198630b3d7c39f414d09fb07d1fdd2" }, "LuaSnip": { "branch": "master", "commit": "f3b3d3446bcbfa62d638b1903ff00a78b2b730a1" },
"cmp-buffer": { "branch": "main", "commit": "3022dbc9166796b644a841a02de8dd1cc1d311fa" }, "cmp-buffer": { "branch": "main", "commit": "3022dbc9166796b644a841a02de8dd1cc1d311fa" },
"cmp-cmdline": { "branch": "main", "commit": "8ee981b4a91f536f52add291594e89fb6645e451" }, "cmp-cmdline": { "branch": "main", "commit": "8ee981b4a91f536f52add291594e89fb6645e451" },
"cmp-nvim-lsp": { "branch": "main", "commit": "5af77f54de1b16c34b23cba810150689a3a90312" }, "cmp-nvim-lsp": { "branch": "main", "commit": "5af77f54de1b16c34b23cba810150689a3a90312" },
"cmp-nvim-lua": { "branch": "main", "commit": "f12408bdb54c39c23e67cab726264c10db33ada8" }, "cmp-nvim-lua": { "branch": "main", "commit": "f12408bdb54c39c23e67cab726264c10db33ada8" },
"cmp-path": { "branch": "main", "commit": "91ff86cd9c29299a64f968ebb45846c485725f23" }, "cmp-path": { "branch": "main", "commit": "91ff86cd9c29299a64f968ebb45846c485725f23" },
"cmp_luasnip": { "branch": "master", "commit": "05a9ab28b53f71d1aece421ef32fee2cb857a843" }, "cmp_luasnip": { "branch": "master", "commit": "05a9ab28b53f71d1aece421ef32fee2cb857a843" },
"friendly-snippets": { "branch": "main", "commit": "b8fae73a479ae0a1c54f5c98fa687ae8a0addc53" }, "friendly-snippets": { "branch": "main", "commit": "dbd45e9ba76d535e4cba88afa1b7aa43bb765336" },
"lazy.nvim": { "branch": "main", "commit": "28126922c9b54e35a192ac415788f202c3944c9f" }, "lazy.nvim": { "branch": "main", "commit": "aedcd79811d491b60d0a6577a9c1701063c2a609" },
"lualine.nvim": { "branch": "master", "commit": "7d131a8d3ba5016229e8a1d08bf8782acea98852" }, "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" }, "mason.nvim": { "branch": "main", "commit": "c43eeb5614a09dc17c03a7fb49de2e05de203924" },
"monokai-pro.nvim": { "branch": "main", "commit": "8ba1fea7774e7c522b006091a9adb32b5cef95b9" }, "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-cmp": { "branch": "main", "commit": "04e0ca376d6abdbfc8b52180f8ea236cbfddf782" },
"nvim-colorizer.lua": { "branch": "master", "commit": "36c610a9717cc9ec426a07c8e6bf3b3abcb139d6" }, "nvim-colorizer.lua": { "branch": "master", "commit": "36c610a9717cc9ec426a07c8e6bf3b3abcb139d6" },
"nvim-dap": { "branch": "master", "commit": "9adbfdca13afbe646d09a8d7a86d5d031fb9c5a5" }, "nvim-dap": { "branch": "master", "commit": "fc880e82059eb21c0fa896be60146e5f17680648" },
"nvim-dap-python": { "branch": "master", "commit": "f5b6f3a90aae0284b61fb3565e575267c19a16e6" }, "nvim-dap-python": { "branch": "master", "commit": "66560f0ebddf96604f7037e1efad3ba6942761e6" },
"nvim-lspconfig": { "branch": "master", "commit": "d12140c5687a1186b95b3f42dbc6cc769df0cf0d" }, "nvim-lspconfig": { "branch": "master", "commit": "aa199c5bbdbb7fd28b56212a89206f13db02799e" },
"nvim-parinfer": { "branch": "master", "commit": "5ca09287ab3f4144f78ff7977fabc27466f71044" }, "nvim-parinfer": { "branch": "master", "commit": "5ca09287ab3f4144f78ff7977fabc27466f71044" },
"nvim-treesitter": { "branch": "master", "commit": "4fbf150a1621d52f17b099506e1a32f107079210" }, "nvim-treesitter": { "branch": "master", "commit": "d1484a1507b36ca6af7f7925c627846010faeabe" },
"packer.nvim": { "branch": "master", "commit": "ea0cc3c59f67c440c5ff0bbe4fb9420f4350b9a3" }, "packer.nvim": { "branch": "master", "commit": "ea0cc3c59f67c440c5ff0bbe4fb9420f4350b9a3" },
"telescope.nvim": { "branch": "master", "commit": "236083884cfe6c874e03e6cb4e7cb08809c1333c" } "telescope.nvim": { "branch": "master", "commit": "b744cf59752aaa01561afb4223006de26f3836fd" }
} }

39
nvtop/interface.ini Normal file
View File

@@ -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

View File

@@ -2,7 +2,7 @@
color_scheme_path=/usr/share/qt5ct/colors/darker.conf color_scheme_path=/usr/share/qt5ct/colors/darker.conf
custom_palette=true custom_palette=true
icon_theme=ePapirus-Dark icon_theme=ePapirus-Dark
standard_dialogs=gtk3 standard_dialogs=xdgdesktopportal
style=Fusion style=Fusion
[Fonts] [Fonts]
@@ -25,7 +25,7 @@ underline_shortcut=1
wheel_scroll_lines=3 wheel_scroll_lines=3
[SettingsWindow] [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] [Troubleshooting]
force_raster_widgets=1 force_raster_widgets=1

BIN
wall/18.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.1 MiB

View File

@@ -126,7 +126,7 @@ help() {
addpkg() { addpkg() {
[ -z "$*" ] && printf "\033[1;31mPlease write the name of package (just some words)..\033[0m" && return 1 [ -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() { rmpkg() {