From 895fe1ddb8c30234c596897bcfd7c61581ff4afb Mon Sep 17 00:00:00 2001 From: mintycube <90507714+mintycube@users.noreply.github.com> Date: Sat, 4 May 2024 15:27:08 +0500 Subject: [PATCH] nvim+xinitrc+scripts Update nvim lauch dwm via dbus-lauch in xinitrc use setsid for editing dwmblocks scripts --- .config/nvim/lazy-lock.json | 8 ++++---- .config/x11/xinitrc | 4 ++-- .local/bin/statusbar/sb-battery | 2 +- .local/bin/statusbar/sb-clock | 2 +- .local/bin/statusbar/sb-help-icon | 2 +- .local/bin/statusbar/sb-internet | 2 +- .local/bin/statusbar/sb-nettraf | 2 +- .local/bin/statusbar/sb-news | 2 +- .local/bin/statusbar/sb-powerbutton | 2 +- .local/bin/statusbar/sb-volume | 2 +- 10 files changed, 14 insertions(+), 14 deletions(-) diff --git a/.config/nvim/lazy-lock.json b/.config/nvim/lazy-lock.json index 5755574..6a4b715 100644 --- a/.config/nvim/lazy-lock.json +++ b/.config/nvim/lazy-lock.json @@ -10,12 +10,12 @@ "cmp-vimtex": { "branch": "master", "commit": "613fbfc54d9488252b0b0289d6d1d60242513558" }, "cmp_luasnip": { "branch": "master", "commit": "05a9ab28b53f71d1aece421ef32fee2cb857a843" }, "flit.nvim": { "branch": "main", "commit": "56490317983218b09698f8c960c3669958b12b32" }, - "friendly-snippets": { "branch": "main", "commit": "d5f74ce4dfdd82848f3f4eac65fe6e29ac5df4c2" }, + "friendly-snippets": { "branch": "main", "commit": "fa36367422da5a38560892e3db6d090a635d9d41" }, "fzf-lua": { "branch": "main", "commit": "cb208cd24bacac5893249ea3a8624d705d2135f9" }, "gitsigns.nvim": { "branch": "main", "commit": "9cafac31a091267838e1e90fd6e083d37611f516" }, "harpoon": { "branch": "harpoon2", "commit": "0378a6c428a0bed6a2781d459d7943843f374bce" }, "indent-blankline.nvim": { "branch": "master", "commit": "3d08501caef2329aba5121b753e903904088f7e6" }, - "lazy.nvim": { "branch": "main", "commit": "3f13f080434ac942b150679223d54f5ca91e0d52" }, + "lazy.nvim": { "branch": "main", "commit": "d3974346b6cef2116c8e7b08423256a834cb7cbc" }, "leap.nvim": { "branch": "main", "commit": "626be4c4ec040aeaf6466c9aae17ee0ab09f1a5b" }, "lf.nvim": { "branch": "master", "commit": "69ab1efcffee6928bf68ac9bd0c016464d9b2c8b" }, "lsp-zero.nvim": { "branch": "v3.x", "commit": "e00dcf8a6019a88139626c1668dccdc295abd324" }, @@ -42,12 +42,12 @@ "nvim-markdown": { "branch": "master", "commit": "75639723c1a3a44366f80cff11383baf0799bcb5" }, "nvim-nio": { "branch": "master", "commit": "8765cbc4d0c629c8158a5341e1b4305fd93c3a90" }, "nvim-spectre": { "branch": "master", "commit": "4651801ba37a9407b7257287aec45b6653ffc5e9" }, - "nvim-treesitter": { "branch": "master", "commit": "96defe1cbd444cfedb0927796a6c0c1308e5b988" }, + "nvim-treesitter": { "branch": "master", "commit": "fed32362ad3850e708f0797b9d9458a24589e07e" }, "nvim-treesitter-textobjects": { "branch": "master", "commit": "23b820146956b3b681c19e10d3a8bc0cbd9a1d4c" }, "nvim-ts-autotag": { "branch": "main", "commit": "531f48334c422222aebc888fd36e7d109cb354cd" }, "nvim-ts-context-commentstring": { "branch": "main", "commit": "a6382f744f584bbf71d0a563af789af7190aabda" }, "nvim-ufo": { "branch": "main", "commit": "a5390706f510d39951dd581f6d2a972741b3fa26" }, - "nvim-web-devicons": { "branch": "master", "commit": "794bba734ec95eaff9bb82fbd112473be2087283" }, + "nvim-web-devicons": { "branch": "master", "commit": "475fbcfcb6ee7c35aa33a6b6207ebd4032791d87" }, "outline.nvim": { "branch": "main", "commit": "dbd836893fb99cfc33119d7c4abbdb700210f54b" }, "persistence.nvim": { "branch": "main", "commit": "4982499c1636eac254b72923ab826ee7827b3084" }, "plenary.nvim": { "branch": "master", "commit": "08e301982b9a057110ede7a735dd1b5285eb341f" }, diff --git a/.config/x11/xinitrc b/.config/x11/xinitrc index c9e5bad..b183f25 100755 --- a/.config/x11/xinitrc +++ b/.config/x11/xinitrc @@ -14,5 +14,5 @@ else . "$HOME/.xprofile" fi # Activate dbus variables -# dbus-update-activation-environment --all -ssh-agent dwm +dbus-update-activation-environment --all +dbus-launch ssh-agent dwm diff --git a/.local/bin/statusbar/sb-battery b/.local/bin/statusbar/sb-battery index f7217fe..15212e6 100755 --- a/.local/bin/statusbar/sb-battery +++ b/.local/bin/statusbar/sb-battery @@ -22,7 +22,7 @@ case $BLOCK_BUTTON in - Scroll to adjust brightness" ;; 4) xbacklight -inc 15 ;; 5) xbacklight -dec 15 ;; - 6) "$TERMINAL" -e "$EDITOR" "$0" ;; + 6) setsid -f "$TERMINAL" -e "$EDITOR" "$0" ;; esac # Loop through all attached batteries and format the info diff --git a/.local/bin/statusbar/sb-clock b/.local/bin/statusbar/sb-clock index bf23ff8..2df412d 100755 --- a/.local/bin/statusbar/sb-clock +++ b/.local/bin/statusbar/sb-clock @@ -23,7 +23,7 @@ case $BLOCK_BUTTON in 2) setsid -f "$TERMINAL" -e calcurse ;; 3) notify-send "󰃭 Time/date module" "\- Left click to show upcoming appointments for the next three days via \`calcurse -d3\` and show the month via \`cal\` - Middle click opens calcurse if installed" ;; - 6) "$TERMINAL" -e "$EDITOR" "$0" ;; + 6) setsid -f "$TERMINAL" -e "$EDITOR" "$0" ;; esac # date "+^C1^󰃭 ^d^%a-%b-%d ^C5^$icon^d^ %I:%M %P" diff --git a/.local/bin/statusbar/sb-help-icon b/.local/bin/statusbar/sb-help-icon index 9f5d475..0b79e18 100755 --- a/.local/bin/statusbar/sb-help-icon +++ b/.local/bin/statusbar/sb-help-icon @@ -3,7 +3,7 @@ case $BLOCK_BUTTON in 1) keybinds ;; 3) notify-send "󰌌 Help module" "\- Left click to open keybinds guide." ;; - 6) "$TERMINAL" -e "$EDITOR" "$0" ;; + 6) setsid -f "$TERMINAL" -e "$EDITOR" "$0" ;; esac; if [ ! -e ~/.cache/bar_color ]; then echo "󰌌 " diff --git a/.local/bin/statusbar/sb-internet b/.local/bin/statusbar/sb-internet index 5e32077..a9d2075 100755 --- a/.local/bin/statusbar/sb-internet +++ b/.local/bin/statusbar/sb-internet @@ -14,7 +14,7 @@ case $BLOCK_BUTTON in 󰈁 : ethernet working 󰖂 : vpn is active " ;; - 6) "$TERMINAL" -e "$EDITOR" "$0" ;; + 6) setsid -f "$TERMINAL" -e "$EDITOR" "$0" ;; esac # Wifi diff --git a/.local/bin/statusbar/sb-nettraf b/.local/bin/statusbar/sb-nettraf index 4853296..b1dd2ad 100755 --- a/.local/bin/statusbar/sb-nettraf +++ b/.local/bin/statusbar/sb-nettraf @@ -8,7 +8,7 @@ case $BLOCK_BUTTON in 1) setsid -f "$TERMINAL" -e bmon ;; 3) notify-send "󰓅 Network traffic module" "󰄼 : Traffic received 󰄿 : Traffic transmitted" ;; - 6) "$TERMINAL" -e "$EDITOR" "$0" ;; + 6) setsid -f "$TERMINAL" -e "$EDITOR" "$0" ;; esac update() { diff --git a/.local/bin/statusbar/sb-news b/.local/bin/statusbar/sb-news index e3d8126..6736b90 100755 --- a/.local/bin/statusbar/sb-news +++ b/.local/bin/statusbar/sb-news @@ -11,7 +11,7 @@ case $BLOCK_BUTTON in - Left click opens newsboat - Middle click syncs RSS feeds Note: Only one instance of newsboat (including updates) may be running at a time." ;; - 6) "$TERMINAL" -e "$EDITOR" "$0" ;; + 6) setsid -f "$TERMINAL" -e "$EDITOR" "$0" ;; esac if [ ! -e ~/.cache/bar_color ]; then diff --git a/.local/bin/statusbar/sb-powerbutton b/.local/bin/statusbar/sb-powerbutton index 65ab161..16b11c3 100755 --- a/.local/bin/statusbar/sb-powerbutton +++ b/.local/bin/statusbar/sb-powerbutton @@ -4,7 +4,7 @@ case $BLOCK_BUTTON in 1) sysact ;; - 6) "$TERMINAL" -e "$EDITOR" "$0" ;; + 6) setsid -f "$TERMINAL" -e "$EDITOR" "$0" ;; esac; if [ ! -e ~/.cache/bar_color ]; then echo " " diff --git a/.local/bin/statusbar/sb-volume b/.local/bin/statusbar/sb-volume index 2ff2579..3abf7ea 100755 --- a/.local/bin/statusbar/sb-volume +++ b/.local/bin/statusbar/sb-volume @@ -10,7 +10,7 @@ case $BLOCK_BUTTON in 3) notify-send "󰎈 Volume module" "\- Shows volume 󰎈,  if muted. - Middle click to mute. - Scroll to change." ;; - 6) "$TERMINAL" -e "$EDITOR" "$0" ;; + 6) setsid -f "$TERMINAL" -e "$EDITOR" "$0" ;; esac vol="$(wpctl get-volume @DEFAULT_AUDIO_SINK@)"