Add reboottoos script
This commit is contained in:
		@@ -594,6 +594,7 @@ The sed piece just removes the colon from the provided prompt: =rofi -p= already
 | 
			
		||||
          maim -i $(xdotool getactivewindow) ~/Pictures/$name.png ;;
 | 
			
		||||
  esac
 | 
			
		||||
#+end_src
 | 
			
		||||
<<<<<<< Updated upstream
 | 
			
		||||
 | 
			
		||||
* Remote Desktop Connect
 | 
			
		||||
  :PROPERTIES:
 | 
			
		||||
@@ -665,6 +666,7 @@ The sed piece just removes the colon from the provided prompt: =rofi -p= already
 | 
			
		||||
  fi
 | 
			
		||||
#+end_src
 | 
			
		||||
 | 
			
		||||
<<<<<<< Updated upstream
 | 
			
		||||
* Mount TMP14DAYS
 | 
			
		||||
  :PROPERTIES:
 | 
			
		||||
  :header-args: :tangle ~/bin/mnt_tmp_14_days
 | 
			
		||||
@@ -676,3 +678,18 @@ The sed piece just removes the colon from the provided prompt: =rofi -p= already
 | 
			
		||||
  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;
 | 
			
		||||
#+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
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user