mirror of
https://github.com/CoolnsX/hyprdots.git
synced 2025-12-20 07:15:23 +05:30
REALLY FUCKING FIXED
This commit is contained in:
2
.gitignore
vendored
2
.gitignore
vendored
@@ -17,3 +17,5 @@ user-dirs.dirs
|
|||||||
user-dirs.locale
|
user-dirs.locale
|
||||||
xfce4
|
xfce4
|
||||||
libvirt
|
libvirt
|
||||||
|
libreoffice
|
||||||
|
epdfview
|
||||||
|
|||||||
@@ -4,7 +4,7 @@
|
|||||||
### Display ###
|
### Display ###
|
||||||
|
|
||||||
# Which monitor should the notifications be displayed on.
|
# Which monitor should the notifications be displayed on.
|
||||||
monitor = 0
|
#monitor = 0
|
||||||
|
|
||||||
# Display notification on focused monitor. Possible modes are:
|
# Display notification on focused monitor. Possible modes are:
|
||||||
# mouse: follow mouse pointer
|
# mouse: follow mouse pointer
|
||||||
@@ -17,14 +17,14 @@
|
|||||||
#
|
#
|
||||||
# If this option is set to mouse or keyboard, the monitor option
|
# If this option is set to mouse or keyboard, the monitor option
|
||||||
# will be ignored.
|
# will be ignored.
|
||||||
follow = mouse
|
follow = keyboard
|
||||||
|
|
||||||
### Geometry ###
|
### Geometry ###
|
||||||
|
|
||||||
# dynamic width from 0 to 300
|
# dynamic width from 0 to 300
|
||||||
# width = (0, 300)
|
# width = (0, 300)
|
||||||
# constant width of 300
|
# constant width of 300
|
||||||
width = 400
|
width = 360
|
||||||
|
|
||||||
# The maximum height of a single notification, excluding the frame.
|
# The maximum height of a single notification, excluding the frame.
|
||||||
height = 400
|
height = 400
|
||||||
@@ -79,7 +79,7 @@
|
|||||||
# Padding between text and separator.
|
# Padding between text and separator.
|
||||||
padding = 8
|
padding = 8
|
||||||
|
|
||||||
highlight = "#1affff"
|
highlight = "#D81860"
|
||||||
|
|
||||||
# Horizontal padding.
|
# Horizontal padding.
|
||||||
horizontal_padding = 8
|
horizontal_padding = 8
|
||||||
@@ -92,7 +92,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 = "#1affff"
|
frame_color = "#D81860"
|
||||||
|
|
||||||
# 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
|
||||||
@@ -160,7 +160,7 @@
|
|||||||
# %n progress value if set without any extra characters
|
# %n progress value if set without any extra characters
|
||||||
# %% Literal %
|
# %% Literal %
|
||||||
# Markup is allowed
|
# Markup is allowed
|
||||||
format = "<b>%s</b> %n\n%b"
|
format = "<b>%s</b>\n%b"
|
||||||
|
|
||||||
# Alignment of message text.
|
# Alignment of message text.
|
||||||
# Possible values are "left", "center" and "right".
|
# Possible values are "left", "center" and "right".
|
||||||
@@ -198,7 +198,7 @@
|
|||||||
enable_recursive_icon_lookup = true
|
enable_recursive_icon_lookup = true
|
||||||
|
|
||||||
# Set icon theme (only used for recursive icon lookup)
|
# 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.
|
# You can also set multiple icon themes, with the leftmost one being used first.
|
||||||
# icon_theme = "Adwaita, breeze"
|
# icon_theme = "Adwaita, breeze"
|
||||||
|
|
||||||
@@ -214,7 +214,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/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 ###
|
### History ###
|
||||||
|
|
||||||
@@ -228,7 +228,7 @@
|
|||||||
### Misc/Advanced ###
|
### Misc/Advanced ###
|
||||||
|
|
||||||
# dmenu path.
|
# 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 for opening urls in context menu.
|
||||||
browser = /usr/bin/xdg-open
|
browser = /usr/bin/xdg-open
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
LocationMode=path-bar
|
LocationMode=path-bar
|
||||||
ShowHidden=false
|
ShowHidden=false
|
||||||
ShowSizeColumn=true
|
ShowSizeColumn=true
|
||||||
GeometryX=640
|
GeometryX=2560
|
||||||
GeometryY=225
|
GeometryY=225
|
||||||
GeometryWidth=640
|
GeometryWidth=640
|
||||||
GeometryHeight=630
|
GeometryHeight=630
|
||||||
|
|||||||
@@ -1,2 +1 @@
|
|||||||
file:///home/tanveer/Downloads Downloads
|
file:///home/tanveer/Downloads Downloads
|
||||||
file:///mnt/data data
|
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
|
||||||
for i in $(seq 5);do
|
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
|
sleep 1
|
||||||
done
|
done
|
||||||
|
|||||||
@@ -1,5 +1,6 @@
|
|||||||
# See https://wiki.hyprland.org/Configuring/Monitors/
|
# See https://wiki.hyprland.org/Configuring/Monitors/
|
||||||
monitor=,preferred,auto,1
|
monitor=,preferred,auto,1
|
||||||
|
$hypr_dir="$HOME/.config/hypr"
|
||||||
|
|
||||||
# See https://wiki.hyprland.org/Configuring/Keywords/ for more
|
# See https://wiki.hyprland.org/Configuring/Keywords/ for more
|
||||||
# For all categories, see https://wiki.hyprland.org/Configuring/Variables/
|
# For all categories, see https://wiki.hyprland.org/Configuring/Variables/
|
||||||
@@ -25,7 +26,7 @@ general {
|
|||||||
gaps_in = 2
|
gaps_in = 2
|
||||||
gaps_out = 4
|
gaps_out = 4
|
||||||
border_size = 3
|
border_size = 3
|
||||||
col.active_border = rgba(1affffee)
|
col.active_border = rgba(D81860FF)
|
||||||
col.inactive_border = rgba(595959aa)
|
col.inactive_border = rgba(595959aa)
|
||||||
|
|
||||||
layout = dwindle
|
layout = dwindle
|
||||||
@@ -125,7 +126,7 @@ bindm = $mainMod, mouse:273, resizewindow
|
|||||||
|
|
||||||
#applications shortcuts
|
#applications shortcuts
|
||||||
bind = $mainMod, F4, exec, $HOME/repos_scripts/ani-new
|
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, return, exec, foot
|
||||||
#bind = $mainMod, Q, exec, wofi --show drun
|
#bind = $mainMod, Q, exec, wofi --show drun
|
||||||
bind = $mainMod, Q, exec, dmenu_run_history
|
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, I, exec, $HOME/repos_scripts/bkmark
|
||||||
bind = $mainMod SHIFT, B, exec, $HOME/repos_scripts/bkmark "rm"
|
bind = $mainMod SHIFT, B, exec, $HOME/repos_scripts/bkmark "rm"
|
||||||
#bind = $mainMod, S, exec, skypeforlinux
|
#bind = $mainMod, S, exec, skypeforlinux
|
||||||
#bind = SUPER_L, P, exec, $HOME/.config/hypr/workspace
|
bind = $mainMod, F11, exec, $hypr_dir/info
|
||||||
bind = $mainMod, F11, exec, $HOME/.config/hypr/info
|
bind = $mainMod, F10, exec, $hypr_dir/bluetooth
|
||||||
bind = $mainMod, F10, exec, $HOME/.config/hypr/bluetooth
|
bind = $mainMod, F6, exec, $hypr_dir/workspace
|
||||||
bind = $mainMod, F6, exec, $HOME/.config/hypr/workspace
|
bind = $mainMod SHIFT, F6, exec, $hypr_dir/workspace "toggle"
|
||||||
bind = $mainMod SHIFT, F6, exec, $HOME/.config/hypr/workspace "toggle"
|
bind = $mainMod, F1, exec, $hypr_dir/screenshot 'selclip'
|
||||||
bind = $mainMod, F1, exec, $HOME/.config/hypr/screenshot 'selclip'
|
bind = $mainMod SHIFT, F1, exec, $hypr_dir/screenshot 'fullclip'
|
||||||
bind = $mainMod SHIFT, F1, exec, $HOME/.config/hypr/screenshot 'fullclip'
|
bind = ,Print, exec, $hypr_dir/screenshot 'fullsave'
|
||||||
bind = ,Print, exec, $HOME/.config/hypr/screenshot 'fullsave'
|
bind = $mainMod, F12, exec, $hypr_dir/date
|
||||||
bind = $mainMod, F12, exec, $HOME/.config/hypr/date
|
bind = $mainMod, Delete, exec, $hypr_dir/workspace 'list'
|
||||||
bind = $mainMod, Delete, exec, $HOME/.config/hypr/workspace 'list'
|
|
||||||
|
|
||||||
#media keys
|
#media keys
|
||||||
binde=, XF86AudioRaiseVolume, exec, pamixer -i 2 && $HOME/.config/hypr/volume
|
binde=, XF86AudioRaiseVolume, exec, pamixer -i 2 && $hypr_dir/volume
|
||||||
binde=$mainMod, F2, exec, pamixer -d 2 && $HOME/.config/hypr/volume #my XF86AudioLowerVolume doesn't work
|
binde=$mainMod, F2, exec, pamixer -d 2 && $hypr_dir/volume #my XF86AudioLowerVolume doesn't work
|
||||||
binde=$mainMod, F9, exec, playerctl play-pause
|
binde=$mainMod, F8, exec, echo cycle pause | socat - "/tmp/mpvsocket"
|
||||||
binde=, XF86MonBrightnessDown, exec, light -U 5 && notify-send -h int:value:$(light -G | cut -d'.' -f1) "☀️ " -t 1000 -r 1
|
binde=$mainMod SHIFT, F8, exec, $HOME/repos_scripts/yt-music search_play
|
||||||
binde=, XF86MonBrightnessUp, exec, light -A 5 && notify-send -h int:value:$(light -G | cut -d'.' -f1) "☀️ " -t 1000 -r 1
|
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
|
#windows rules
|
||||||
windowrulev2=workspace 1,class:^(google-chrome)$
|
windowrulev2=workspace 1,class:^(google-chrome)$
|
||||||
@@ -167,8 +170,9 @@ windowrulev2=workspace 4,class:^(pavucontrol)$
|
|||||||
#startup applications
|
#startup applications
|
||||||
exec-once=dbus-update-activation-environment --systemd WAYLAND_DISPLAY XDG_CURRENT_DESKTOP
|
exec-once=dbus-update-activation-environment --systemd WAYLAND_DISPLAY XDG_CURRENT_DESKTOP
|
||||||
exec-once=ssh-agent
|
exec-once=ssh-agent
|
||||||
exec-once=swaybg -i ~/wall/8.png
|
exec-once=$HOME/repos_scripts/yt-music loop
|
||||||
exec-once=$HOME/.config/hypr/workspace 'focus'
|
exec-once=swaybg -i ~/wall/9.png
|
||||||
exec-once=sleep 5 && $HOME/.config/hypr/workspace
|
exec-once=$hypr_dir/workspace 'focus'
|
||||||
|
exec-once=sleep 5 && $hypr_dir/workspace
|
||||||
#exec-once=skypeforlinux
|
#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'
|
||||||
|
|||||||
@@ -10,7 +10,7 @@ while [ $i -le "5" ];do
|
|||||||
vol_stats=$(pamixer --get-mute)
|
vol_stats=$(pamixer --get-mute)
|
||||||
[ "$bat_stats" = "Discharging" ] && bat_icon=🔋 || bat_icon=🔌
|
[ "$bat_stats" = "Discharging" ] && bat_icon=🔋 || bat_icon=🔌
|
||||||
[ "$vol_stats" = "true" ] && vol_icon=🔇 || vol_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))
|
: $((i+=1))
|
||||||
sleep 1
|
sleep 1
|
||||||
done
|
done
|
||||||
|
|||||||
@@ -1,8 +1,7 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
|
||||||
x="Screenshot copied to clipboard"
|
icon="/usr/share/icons/Papirus/16x16/apps/applets-screenshooter.svg"
|
||||||
[ "$*" = "fullclip" ] && grim - | wl-copy -t image/png
|
killall grim slurp
|
||||||
[ "$*" = "fullsave" ] && grim && x="Screenshot saved"
|
[ "$*" = "fullclip" ] && grim - | wl-copy -t image/png && notify-send -i "$icon" "Screenshot copied to clipboard"
|
||||||
[ "$*" = "selclip" ] && grim -g "$(slurp)" - | wl-copy -t image/png
|
[ "$*" = "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"
|
||||||
notify-send "$x"
|
|
||||||
|
|||||||
@@ -1,5 +1,8 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
|
||||||
vol_icon=🔊
|
vol_int=$(pamixer --get-volume)
|
||||||
pamixer --get-mute | sh && vol_icon=🔇
|
vol_icon="low"
|
||||||
notify-send -h int:value:$(pamixer --get-volume) "$vol_icon" -t 1000 -r 1
|
[ "$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
|
||||||
|
|||||||
@@ -1,7 +1,9 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
if nmcli radio wifi | grep -q 'enabled' ; then
|
if nmcli radio wifi | grep -q 'enabled' ; then
|
||||||
nmcli radio wifi off
|
nmcli radio wifi off
|
||||||
|
wifi_icon="offline"
|
||||||
else
|
else
|
||||||
nmcli radio wifi on
|
nmcli radio wifi on
|
||||||
|
wifi_icon="acquiring"
|
||||||
fi
|
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
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
|
||||||
setup_dual_monitor(){
|
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
|
sleep 2
|
||||||
if hyprctl monitors | grep -q "HDMI-A-1";then
|
if hyprctl monitors | grep -q "HDMI-A-1";then
|
||||||
notify-send "Setting up dual monitor workflow"
|
notify-send "Setting up dual monitor workflow"
|
||||||
@@ -11,7 +11,6 @@ setup_dual_monitor(){
|
|||||||
done
|
done
|
||||||
hyprctl dispatch moveworkspacetomonitor "4 1"
|
hyprctl dispatch moveworkspacetomonitor "4 1"
|
||||||
fi
|
fi
|
||||||
notify-send "done"
|
|
||||||
}
|
}
|
||||||
|
|
||||||
handle_it(){
|
handle_it(){
|
||||||
@@ -21,7 +20,7 @@ handle_it(){
|
|||||||
if [ "$choice" = "Extend" ];then
|
if [ "$choice" = "Extend" ];then
|
||||||
setup_dual_monitor
|
setup_dual_monitor
|
||||||
else
|
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
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -29,15 +28,15 @@ case $1 in
|
|||||||
list)
|
list)
|
||||||
#only lists the open applications with their workspace number so u can safely close them
|
#only lists the open applications with their workspace number so u can safely close them
|
||||||
for i in $(seq 4);do
|
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
|
sleep 1
|
||||||
done ;;
|
done ;;
|
||||||
focus)
|
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)
|
#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
|
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 "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
|
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 "$(printf "$line" | sed -nE 's_^(workspace)>>([^ ]*)_\1 \2_p')" -r 1 -t 700 2>/dev/null
|
notify-send -i "lol" "$(printf "$line" | sed -nE 's_^(workspace)>>([^ ]*)_\1 \2_p')" -r 1 -t 700 2>/dev/null
|
||||||
done ;;
|
done ;;
|
||||||
toggle)
|
toggle)
|
||||||
#toggle between mirror and extend setup. this function should be keybinded
|
#toggle between mirror and extend setup. this function should be keybinded
|
||||||
|
|||||||
@@ -26,6 +26,8 @@ require('packer').startup(function(use)
|
|||||||
}
|
}
|
||||||
use 'hrsh7th/cmp-nvim-lsp'
|
use 'hrsh7th/cmp-nvim-lsp'
|
||||||
use 'hrsh7th/cmp-nvim-lua'
|
use 'hrsh7th/cmp-nvim-lua'
|
||||||
|
use 'gpanders/nvim-parinfer'
|
||||||
|
use 'mfussenegger/nvim-dap'
|
||||||
use 'hrsh7th/cmp-buffer'
|
use 'hrsh7th/cmp-buffer'
|
||||||
use 'hrsh7th/cmp-path'
|
use 'hrsh7th/cmp-path'
|
||||||
use 'norcalli/nvim-colorizer.lua'
|
use 'norcalli/nvim-colorizer.lua'
|
||||||
@@ -45,7 +47,7 @@ require("mason").setup {
|
|||||||
ui = {
|
ui = {
|
||||||
icons = {
|
icons = {
|
||||||
package_installed = "✓",
|
package_installed = "✓",
|
||||||
package_pending = "➜",
|
package_pending = "➜ ",
|
||||||
package_uninstalled = "✗"
|
package_uninstalled = "✗"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -58,13 +60,33 @@ local capabilities = vim.lsp.protocol.make_client_capabilities()
|
|||||||
capabilities = require('cmp_nvim_lsp').default_capabilities(capabilities)
|
capabilities = require('cmp_nvim_lsp').default_capabilities(capabilities)
|
||||||
|
|
||||||
local lspconfig = require('lspconfig')
|
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
|
-- 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
|
for _, lsp in ipairs(servers) do
|
||||||
lspconfig[lsp].setup {
|
lspconfig[lsp].setup {
|
||||||
-- on_attach = my_custom_on_attach,
|
capabilities = capabilities,
|
||||||
capabilities = capabilities,
|
|
||||||
}
|
}
|
||||||
end
|
end
|
||||||
|
|
||||||
@@ -131,25 +153,17 @@ require('lualine').setup {
|
|||||||
--theme = 'pywal',
|
--theme = 'pywal',
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
--vim.cmd[[hi Normal ctermbg=none guibg=none]]
|
|
||||||
--vim.cmd[[hi NormalNC ctermbg=none guibg=none]]
|
-- mapping keys
|
||||||
--vim.cmd[[hi Comment ctermbg=none guibg=none]]
|
--nnoremap <silent> <F5> <Cmd>lua require'dap'.continue()<CR>
|
||||||
--vim.cmd[[hi Constant ctermbg=none guibg=none]]
|
--nnoremap <silent> <F10> <Cmd>lua require'dap'.step_over()<CR>
|
||||||
--vim.cmd[[hi Special ctermbg=none guibg=none]]
|
--nnoremap <silent> <F11> <Cmd>lua require'dap'.step_into()<CR>
|
||||||
--vim.cmd[[hi Identifier ctermbg=none guibg=none]]
|
--nnoremap <silent> <F12> <Cmd>lua require'dap'.step_out()<CR>
|
||||||
--vim.cmd[[hi Statement ctermbg=none guibg=none]]
|
|
||||||
--vim.cmd[[hi PreProc ctermbg=none guibg=none]]
|
--dap server
|
||||||
--vim.cmd[[hi Type ctermbg=none guibg=none]]
|
local dap = require('dap')
|
||||||
--vim.cmd[[hi Underlined ctermbg=none guibg=none]]
|
dap.adapters.python = {
|
||||||
--vim.cmd[[hi Todo ctermbg=none guibg=none]]
|
type = 'executable';
|
||||||
--vim.cmd[[hi String ctermbg=none guibg=none]]
|
command = os.getenv('HOME') .. '/.virtualenvs/tools/bin/python';
|
||||||
--vim.cmd[[hi Function ctermbg=none guibg=none]]
|
args = { '-m', 'debugpy.adapter' };
|
||||||
--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]]
|
|
||||||
|
|||||||
@@ -150,11 +150,21 @@ _G.packer_plugins = {
|
|||||||
path = "/home/tanveer/.local/share/nvim/site/pack/packer/start/nvim-colorizer.lua",
|
path = "/home/tanveer/.local/share/nvim/site/pack/packer/start/nvim-colorizer.lua",
|
||||||
url = "https://github.com/norcalli/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"] = {
|
["nvim-lspconfig"] = {
|
||||||
loaded = true,
|
loaded = true,
|
||||||
path = "/home/tanveer/.local/share/nvim/site/pack/packer/start/nvim-lspconfig",
|
path = "/home/tanveer/.local/share/nvim/site/pack/packer/start/nvim-lspconfig",
|
||||||
url = "https://github.com/neovim/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"] = {
|
["nvim-web-devicons"] = {
|
||||||
loaded = false,
|
loaded = false,
|
||||||
needs_bufread = false,
|
needs_bufread = false,
|
||||||
|
|||||||
@@ -23,8 +23,8 @@ close_on_unmount=1
|
|||||||
focus_previous=0
|
focus_previous=0
|
||||||
side_pane_mode=places
|
side_pane_mode=places
|
||||||
view_mode=list
|
view_mode=list
|
||||||
show_hidden=0
|
show_hidden=1
|
||||||
sort=desc;ascending;
|
sort=name;ascending;
|
||||||
columns=name:200;desc:143;size;mtime;
|
columns=name:200;desc:143;size;mtime;
|
||||||
toolbar=newtab;navigation;home;
|
toolbar=newtab;navigation;home;
|
||||||
show_statusbar=1
|
show_statusbar=1
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
[Appearance]
|
[Appearance]
|
||||||
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=Tela-black-dark
|
icon_theme=ePapirus-Dark
|
||||||
standard_dialogs=gtk3
|
standard_dialogs=gtk3
|
||||||
style=Fusion
|
style=Fusion
|
||||||
|
|
||||||
@@ -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\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]
|
[Troubleshooting]
|
||||||
force_raster_widgets=1
|
force_raster_widgets=1
|
||||||
|
|||||||
Reference in New Issue
Block a user