Subida inicial

This commit is contained in:
luisgulo 2024-04-25 15:01:32 +02:00
commit 7a85d75acf
2 changed files with 27 additions and 0 deletions

11
Tile On-Off.desktop Executable file
View 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
View 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