mirror of
https://github.com/CoolnsX/hyprdots.git
synced 2025-12-20 07:15:23 +05:30
I already said I was sorry
This commit is contained in:
@@ -1,3 +0,0 @@
|
|||||||
--enable-features=WaylandWindowDecorations
|
|
||||||
--ozone-platform-hint=auto
|
|
||||||
--enable-webrtc-pipewire-capturer
|
|
||||||
@@ -21,7 +21,7 @@ case $1 in
|
|||||||
;;
|
;;
|
||||||
lyrics)
|
lyrics)
|
||||||
if [ -f "/tmp/yt-music/lyrics" ]; then
|
if [ -f "/tmp/yt-music/lyrics" ]; then
|
||||||
awk -F'\t' -v value="$(echo '{ "command": ["get_property", "time-pos"] }' | socat - /tmp/yt-music/yt-music-mpvsocket | sed -nE 's|.*data":([^,]*).*|\1|p')" '$1 > value*1005 {print $2;exit}' /tmp/yt-music/lyrics
|
awk -F'\t' -v value="$(echo '{ "command": ["get_property", "time-pos"] }' | socat - /tmp/yt-music/yt-music-mpvsocket | sed -nE 's|.*data":([^,]*).*|\1|p')" '$1 > value*1000 {print $2;exit}' /tmp/yt-music/lyrics
|
||||||
else
|
else
|
||||||
printf "Lyrics will show here"
|
printf "Lyrics will show here"
|
||||||
fi
|
fi
|
||||||
|
|||||||
@@ -122,6 +122,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, $hypr_dir/wifi
|
bind = $mainMod, F5, exec, $hypr_dir/wifi
|
||||||
|
bind = $mainMod, R, exec, $hypr_dir/launch
|
||||||
bind = $mainMod, return, exec, [workspace 2] foot
|
bind = $mainMod, return, exec, [workspace 2] foot
|
||||||
bind = $mainMod, Q, exec, dmenu_run_history
|
bind = $mainMod, Q, exec, dmenu_run_history
|
||||||
bind = $mainMod, A, exec, [workspace 1] google-chrome-stable
|
bind = $mainMod, A, exec, [workspace 1] google-chrome-stable
|
||||||
@@ -167,6 +168,7 @@ windowrulev2=fullscreen,class:^(org.freedesktop.Xwayland)$
|
|||||||
#startup applications
|
#startup applications
|
||||||
exec-once=dbus-update-activation-environment --systemd --all
|
exec-once=dbus-update-activation-environment --systemd --all
|
||||||
exec-once=ssh-agent
|
exec-once=ssh-agent
|
||||||
|
exec-once=cd $HOME/github/arrpc && node src > /tmp/arrpc-log
|
||||||
exec-once=swaybg -i $HOME/.config/wall/9.png
|
exec-once=swaybg -i $HOME/.config/wall/9.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'
|
||||||
|
|||||||
@@ -22,7 +22,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=,1920x1080,0x0,1,mirror,eDP-1/g" "$HOME/.config/hypr/hyprland.conf"
|
sed -i "s/monitor=,highrr,auto,1/monitor=,1920x1080,0x0,1,mirror,eDP-1/g" "$HOME/.config/hypr/hyprland.conf"
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -37,7 +37,7 @@ case $1 in
|
|||||||
#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 -r line;do
|
socat - "UNIX-CONNECT:/tmp/hypr/$HYPRLAND_INSTANCE_SIGNATURE/.socket2.sock" | while read -r 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=,1920x1080,0x0,1,mirror,eDP-1/monitor=,preferred,auto,1/g" "$HOME/.config/hypr/hyprland.conf" && eww kill && eww open_many time_0 music_0
|
printf "%s" "$line" | grep -q "monitorremoved" && sed -i "s/monitor=,1920x1080,0x0,1,mirror,eDP-1/monitor=,highrr,auto,1/g" "$HOME/.config/hypr/hyprland.conf" && eww kill && eww open_many time_0 music_0
|
||||||
#recent workspace switcher
|
#recent workspace switcher
|
||||||
current=$(printf "%s" "$line" | sed -nE 's_^(workspace)>>([^ ]*)_\1 \2_p')
|
current=$(printf "%s" "$line" | sed -nE 's_^(workspace)>>([^ ]*)_\1 \2_p')
|
||||||
if [ -n "$current" ];then
|
if [ -n "$current" ];then
|
||||||
|
|||||||
@@ -70,7 +70,7 @@ if not configs.intelephense then
|
|||||||
default_config = {
|
default_config = {
|
||||||
cmd = { 'intelephense', '--stdio' };
|
cmd = { 'intelephense', '--stdio' };
|
||||||
filetypes = { 'php' };
|
filetypes = { 'php' };
|
||||||
root_dir = function (fname)
|
root_dir = function ()
|
||||||
return vim.loop.cwd();
|
return vim.loop.cwd();
|
||||||
end;
|
end;
|
||||||
settings = {
|
settings = {
|
||||||
@@ -85,19 +85,19 @@ if not configs.intelephense then
|
|||||||
end
|
end
|
||||||
|
|
||||||
-- for arduino lsp server
|
-- for arduino lsp server
|
||||||
local MY_FQBN = "esp8266:esp8266:nodemcu"
|
--local MY_FQBN = "esp8266:esp8266:nodemcu"
|
||||||
lspconfig.arduino_language_server.setup {
|
--lspconfig.arduino_language_server.setup {
|
||||||
cmd = {
|
-- cmd = {
|
||||||
"arduino-language-server",
|
-- "arduino-language-server",
|
||||||
"-cli-config", "$HOME/.arduino15/arduino-cli.yaml",
|
-- "-cli-config", "$HOME/.arduino15/arduino-cli.yaml",
|
||||||
"-fqbn",
|
-- "-fqbn",
|
||||||
MY_FQBN
|
-- MY_FQBN
|
||||||
}
|
-- }
|
||||||
}
|
--}
|
||||||
|
|
||||||
|
|
||||||
-- 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', 'clangd','intelephense','phpactor' , 'html' ,'cssls'}
|
local servers = { 'bashls', 'pyright', 'lua_ls', 'intelephense','phpactor' , 'html' ,'cssls'}
|
||||||
for _, lsp in ipairs(servers) do
|
for _, lsp in ipairs(servers) do
|
||||||
lspconfig[lsp].setup {
|
lspconfig[lsp].setup {
|
||||||
capabilities = capabilities,
|
capabilities = capabilities,
|
||||||
|
|||||||
10
zsh/zshrc
10
zsh/zshrc
@@ -18,7 +18,6 @@ gtp() {
|
|||||||
|
|
||||||
megamind() {
|
megamind() {
|
||||||
len=$(printf '%s' "$*" | wc -c)
|
len=$(printf '%s' "$*" | wc -c)
|
||||||
|
|
||||||
printf "———————————%s———————————
|
printf "———————————%s———————————
|
||||||
⠀⣞⢽⢪⢣⢣⢣⢫⡺⡵⣝⡮⣗⢷⢽⢽⢽⣮⡷⡽⣜⣜⢮⢺⣜⢷⢽⢝⡽⣝
|
⠀⣞⢽⢪⢣⢣⢣⢫⡺⡵⣝⡮⣗⢷⢽⢽⢽⣮⡷⡽⣜⣜⢮⢺⣜⢷⢽⢝⡽⣝
|
||||||
⠸⡸⠜⠕⠕⠁⢁⢇⢏⢽⢺⣪⡳⡝⣎⣏⢯⢞⡿⣟⣷⣳⢯⡷⣽⢽⢯⣳⣫⠇
|
⠸⡸⠜⠕⠕⠁⢁⢇⢏⢽⢺⣪⡳⡝⣎⣏⢯⢞⡿⣟⣷⣳⢯⡷⣽⢽⢯⣳⣫⠇
|
||||||
@@ -70,12 +69,12 @@ url_oshi() {
|
|||||||
|
|
||||||
url_nextcloud() {
|
url_nextcloud() {
|
||||||
[ ! -f "$HOME/.secrets" ] && notify-send "Credentials not found" -u critical && return 1
|
[ ! -f "$HOME/.secrets" ] && notify-send "Credentials not found" -u critical && return 1
|
||||||
source "$HOME"/.secrets
|
source "$HOME"/.secrets && load_nextcloud_creds
|
||||||
curl "$NC_HOST/remote.php/dav/files/${NC_USER}${NC_FOLDER_PATH}/$(basename "$1")" -H "Authorization: Basic $NC_AUTH" -T "$1"
|
curl "$NC_HOST/remote.php/dav/files/${NC_USER}${NC_FOLDER_PATH}/$(basename "$1")" -b "$NC_COOKIES" -H "Requesttoken: $NC_TOKEN" -T "$1" || return 1
|
||||||
|
|
||||||
#To enable sharing, the output will be in json containing share link
|
#To enable sharing, the output will be in json containing share link
|
||||||
curl -s -H "Authorization: Basic $NC_AUTH" "$NC_HOST/ocs/v2.php/apps/files_sharing/api/v1/shares" -H 'content-type: application/json' -H 'accept: application/json, text/plain, */*' -H 'OCS-APIRequest: true' --data-raw "{\"path\":\"${NC_FOLDER_PATH}/$(basename "$1")\",\"shareType\":3,\"attributes\":\"[]\"}" | sed -nE 's|.*"url":"([^"]*)".*|\1|p' | sed 's/\\//g' | wl-copy && notify-send "Link copied to clipboard"
|
curl -s -b "$NC_COOKIES" -H "Requesttoken: $NC_TOKEN" "$NC_HOST/ocs/v2.php/apps/files_sharing/api/v1/shares" -H 'content-type: application/json' -H 'accept: application/json, text/plain, */*' -H 'OCS-APIRequest: true' --data-raw "{\"path\":\"${NC_FOLDER_PATH}/$(basename "$1")\",\"shareType\":3,\"attributes\":\"[]\"}" | sed -nE 's|.*"url":"([^"]*)".*|\1|p' | sed 's/\\//g' | wl-copy && notify-send "Link copied to clipboard"
|
||||||
unset NC_HOST NC_USER NC_FOLDER_PATH NC_AUTH
|
unset NC_HOST NC_USER NC_FOLDER_PATH NC_TOKEN NC_COOKIES NC_FOLDER_ID
|
||||||
}
|
}
|
||||||
|
|
||||||
gtd() {
|
gtd() {
|
||||||
@@ -121,6 +120,7 @@ rmpkg() {
|
|||||||
|
|
||||||
# Lines configured by zsh-newuser-install
|
# Lines configured by zsh-newuser-install
|
||||||
export MANPAGER="sh -c 'col -bx | bat -l man -p'"
|
export MANPAGER="sh -c 'col -bx | bat -l man -p'"
|
||||||
|
export TZ="Asia/Kolkata"
|
||||||
alias cat="bat -pp --color=always"
|
alias cat="bat -pp --color=always"
|
||||||
alias open="xdg-open"
|
alias open="xdg-open"
|
||||||
alias cp="cp -v"
|
alias cp="cp -v"
|
||||||
|
|||||||
Reference in New Issue
Block a user