User Tools

Site Tools


wiki:comment_uncomment_hosts_file_gnome_shell_panel

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
wiki:comment_uncomment_hosts_file_gnome_shell_panel [2022/04/14 16:55] – created antisawiki:comment_uncomment_hosts_file_gnome_shell_panel [2023/05/31 15:14] (current) – [See also] add guillotine link antisa
Line 3: Line 3:
 ====== Comment/uncomment hosts file from gnome shell panel ====== ====== Comment/uncomment hosts file from gnome shell panel ======
  
-Install [[https://github.com/rammie/argos|argos]]+Install [[https://github.com/p-e-w/argos|argos]]
  
-In //.config/argos/hosts.sh// add this:+In //.config/argos/hosts.10s.sh// add this:
 <file bash hosts.sh> <file bash hosts.sh>
 #!/usr/bin/env bash #!/usr/bin/env bash
Line 17: Line 17:
 echo "host03 | iconName=help-faq-symbolic terminal=true bash='switch_host.sh 03'" echo "host03 | iconName=help-faq-symbolic terminal=true bash='switch_host.sh 03'"
 echo "RESET | iconName=help-faq-symbolic terminal=true bash='switch_host.sh reset'" echo "RESET | iconName=help-faq-symbolic terminal=true bash='switch_host.sh reset'"
 +echo "---"
 +CURRENT=$(awk '/## DELIMITER/,/##\/DELIMITER/' /etc/hosts | grep -v '^$' | grep -B1 -v '^#')
 +echo "$CURRENT"
 </file> </file>
  
Line 57: Line 60:
  
 ====== See also ====== ====== See also ======
 +  * [[https://extensions.gnome.org//extension/3981/guillotine/|Guillotine]]
 ====== References ====== ====== References ======
  
  
wiki/comment_uncomment_hosts_file_gnome_shell_panel.1649948114.txt.gz · Last modified: 2022/04/14 16:55 by antisa

Except where otherwise noted, content on this wiki is licensed under the following license: CC0 1.0 Universal
CC0 1.0 Universal Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki