REALLY FUCKING FIXED

This commit is contained in:
coolnsx
2022-12-09 13:39:06 +05:30
parent 251f5340dd
commit fcd970e366
15 changed files with 112 additions and 80 deletions

2
.gitignore vendored
View File

@@ -17,3 +17,5 @@ user-dirs.dirs
user-dirs.locale
xfce4
libvirt
libreoffice
epdfview

View File

@@ -4,7 +4,7 @@
### Display ###
# Which monitor should the notifications be displayed on.
monitor = 0
#monitor = 0
# Display notification on focused monitor. Possible modes are:
# mouse: follow mouse pointer
@@ -17,14 +17,14 @@
#
# If this option is set to mouse or keyboard, the monitor option
# will be ignored.
follow = mouse
follow = keyboard
### Geometry ###
# dynamic width from 0 to 300
# width = (0, 300)
# constant width of 300
width = 400
width = 360
# The maximum height of a single notification, excluding the frame.
height = 400
@@ -79,7 +79,7 @@
# Padding between text and separator.
padding = 8
highlight = "#1affff"
highlight = "#D81860"
# Horizontal padding.
horizontal_padding = 8
@@ -92,7 +92,7 @@
frame_width = 3
# Defines color of the frame around the notification window.
frame_color = "#1affff"
frame_color = "#D81860"
# Size of gap to display between notifications - requires a compositor.
# If value is greater than 0, separator_height will be ignored and a border
@@ -160,7 +160,7 @@
# %n progress value if set without any extra characters
# %% Literal %
# Markup is allowed
format = "<b>%s</b> %n\n%b"
format = "<b>%s</b>\n%b"
# Alignment of message text.
# Possible values are "left", "center" and "right".
@@ -198,7 +198,7 @@
enable_recursive_icon_lookup = true
# Set icon theme (only used for recursive icon lookup)
icon_theme = Adwaita
icon_theme = Papirus
# You can also set multiple icon themes, with the leftmost one being used first.
# icon_theme = "Adwaita, breeze"
@@ -214,7 +214,7 @@
max_icon_size = 128
# Paths to default icons (only neccesary when not using recursive icon lookup)
icon_path = /usr/share/icons/gnome/16x16/status/:/usr/share/icons/gnome/16x16/devices/
icon_path = /usr/share/icons/Papirus/16x16/status/:/usr/share/icons/Papirus/16x16/devices/:/usr/share/icons/Papirus/16x16/panel/
### History ###
@@ -228,7 +228,7 @@
### Misc/Advanced ###
# dmenu path.
dmenu = /usr/local/bin/dmenu -p dunst:
dmenu = "/sbin/bemenu -i --fn 'Roboto 16' -l 10 -c -W 0.4 -B 3 -p 'dunst:'"
# Browser for opening urls in context menu.
browser = /usr/bin/xdg-open

View File

@@ -2,7 +2,7 @@
LocationMode=path-bar
ShowHidden=false
ShowSizeColumn=true
GeometryX=640
GeometryX=2560
GeometryY=225
GeometryWidth=640
GeometryHeight=630

View File

@@ -1,2 +1 @@
file:///home/tanveer/Downloads Downloads
file:///mnt/data data

View File

@@ -1,6 +1,6 @@
#!/bin/sh
for i in $(seq 5);do
notify-send "$(date)" -r 3 -t 1200 &
notify-send -i "/usr/share/icons/Papirus/16x16/panel/clockify-blue.svg" "$(date)" -r 3 -t 1200 &
sleep 1
done

View File

@@ -1,5 +1,6 @@
# See https://wiki.hyprland.org/Configuring/Monitors/
monitor=,preferred,auto,1
$hypr_dir="$HOME/.config/hypr"
# See https://wiki.hyprland.org/Configuring/Keywords/ for more
# For all categories, see https://wiki.hyprland.org/Configuring/Variables/
@@ -25,7 +26,7 @@ general {
gaps_in = 2
gaps_out = 4
border_size = 3
col.active_border = rgba(1affffee)
col.active_border = rgba(D81860FF)
col.inactive_border = rgba(595959aa)
layout = dwindle
@@ -125,7 +126,7 @@ bindm = $mainMod, mouse:273, resizewindow
#applications shortcuts
bind = $mainMod, F4, exec, $HOME/repos_scripts/ani-new
bind = $mainMod, F5, exec, $HOME/.config/hypr/wifi
bind = $mainMod, F5, exec, $hypr_dir/wifi
bind = $mainMod, return, exec, foot
#bind = $mainMod, Q, exec, wofi --show drun
bind = $mainMod, Q, exec, dmenu_run_history
@@ -136,23 +137,25 @@ bind = $mainMod, B, exec, $HOME/repos_scripts/bkmark "add"
bind = $mainMod, I, exec, $HOME/repos_scripts/bkmark
bind = $mainMod SHIFT, B, exec, $HOME/repos_scripts/bkmark "rm"
#bind = $mainMod, S, exec, skypeforlinux
#bind = SUPER_L, P, exec, $HOME/.config/hypr/workspace
bind = $mainMod, F11, exec, $HOME/.config/hypr/info
bind = $mainMod, F10, exec, $HOME/.config/hypr/bluetooth
bind = $mainMod, F6, exec, $HOME/.config/hypr/workspace
bind = $mainMod SHIFT, F6, exec, $HOME/.config/hypr/workspace "toggle"
bind = $mainMod, F1, exec, $HOME/.config/hypr/screenshot 'selclip'
bind = $mainMod SHIFT, F1, exec, $HOME/.config/hypr/screenshot 'fullclip'
bind = ,Print, exec, $HOME/.config/hypr/screenshot 'fullsave'
bind = $mainMod, F12, exec, $HOME/.config/hypr/date
bind = $mainMod, Delete, exec, $HOME/.config/hypr/workspace 'list'
bind = $mainMod, F11, exec, $hypr_dir/info
bind = $mainMod, F10, exec, $hypr_dir/bluetooth
bind = $mainMod, F6, exec, $hypr_dir/workspace
bind = $mainMod SHIFT, F6, exec, $hypr_dir/workspace "toggle"
bind = $mainMod, F1, exec, $hypr_dir/screenshot 'selclip'
bind = $mainMod SHIFT, F1, exec, $hypr_dir/screenshot 'fullclip'
bind = ,Print, exec, $hypr_dir/screenshot 'fullsave'
bind = $mainMod, F12, exec, $hypr_dir/date
bind = $mainMod, Delete, exec, $hypr_dir/workspace 'list'
#media keys
binde=, XF86AudioRaiseVolume, exec, pamixer -i 2 && $HOME/.config/hypr/volume
binde=$mainMod, F2, exec, pamixer -d 2 && $HOME/.config/hypr/volume #my XF86AudioLowerVolume doesn't work
binde=$mainMod, F9, exec, playerctl play-pause
binde=, XF86MonBrightnessDown, exec, light -U 5 && notify-send -h int:value:$(light -G | cut -d'.' -f1) "☀️ " -t 1000 -r 1
binde=, XF86MonBrightnessUp, exec, light -A 5 && notify-send -h int:value:$(light -G | cut -d'.' -f1) "☀️ " -t 1000 -r 1
binde=, XF86AudioRaiseVolume, exec, pamixer -i 2 && $hypr_dir/volume
binde=$mainMod, F2, exec, pamixer -d 2 && $hypr_dir/volume #my XF86AudioLowerVolume doesn't work
binde=$mainMod, F8, exec, echo cycle pause | socat - "/tmp/mpvsocket"
binde=$mainMod SHIFT, F8, exec, $HOME/repos_scripts/yt-music search_play
binde=$mainMod, F9, exec, $HOME/repos_scripts/yt-music play_next
binde=$mainMod SHIFT, F9, exec, $HOME/repos_scripts/yt-music play_next menu
binde=, XF86MonBrightnessDown, exec, light -U 5 && notify-send -i "lol" "☀️ $(light -G | cut -d'.' -f1)" -t 1000 -r 1
binde=, XF86MonBrightnessUp, exec, light -A 5 && notify-send -i "lol" "☀️ $(light -G | cut -d'.' -f1)" -t 1000 -r 1
#windows rules
windowrulev2=workspace 1,class:^(google-chrome)$
@@ -167,8 +170,9 @@ windowrulev2=workspace 4,class:^(pavucontrol)$
#startup applications
exec-once=dbus-update-activation-environment --systemd WAYLAND_DISPLAY XDG_CURRENT_DESKTOP
exec-once=ssh-agent
exec-once=swaybg -i ~/wall/8.png
exec-once=$HOME/.config/hypr/workspace 'focus'
exec-once=sleep 5 && $HOME/.config/hypr/workspace
exec-once=$HOME/repos_scripts/yt-music loop
exec-once=swaybg -i ~/wall/9.png
exec-once=$hypr_dir/workspace 'focus'
exec-once=sleep 5 && $hypr_dir/workspace
#exec-once=skypeforlinux
exec-once=google-chrome-stable 'https://web.skype.com/?openPstnPage=true'
exec-once=sleep 2 && google-chrome-stable 'https://web.skype.com/?openPstnPage=true'

View File

@@ -10,7 +10,7 @@ while [ $i -le "5" ];do
vol_stats=$(pamixer --get-mute)
[ "$bat_stats" = "Discharging" ] && bat_icon=🔋 || bat_icon=🔌
[ "$vol_stats" = "true" ] && vol_icon=🔇 || vol_icon=🔊
notify-send "<------------(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 / 7733 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)" -r 2 -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 / 7733 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🎵 $(cut -d ">" -f1 $HOME/.cache/yt-music/current | cut -d":" -f2)" -r 2 -t 1500 &
: $((i+=1))
sleep 1
done

View File

@@ -1,8 +1,7 @@
#!/bin/sh
x="Screenshot copied to clipboard"
[ "$*" = "fullclip" ] && grim - | wl-copy -t image/png
[ "$*" = "fullsave" ] && grim && x="Screenshot saved"
[ "$*" = "selclip" ] && grim -g "$(slurp)" - | wl-copy -t image/png
notify-send "$x"
icon="/usr/share/icons/Papirus/16x16/apps/applets-screenshooter.svg"
killall grim slurp
[ "$*" = "fullclip" ] && grim - | wl-copy -t image/png && notify-send -i "$icon" "Screenshot copied to clipboard"
[ "$*" = "fullsave" ] && grim && notify-send -i "$icon" "Screenshot saved"
[ "$*" = "selclip" ] && grim -g "$(slurp)" - | wl-copy -t image/png && notify-send -i "$icon" "Screenshot copied to clipboard"

View File

@@ -1,5 +1,8 @@
#!/bin/sh
vol_icon=🔊
pamixer --get-mute | sh && vol_icon=🔇
notify-send -h int:value:$(pamixer --get-volume) "$vol_icon" -t 1000 -r 1
vol_int=$(pamixer --get-volume)
vol_icon="low"
[ "$vol_int" -gt 33 ] && vol_icon="medium"
[ "$vol_int" -gt 66 ] && vol_icon="high"
pamixer --get-mute | sh && vol_icon="muted"
notify-send -i "/usr/share/icons/Papirus/16x16/panel/audio-volume-$vol_icon.svg" "$vol_int %" -t 1000 -r 1

View File

@@ -1,7 +1,9 @@
#!/bin/bash
if nmcli radio wifi | grep -q 'enabled' ; then
nmcli radio wifi off
wifi_icon="offline"
else
nmcli radio wifi on
wifi_icon="acquiring"
fi
notify-send "wifi $(nmcli radio wifi)" -r 1
notify-send -i "/usr/share/icons/Papirus/16x16/panel/network-wireless-$wifi_icon.svg" "wifi $(nmcli radio wifi)" -r 1

View File

@@ -1,7 +1,7 @@
#!/bin/sh
setup_dual_monitor(){
sed -i "s/monitor=,preferred,0x0,1,mirror,eDP-1/monitor=,preferred,auto,1/g" $HOME/.config/hypr/hyprland.conf
sed -i "s/monitor=,1920x1080,0x0,1,mirror,eDP-1/monitor=,preferred,auto,1/g" $HOME/.config/hypr/hyprland.conf
sleep 2
if hyprctl monitors | grep -q "HDMI-A-1";then
notify-send "Setting up dual monitor workflow"
@@ -11,7 +11,6 @@ setup_dual_monitor(){
done
hyprctl dispatch moveworkspacetomonitor "4 1"
fi
notify-send "done"
}
handle_it(){
@@ -21,7 +20,7 @@ handle_it(){
if [ "$choice" = "Extend" ];then
setup_dual_monitor
else
sed -i "s/monitor=,preferred,auto,1/monitor=,preferred,0x0,1,mirror,eDP-1/g" $HOME/.config/hypr/hyprland.conf
sed -i "s/monitor=,preferred,auto,1/monitor=,1920x1080,0x0,1,mirror,eDP-1/g" $HOME/.config/hypr/hyprland.conf
fi
}
@@ -29,15 +28,15 @@ case $1 in
list)
#only lists the open applications with their workspace number so u can safely close them
for i in $(seq 4);do
notify-send "$(hyprctl clients | sed -nE 's_.*class: ([^ ]*).*_\1_p;s_.*workspace: ([^ ]*).*_workspace \1 : _p' | sed 'N;s/\n/ /')" -r 3 -t 1500
notify-send -i "lol" "$(hyprctl clients | sed -nE 's_.*class: ([^ ]*).*_\1_p;s_.*workspace: ([^ ]*).*_workspace \1 : _p' | sed 'N;s/\n/ /')" -r 3 -t 1500
sleep 1
done ;;
focus)
#shows the workspace number as notification whenever u switch workspaces and also handles the dual monitor setup on the fly(perfect for laptop users)
socat - UNIX-CONNECT:/tmp/hypr/$HYPRLAND_INSTANCE_SIGNATURE/.socket2.sock | while read line;do
printf "%s" "$line" | grep -q "monitoradded" && handle_it "$line"
printf "%s" "$line" | grep -q "monitorremoved" && sed -i "s/monitor=,preferred,0x0,1,mirror,eDP-1/monitor=,preferred,auto,1/g" $HOME/.config/hypr/hyprland.conf
notify-send "$(printf "$line" | sed -nE 's_^(workspace)>>([^ ]*)_\1 \2_p')" -r 1 -t 700 2>/dev/null
printf "%s" "$line" | grep -q "monitorremoved" && sed -i "s/monitor=,1920x1080,0x0,1,mirror,eDP-1/monitor=,preferred,auto,1/g" $HOME/.config/hypr/hyprland.conf
notify-send -i "lol" "$(printf "$line" | sed -nE 's_^(workspace)>>([^ ]*)_\1 \2_p')" -r 1 -t 700 2>/dev/null
done ;;
toggle)
#toggle between mirror and extend setup. this function should be keybinded

View File

@@ -26,6 +26,8 @@ require('packer').startup(function(use)
}
use 'hrsh7th/cmp-nvim-lsp'
use 'hrsh7th/cmp-nvim-lua'
use 'gpanders/nvim-parinfer'
use 'mfussenegger/nvim-dap'
use 'hrsh7th/cmp-buffer'
use 'hrsh7th/cmp-path'
use 'norcalli/nvim-colorizer.lua'
@@ -58,12 +60,32 @@ local capabilities = vim.lsp.protocol.make_client_capabilities()
capabilities = require('cmp_nvim_lsp').default_capabilities(capabilities)
local lspconfig = require('lspconfig')
local configs = require ('lspconfig.configs')
--for enabling intelephense
if not configs.intelephense then
configs.intelephense = {
default_config = {
cmd = { 'intelephense', '--stdio' };
filetypes = { 'php' };
root_dir = function (fname)
return vim.loop.cwd();
end;
settings = {
intelephense = {
files = {
maxSize = 1000000;
};
}
}
}
}
end
-- Enable some language servers with the additional completion capabilities offered by nvim-cmp
local servers = { 'bashls', 'pyright', 'sumneko_lua', 'clangd', 'html','cssls'}
local servers = { 'bashls', 'pyright', 'sumneko_lua', 'clangd','intelephense','phpactor'}
for _, lsp in ipairs(servers) do
lspconfig[lsp].setup {
-- on_attach = my_custom_on_attach,
capabilities = capabilities,
}
end
@@ -131,25 +153,17 @@ require('lualine').setup {
--theme = 'pywal',
}
}
--vim.cmd[[hi Normal ctermbg=none guibg=none]]
--vim.cmd[[hi NormalNC ctermbg=none guibg=none]]
--vim.cmd[[hi Comment ctermbg=none guibg=none]]
--vim.cmd[[hi Constant ctermbg=none guibg=none]]
--vim.cmd[[hi Special ctermbg=none guibg=none]]
--vim.cmd[[hi Identifier ctermbg=none guibg=none]]
--vim.cmd[[hi Statement ctermbg=none guibg=none]]
--vim.cmd[[hi PreProc ctermbg=none guibg=none]]
--vim.cmd[[hi Type ctermbg=none guibg=none]]
--vim.cmd[[hi Underlined ctermbg=none guibg=none]]
--vim.cmd[[hi Todo ctermbg=none guibg=none]]
--vim.cmd[[hi String ctermbg=none guibg=none]]
--vim.cmd[[hi Function ctermbg=none guibg=none]]
--vim.cmd[[hi Conditional ctermbg=none guibg=none]]
--vim.cmd[[hi Repeat ctermbg=none guibg=none]]
--vim.cmd[[hi Operator ctermbg=none guibg=none]]
--vim.cmd[[hi Structure ctermbg=none guibg=none]]
--vim.cmd[[hi LineNr ctermbg=none guibg=none]]
--vim.cmd[[hi NonText ctermbg=none guibg=none]]
--vim.cmd[[hi SignColumn ctermbg=none guibg=none]]
--vim.cmd[[hi CursorLineNr ctermbg=none guibg=none]]
--vim.cmd[[hi EndOfBuffer ctermbg=none guibg=none]]
-- mapping keys
--nnoremap <silent> <F5> <Cmd>lua require'dap'.continue()<CR>
--nnoremap <silent> <F10> <Cmd>lua require'dap'.step_over()<CR>
--nnoremap <silent> <F11> <Cmd>lua require'dap'.step_into()<CR>
--nnoremap <silent> <F12> <Cmd>lua require'dap'.step_out()<CR>
--dap server
local dap = require('dap')
dap.adapters.python = {
type = 'executable';
command = os.getenv('HOME') .. '/.virtualenvs/tools/bin/python';
args = { '-m', 'debugpy.adapter' };
}

View File

@@ -150,11 +150,21 @@ _G.packer_plugins = {
path = "/home/tanveer/.local/share/nvim/site/pack/packer/start/nvim-colorizer.lua",
url = "https://github.com/norcalli/nvim-colorizer.lua"
},
["nvim-dap"] = {
loaded = true,
path = "/home/tanveer/.local/share/nvim/site/pack/packer/start/nvim-dap",
url = "https://github.com/mfussenegger/nvim-dap"
},
["nvim-lspconfig"] = {
loaded = true,
path = "/home/tanveer/.local/share/nvim/site/pack/packer/start/nvim-lspconfig",
url = "https://github.com/neovim/nvim-lspconfig"
},
["nvim-parinfer"] = {
loaded = true,
path = "/home/tanveer/.local/share/nvim/site/pack/packer/start/nvim-parinfer",
url = "https://github.com/gpanders/nvim-parinfer"
},
["nvim-web-devicons"] = {
loaded = false,
needs_bufread = false,

View File

@@ -23,8 +23,8 @@ close_on_unmount=1
focus_previous=0
side_pane_mode=places
view_mode=list
show_hidden=0
sort=desc;ascending;
show_hidden=1
sort=name;ascending;
columns=name:200;desc:143;size;mtime;
toolbar=newtab;navigation;home;
show_statusbar=1

View File

@@ -1,7 +1,7 @@
[Appearance]
color_scheme_path=/usr/share/qt5ct/colors/darker.conf
custom_palette=true
icon_theme=Tela-black-dark
icon_theme=ePapirus-Dark
standard_dialogs=gtk3
style=Fusion
@@ -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\x14\0\0\x2\xae\0\0\x2\x9a\0\0\0\0\0\0\0\x14\0\0\x2\xde\0\0\x2\x9a\0\0\0\0\x2\0\0\0\a\x80\0\0\0\0\0\0\0\x14\0\0\x2\xae\0\0\x2\x9a)
geometry=@ByteArray(\x1\xd9\xd0\xcb\0\x3\0\0\0\0\a\x80\0\0\0\0\0\0\xe\xff\0\0\x4\x37\0\0\0\0\0\0\0\0\0\0\a\x7f\0\0\x4\x37\0\0\0\x1\x2\x4\0\0\a\x80\0\0\a\x80\0\0\0\0\0\0\xe\xff\0\0\x4\x37)
[Troubleshooting]
force_raster_widgets=1