Minor changes
This commit is contained in:
parent
e3fba965d1
commit
2364bd462c
@ -73,7 +73,6 @@ Script taken from Luke Smith.
|
|||||||
,*) xrandr --output "$chosen" --auto --scale 1.0x1.0 $(echo "$allposs" | grep -v "$chosen" | awk '{print "--output", $1, "--off"}' | tr '\n' ' ') ;;
|
,*) xrandr --output "$chosen" --auto --scale 1.0x1.0 $(echo "$allposs" | grep -v "$chosen" | awk '{print "--output", $1, "--off"}' | tr '\n' ' ') ;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
# setbg # Fix background if screen size/arangement has changed.
|
|
||||||
$HOME/.config/polybar/scripts/launch.sh # restart polybar
|
$HOME/.config/polybar/scripts/launch.sh # restart polybar
|
||||||
pgrep -x dunst >/dev/null && killall dunst && setsid dunst & # Restart dunst to ensure proper location on screen
|
pgrep -x dunst >/dev/null && killall dunst && setsid dunst & # Restart dunst to ensure proper location on screen
|
||||||
#+end_src
|
#+end_src
|
||||||
@ -533,23 +532,6 @@ The sed piece just removes the colon from the provided prompt: =rofi -p= already
|
|||||||
-p "$(printf "$1" | sed s/://)"
|
-p "$(printf "$1" | sed s/://)"
|
||||||
#+END_SRC
|
#+END_SRC
|
||||||
|
|
||||||
* buku-dmenu
|
|
||||||
:PROPERTIES:
|
|
||||||
:header-args: :tangle ~/bin/buku-dmenu
|
|
||||||
:header-args+: :comments both :mkdirp yes
|
|
||||||
:header-args+: :shebang "#!/usr/bin/env bash"
|
|
||||||
:END:
|
|
||||||
#+BEGIN_SRC bash
|
|
||||||
if [ "$1" == "--help" ] ; then
|
|
||||||
echo "Run the script, start typing until the desired bookmark is selected."
|
|
||||||
echo "buku and dmenu must be installed."
|
|
||||||
exit 0
|
|
||||||
fi
|
|
||||||
|
|
||||||
#get all bmks | swap tabs for spaces | run dmenu | cut to ID | run buku if not empty
|
|
||||||
buku -p -f 3 | sed 's/\t/ /g' | dmenu -i -l 20 | cut -d ' ' -f 1 | xargs --no-run-if-empty buku -o
|
|
||||||
#+END_SRC
|
|
||||||
|
|
||||||
* Take Screenshot
|
* Take Screenshot
|
||||||
:PROPERTIES:
|
:PROPERTIES:
|
||||||
:header-args: :tangle ~/bin/screenshot
|
:header-args: :tangle ~/bin/screenshot
|
||||||
@ -667,18 +649,3 @@ The sed piece just removes the colon from the provided prompt: =rofi -p= already
|
|||||||
sudo -A mkdir ~/tmp_14_days;
|
sudo -A mkdir ~/tmp_14_days;
|
||||||
sudo -A mount -o rw,relatime,vers=3,rsize=1048576,wsize=1048576,namlen=255,hard,proto=tcp,timeo=600,retrans=2,sec=sys,mountaddr=160.103.232.103,mountvers=3,mountport=597,mountproto=tcp,local_lock=none,addr=160.103.232.103 rnice:/hz/tmp_14_days ~/tmp_14_days;
|
sudo -A mount -o rw,relatime,vers=3,rsize=1048576,wsize=1048576,namlen=255,hard,proto=tcp,timeo=600,retrans=2,sec=sys,mountaddr=160.103.232.103,mountvers=3,mountport=597,mountproto=tcp,local_lock=none,addr=160.103.232.103 rnice:/hz/tmp_14_days ~/tmp_14_days;
|
||||||
#+end_src
|
#+end_src
|
||||||
|
|
||||||
* Reboot to OS
|
|
||||||
:PROPERTIES:
|
|
||||||
:header-args: :tangle ~/bin/reboot-to-os
|
|
||||||
:header-args+: :comments both :mkdirp yes
|
|
||||||
:header-args+: :shebang "#!/usr/bin/env bash"
|
|
||||||
:END:
|
|
||||||
|
|
||||||
#+begin_src bash
|
|
||||||
os_id=$(echo -e "0 Manjaro\n1 Windows10" | dmenu -i -l 20 | awk -F ' ' '{print $1}');
|
|
||||||
|
|
||||||
if [ -n "$os_id" ]; then
|
|
||||||
sudo -A grub-reboot $os_id && sudo -A reboot
|
|
||||||
fi
|
|
||||||
#+end_src
|
|
||||||
|
Loading…
Reference in New Issue
Block a user