diff --git a/README.md b/README.md index 5201ca8..8f8dfbf 100644 --- a/README.md +++ b/README.md @@ -70,7 +70,7 @@ If using startx on debian this is taken care of by the system XSession loading e \`-— - + ## ~/.profile @@ -123,7 +123,7 @@ fi ``` - + ## ~/.bash\_profile @@ -1395,122 +1395,7 @@ modifier $mod echo "โšก$(awk '{print $1*10^-6 " W"}' /sys/class/power_supply/BAT0/power_now)h๐Ÿ”‹$b" ``` - 2. ~/bin/my-i3b-db-status - - ```bash - #!/usr/bin/bash - #Maintained in linux-init-files.org - if pidof dropbox > /dev/null ; then - stat=$(dropbox status | sed -n 1p) - echo "โ‡„${stat}"; echo ""; - else - if command -v dropbox > /dev/null; then - echo "โ‡„Restart Dropbox.." - #dropbox start &> /dev/null & - fi - fi - ``` - - 3. ~/bin/my-i3b-cpu - - ```bash - #!/usr/bin/bash - #Maintained in linux-init-files.org - case $BLOCK_BUTTON in - 1) - sway-do-tool "Hardinfo" "hardinfo" &> /dev/null - ;; - *) - ;; - esac - exec i3bm-cpu - ``` - - 4. ~/bin/my-i3b-temperature - - ```bash - #!/usr/bin/bash - #Maintained in linux-init-files.org - case $BLOCK_BUTTON in - 1) - sway-do-tool "Hardinfo" "hardinfo" &> /dev/null - ;; - *) - ;; - esac - exec /usr/share/i3blocks/temperature - ``` - - 5. ~/bin/my-i3b-uptime - - ```bash - #!/usr/bin/bash - #Maintained in linux-init-files.org - case $BLOCK_BUTTON in - 1) - sway-do-tool "Hardinfo" "hardinfo" &> /dev/null - ;; - *) - ;; - esac - exec echo "โฌ†$(awk '{print int($1/3600)":"int(($1%3600)/60)}' /proc/uptime)" - ``` - - 6. ~/bin/my-i3b-date-cal - - ```bash - #!/usr/bin/bash - #Maintained in linux-init-files.org - case $BLOCK_BUTTON in - 1) - sway-www "https://navigator.gmx.net/calendar?sid=2806623e0275885527e6231892f7917c1624879b7fa6ca66bcca9f8e2b23de2d90fabd7499f61b2d1063ba6b7281b277" &> /dev/null - ;; - *) - ;; - esac - exec echo "๐Ÿ“…$(date +"%a, %d %b: %H:%M)" - ``` - - 7. ~/bin/my-i3b-kernel - - ```bash - #!/usr/bin/bash - #Maintained in linux-init-files.org - case $BLOCK_BUTTON in - 1) - oneterminal "bpytop-kernel" bpytop &>/dev/null & - ;; - *) - ;; - esac - echo "$(uname -sr)" - ``` - - 8. ~/bin/my-i3b-db-status - - ```bash - #!/usr/bin/bash - #Maintained in linux-init-files.org - case $BLOCK_BUTTON in - 1) - sway-www "https://www.dropbox.com/home" &> /dev/null - ;; - ,*) - ;; - esac - - if pidof dropbox > /dev/null ; then - stat=$(dropbox status | sed -n 1p) - echo "DB:${stat}"; echo ""; - else - if command -v dropbox > /dev/null; then - echo "Restart Dropbox.." - #dropbox start &> /dev/null & - fi - fi - ``` - - 9. ~/bin/my-i3b-bluetooth + 2. ~/bin/my-i3b-bluetooth Thank you @@ -1564,7 +1449,7 @@ modifier $mod fi ``` - 10. ~/bin/my-i3b-brightness + 3. ~/bin/my-i3b-brightness return the brightness % @@ -1579,6 +1464,121 @@ modifier $mod fi ``` + 4. ~/bin/my-i3b-cpu + + ```bash + #!/usr/bin/bash + #Maintained in linux-init-files.org + case $BLOCK_BUTTON in + 1) + sway-do-tool "Hardinfo" "hardinfo" &> /dev/null + ;; + *) + ;; + esac + exec i3bm-cpu + ``` + + 5. ~/bin/my-i3b-date-cal + + ```bash + #!/usr/bin/bash + #Maintained in linux-init-files.org + case $BLOCK_BUTTON in + 1) + sway-www "https://navigator.gmx.net/calendar?sid=2806623e0275885527e6231892f7917c1624879b7fa6ca66bcca9f8e2b23de2d90fabd7499f61b2d1063ba6b7281b277" &> /dev/null + ;; + *) + ;; + esac + exec echo "๐Ÿ“…$(date +"%a, %d %b: %H:%M")" + ``` + + 6. ~/bin/my-i3b-db-status + + ```bash + #!/usr/bin/bash + #Maintained in linux-init-files.org + if pidof dropbox > /dev/null ; then + stat=$(dropbox status | sed -n 1p) + echo "โ‡„${stat}"; echo ""; + else + if command -v dropbox > /dev/null; then + echo "โ‡„Restart Dropbox.." + #dropbox start &> /dev/null & + fi + fi + ``` + + 7. ~/bin/my-i3b-db-status + + ```bash + #!/usr/bin/bash + #Maintained in linux-init-files.org + case $BLOCK_BUTTON in + 1) + sway-www "https://www.dropbox.com/home" &> /dev/null + ;; + ,*) + ;; + esac + + if pidof dropbox > /dev/null ; then + stat=$(dropbox status | sed -n 1p) + echo "DB:${stat}"; echo ""; + else + if command -v dropbox > /dev/null; then + echo "Restart Dropbox.." + #dropbox start &> /dev/null & + fi + fi + ``` + + 8. ~/bin/my-i3b-kernel + + ```bash + #!/usr/bin/bash + #Maintained in linux-init-files.org + case $BLOCK_BUTTON in + 1) + oneterminal "bpytop-kernel" bpytop &>/dev/null & + ;; + *) + ;; + esac + echo "$(uname -sr)" + ``` + + 9. ~/bin/my-i3b-temperature + + ```bash + #!/usr/bin/bash + #Maintained in linux-init-files.org + case $BLOCK_BUTTON in + 1) + sway-do-tool "Hardinfo" "hardinfo" &> /dev/null + ;; + *) + ;; + esac + exec /usr/share/i3blocks/temperature + ``` + + 10. ~/bin/my-i3b-uptime + + ```bash + #!/usr/bin/bash + #Maintained in linux-init-files.org + case $BLOCK_BUTTON in + 1) + sway-do-tool "Hardinfo" "hardinfo" &> /dev/null + ;; + *) + ;; + esac + exec echo "โฌ†$(awk '{print int($1/3600)":"int(($1%3600)/60)}' /proc/uptime)" + ``` + 11. ~/bin/my-i3b-volume return the volume % @@ -1596,20 +1596,7 @@ modifier $mod exec echo "๐Ÿ”Š$(awk -F"[][]" '/Left:/ { print $2 }' <(amixer sget Master))" ``` - 12. ~/bin/my-i3b-wifi - - return the volume % - - ```bash - #!/usr/bin/bash - #Maintained in linux-init-files.org - case $BLOCK_BUTTON in - 1) oneterminal "wifi" "nmtui" &>/dev/null & - esac - exec i3bm-wifi - ``` - - 13. ~/bin/my-i3b-weather + 12. ~/bin/my-i3b-weather return the volume % @@ -1626,6 +1613,19 @@ modifier $mod exec i3bm-weather ``` + 13. ~/bin/my-i3b-wifi + + return the volume % + + ```bash + #!/usr/bin/bash + #Maintained in linux-init-files.org + case $BLOCK_BUTTON in + 1) oneterminal "wifi" "nmtui" &>/dev/null & + esac + exec i3bm-wifi + ``` + # Vim @@ -2181,7 +2181,7 @@ e dbg.bep=main export PATH="${HOME}/.pyenv/bin":"${PATH}" ``` -2. [Eval](#org5ee3312) pyenv init from bash\_profile in order to set python version +2. [Eval](#org678e47b) pyenv init from bash\_profile in order to set python version ```bash eval "$(pyenv init -)" @@ -2193,7 +2193,7 @@ e dbg.bep=main eval "$(pyenv virtualenv-init -)" ``` - Added to PATH in [~/.profile](#org308f920) + Added to PATH in [~/.profile](#org3ce9702) ### Debuggers :debuggers: diff --git a/directories/bin/my-i3b-date-cal b/directories/bin/my-i3b-date-cal index 51e5cd4..c97a64b 100755 --- a/directories/bin/my-i3b-date-cal +++ b/directories/bin/my-i3b-date-cal @@ -7,4 +7,4 @@ case $BLOCK_BUTTON in *) ;; esac -exec echo "๐Ÿ“…$(date +"%a, %d %b: %H:%M)" +exec echo "๐Ÿ“…$(date +"%a, %d %b: %H:%M")" diff --git a/linux-config.org b/linux-config.org index 515d1cf..805f9fe 100644 --- a/linux-config.org +++ b/linux-config.org @@ -1898,107 +1898,6 @@ Load a host specific kanshi file if it exists fi echo "โšก$(awk '{print $1*10^-6 " W"}' /sys/class/power_supply/BAT0/power_now)h๐Ÿ”‹$b" #+end_src -****** ~/bin/my-i3b-db-status -#+begin_src bash :tangle "~/bin/my-i3b-db-status" - #!/usr/bin/bash - #Maintained in linux-init-files.org - if pidof dropbox > /dev/null ; then - stat=$(dropbox status | sed -n 1p) - echo "โ‡„${stat}"; echo ""; - else - if command -v dropbox > /dev/null; then - echo "โ‡„Restart Dropbox.." - #dropbox start &> /dev/null & - fi - fi -#+end_src -****** ~/bin/my-i3b-cpu -#+begin_src bash :tangle "~/bin/my-i3b-cpu" - #!/usr/bin/bash - #Maintained in linux-init-files.org - case $BLOCK_BUTTON in - 1) - sway-do-tool "Hardinfo" "hardinfo" &> /dev/null - ;; - ,*) - ;; - esac - exec i3bm-cpu -#+end_src -****** ~/bin/my-i3b-temperature -#+begin_src bash :tangle "~/bin/my-i3b-temperature" - #!/usr/bin/bash - #Maintained in linux-init-files.org - case $BLOCK_BUTTON in - 1) - sway-do-tool "Hardinfo" "hardinfo" &> /dev/null - ;; - ,*) - ;; - esac - exec /usr/share/i3blocks/temperature -#+end_src -****** ~/bin/my-i3b-uptime -#+begin_src bash :tangle "~/bin/my-i3b-uptime" - #!/usr/bin/bash - #Maintained in linux-init-files.org - case $BLOCK_BUTTON in - 1) - sway-do-tool "Hardinfo" "hardinfo" &> /dev/null - ;; - ,*) - ;; - esac - exec echo "โฌ†$(awk '{print int($1/3600)":"int(($1%3600)/60)}' /proc/uptime)" -#+end_src -****** ~/bin/my-i3b-date-cal -#+begin_src bash :tangle "~/bin/my-i3b-date-cal" - #!/usr/bin/bash - #Maintained in linux-init-files.org - case $BLOCK_BUTTON in - 1) - sway-www "https://navigator.gmx.net/calendar?sid=2806623e0275885527e6231892f7917c1624879b7fa6ca66bcca9f8e2b23de2d90fabd7499f61b2d1063ba6b7281b277" &> /dev/null - ;; - ,*) - ;; - esac - exec echo "๐Ÿ“…$(date +"%a, %d %b: %H:%M)" -#+end_src -****** ~/bin/my-i3b-kernel -#+begin_src bash :tangle "~/bin/my-i3b-kernel" - #!/usr/bin/bash - #Maintained in linux-init-files.org - case $BLOCK_BUTTON in - 1) - oneterminal "bpytop-kernel" bpytop &>/dev/null & - ;; - ,*) - ;; - esac - echo "$(uname -sr)" -#+end_src -****** ~/bin/my-i3b-db-status -#+begin_src bash :tangle "~/bin/my-i3b-db-status" - #!/usr/bin/bash - #Maintained in linux-init-files.org - case $BLOCK_BUTTON in - 1) - sway-www "https://www.dropbox.com/home" &> /dev/null - ;; - ,,*) - ;; - esac - - if pidof dropbox > /dev/null ; then - stat=$(dropbox status | sed -n 1p) - echo "DB:${stat}"; echo ""; - else - if command -v dropbox > /dev/null; then - echo "Restart Dropbox.." - #dropbox start &> /dev/null & - fi - fi -#+end_src ****** ~/bin/my-i3b-bluetooth Thank you https://github.com/deanproxy/dotfiles/blob/master/linux/i3/scripts/bluetooth #+begin_src bash :tangle "~/bin/my-i3b-bluetooth" @@ -2063,6 +1962,107 @@ return the brightness % fi #+end_src +****** ~/bin/my-i3b-cpu +#+begin_src bash :tangle "~/bin/my-i3b-cpu" + #!/usr/bin/bash + #Maintained in linux-init-files.org + case $BLOCK_BUTTON in + 1) + sway-do-tool "Hardinfo" "hardinfo" &> /dev/null + ;; + ,*) + ;; + esac + exec i3bm-cpu +#+end_src +****** ~/bin/my-i3b-date-cal +#+begin_src bash :tangle "~/bin/my-i3b-date-cal" + #!/usr/bin/bash + #Maintained in linux-init-files.org + case $BLOCK_BUTTON in + 1) + sway-www "https://navigator.gmx.net/calendar?sid=2806623e0275885527e6231892f7917c1624879b7fa6ca66bcca9f8e2b23de2d90fabd7499f61b2d1063ba6b7281b277" &> /dev/null + ;; + ,*) + ;; + esac + exec echo "๐Ÿ“…$(date +"%a, %d %b: %H:%M")" +#+end_src +****** ~/bin/my-i3b-db-status +#+begin_src bash :tangle "~/bin/my-i3b-db-status" + #!/usr/bin/bash + #Maintained in linux-init-files.org + if pidof dropbox > /dev/null ; then + stat=$(dropbox status | sed -n 1p) + echo "โ‡„${stat}"; echo ""; + else + if command -v dropbox > /dev/null; then + echo "โ‡„Restart Dropbox.." + #dropbox start &> /dev/null & + fi + fi +#+end_src +****** ~/bin/my-i3b-db-status +#+begin_src bash :tangle "~/bin/my-i3b-db-status" + #!/usr/bin/bash + #Maintained in linux-init-files.org + case $BLOCK_BUTTON in + 1) + sway-www "https://www.dropbox.com/home" &> /dev/null + ;; + ,,*) + ;; + esac + + if pidof dropbox > /dev/null ; then + stat=$(dropbox status | sed -n 1p) + echo "DB:${stat}"; echo ""; + else + if command -v dropbox > /dev/null; then + echo "Restart Dropbox.." + #dropbox start &> /dev/null & + fi + fi +#+end_src +****** ~/bin/my-i3b-kernel +#+begin_src bash :tangle "~/bin/my-i3b-kernel" + #!/usr/bin/bash + #Maintained in linux-init-files.org + case $BLOCK_BUTTON in + 1) + oneterminal "bpytop-kernel" bpytop &>/dev/null & + ;; + ,*) + ;; + esac + echo "$(uname -sr)" +#+end_src +****** ~/bin/my-i3b-temperature +#+begin_src bash :tangle "~/bin/my-i3b-temperature" + #!/usr/bin/bash + #Maintained in linux-init-files.org + case $BLOCK_BUTTON in + 1) + sway-do-tool "Hardinfo" "hardinfo" &> /dev/null + ;; + ,*) + ;; + esac + exec /usr/share/i3blocks/temperature +#+end_src +****** ~/bin/my-i3b-uptime +#+begin_src bash :tangle "~/bin/my-i3b-uptime" + #!/usr/bin/bash + #Maintained in linux-init-files.org + case $BLOCK_BUTTON in + 1) + sway-do-tool "Hardinfo" "hardinfo" &> /dev/null + ;; + ,*) + ;; + esac + exec echo "โฌ†$(awk '{print int($1/3600)":"int(($1%3600)/60)}' /proc/uptime)" +#+end_src ****** ~/bin/my-i3b-volume return the volume % #+begin_src bash :tangle "~/bin/my-i3b-volume" @@ -2077,16 +2077,6 @@ return the volume % esac exec echo "๐Ÿ”Š$(awk -F"[][]" '/Left:/ { print $2 }' <(amixer sget Master))" #+end_src -****** ~/bin/my-i3b-wifi -return the volume % -#+begin_src bash :tangle "~/bin/my-i3b-wifi" - #!/usr/bin/bash - #Maintained in linux-init-files.org - case $BLOCK_BUTTON in - 1) oneterminal "wifi" "nmtui" &>/dev/null & - esac - exec i3bm-wifi -#+end_src ****** ~/bin/my-i3b-weather return the volume % #+begin_src bash :tangle "~/bin/my-i3b-weather" @@ -2101,6 +2091,16 @@ return the volume % esac exec i3bm-weather #+end_src +****** ~/bin/my-i3b-wifi +return the volume % +#+begin_src bash :tangle "~/bin/my-i3b-wifi" + #!/usr/bin/bash + #Maintained in linux-init-files.org + case $BLOCK_BUTTON in + 1) oneterminal "wifi" "nmtui" &>/dev/null & + esac + exec i3bm-wifi +#+end_src * Vim ** ~/.vimrc #+begin_src conf :tangle "DotFiles/.vimrc"