diff --git a/code-flags.conf b/code-flags.conf deleted file mode 100644 index 7c27bb6..0000000 --- a/code-flags.conf +++ /dev/null @@ -1,3 +0,0 @@ ---enable-features=WaylandWindowDecorations ---ozone-platform-hint=auto ---enable-webrtc-pipewire-capturer diff --git a/eww/script b/eww/script index 616a72f..27c846d 100755 --- a/eww/script +++ b/eww/script @@ -21,7 +21,7 @@ case $1 in ;; lyrics) 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 printf "Lyrics will show here" fi diff --git a/hypr/hyprland.conf b/hypr/hyprland.conf index 4150e1d..f6d2fbc 100644 --- a/hypr/hyprland.conf +++ b/hypr/hyprland.conf @@ -122,6 +122,7 @@ bindm = $mainMod, mouse:273, resizewindow #applications shortcuts bind = $mainMod, F4, exec, $HOME/repos_scripts/ani-new bind = $mainMod, F5, exec, $hypr_dir/wifi +bind = $mainMod, R, exec, $hypr_dir/launch bind = $mainMod, return, exec, [workspace 2] foot bind = $mainMod, Q, exec, dmenu_run_history bind = $mainMod, A, exec, [workspace 1] google-chrome-stable @@ -167,6 +168,7 @@ windowrulev2=fullscreen,class:^(org.freedesktop.Xwayland)$ #startup applications exec-once=dbus-update-activation-environment --systemd --all 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=xrdb -merge $HOME/.config/.Xresource exec-once=$hypr_dir/workspace 'focus' diff --git a/hypr/workspace b/hypr/workspace index 3b242b1..3ce261f 100755 --- a/hypr/workspace +++ b/hypr/workspace @@ -22,7 +22,7 @@ handle_it(){ if [ "$choice" = "Extend" ];then setup_dual_monitor 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 } @@ -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) 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 "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 current=$(printf "%s" "$line" | sed -nE 's_^(workspace)>>([^ ]*)_\1 \2_p') if [ -n "$current" ];then diff --git a/nvim/init.lua b/nvim/init.lua index 7f211fa..0875924 100644 --- a/nvim/init.lua +++ b/nvim/init.lua @@ -70,7 +70,7 @@ if not configs.intelephense then default_config = { cmd = { 'intelephense', '--stdio' }; filetypes = { 'php' }; - root_dir = function (fname) + root_dir = function () return vim.loop.cwd(); end; settings = { @@ -85,19 +85,19 @@ if not configs.intelephense then end -- for arduino lsp server -local MY_FQBN = "esp8266:esp8266:nodemcu" -lspconfig.arduino_language_server.setup { - cmd = { - "arduino-language-server", - "-cli-config", "$HOME/.arduino15/arduino-cli.yaml", - "-fqbn", - MY_FQBN - } -} +--local MY_FQBN = "esp8266:esp8266:nodemcu" +--lspconfig.arduino_language_server.setup { +-- cmd = { +-- "arduino-language-server", +-- "-cli-config", "$HOME/.arduino15/arduino-cli.yaml", +-- "-fqbn", +-- MY_FQBN +-- } +--} -- 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 lspconfig[lsp].setup { capabilities = capabilities, diff --git a/zsh/zshrc b/zsh/zshrc index dac5804..713d9de 100644 --- a/zsh/zshrc +++ b/zsh/zshrc @@ -18,7 +18,6 @@ gtp() { megamind() { len=$(printf '%s' "$*" | wc -c) - printf "———————————%s——————————— ⠀⣞⢽⢪⢣⢣⢣⢫⡺⡵⣝⡮⣗⢷⢽⢽⢽⣮⡷⡽⣜⣜⢮⢺⣜⢷⢽⢝⡽⣝ ⠸⡸⠜⠕⠕⠁⢁⢇⢏⢽⢺⣪⡳⡝⣎⣏⢯⢞⡿⣟⣷⣳⢯⡷⣽⢽⢯⣳⣫⠇ @@ -70,12 +69,12 @@ url_oshi() { url_nextcloud() { [ ! -f "$HOME/.secrets" ] && notify-send "Credentials not found" -u critical && return 1 - source "$HOME"/.secrets - curl "$NC_HOST/remote.php/dav/files/${NC_USER}${NC_FOLDER_PATH}/$(basename "$1")" -H "Authorization: Basic $NC_AUTH" -T "$1" + source "$HOME"/.secrets && load_nextcloud_creds + 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 - 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" - unset NC_HOST NC_USER NC_FOLDER_PATH NC_AUTH + 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_TOKEN NC_COOKIES NC_FOLDER_ID } gtd() { @@ -121,6 +120,7 @@ rmpkg() { # Lines configured by zsh-newuser-install export MANPAGER="sh -c 'col -bx | bat -l man -p'" +export TZ="Asia/Kolkata" alias cat="bat -pp --color=always" alias open="xdg-open" alias cp="cp -v"