Subida inicial
This commit is contained in:
commit
7a85d75acf
2 changed files with 27 additions and 0 deletions
11
Tile On-Off.desktop
Executable file
11
Tile On-Off.desktop
Executable file
|
@ -0,0 +1,11 @@
|
|||
[Desktop Entry]
|
||||
Version=1.0
|
||||
Type=Application
|
||||
Terminal=false
|
||||
Name[es_ES]=Tile On-Off
|
||||
Exec=/home/USUARIO/.local/bin/cortile-On_Off.sh
|
||||
Comment[es_ES]=Iniciar/Detener Cortile Tile Window
|
||||
Icon=org.xfce.workspaces
|
||||
Icon[es_ES]=org.xfce.workspaces
|
||||
Name=Tile On-Off
|
||||
Comment=Iniciar/Detener Cortile Tile Window
|
16
cortile-On_Off.sh
Executable file
16
cortile-On_Off.sh
Executable file
|
@ -0,0 +1,16 @@
|
|||
#!/bin/bash
|
||||
# SOLOCONLINUX. Script para Iniciar/Detener el servicio de cortile "tile window manager"
|
||||
|
||||
# Preguntar al servicio de Cortile
|
||||
nCortiles=$(systemctl --user --no-pager -l status cortile.service |grep 'Active'|grep -i 'running'|wc -l|awk '{print $1}')
|
||||
# 0 => Apagado / 1 => Encendido
|
||||
if [ $nCortiles == 0 ] ; then
|
||||
# No esta corriendo lo inicio
|
||||
systemctl --user start cortile.service
|
||||
#echo "Cortile Iniciado"
|
||||
else
|
||||
# Iniciado. Lo Detengo
|
||||
systemctl --user stop cortile.service
|
||||
#echo "Cortile Detenido"
|
||||
fi
|
||||
|
Loading…
Reference in a new issue