Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How i can make disable+fullscreen mode? #41

Closed
ahmeteid7 opened this issue Jan 14, 2024 · 3 comments
Closed

How i can make disable+fullscreen mode? #41

ahmeteid7 opened this issue Jan 14, 2024 · 3 comments
Assignees
Labels
question Further information is requested

Comments

@ahmeteid7
Copy link

ahmeteid7 commented Jan 14, 2024

i wish when i disable or exit cortile , it exit with fullscreen mode.
can one key binding with two functions?if yes how i can do that in config?

@ahmeteid7
Copy link
Author

ahmeteid7 commented Jan 14, 2024

i tried that and worked.

 echo '{"Action":"enable"}' | nc -U /tmp/cortile.sock.in
sleep 1
echo '{"Action":"layout_fullscreen"}' | nc -U /tmp/cortile.sock.in

and in keyword app i made ctrl+shift+0 to run it to enable+fullscreen.
and for disable+fullscreen

echo '{"Action":"layout_fullscreen"}' | nc -U /tmp/cortile.sock.in
    sleep 1
 echo '{"Action":"disable"}' | nc -U /tmp/cortile.sock.in

and make shift+ctrl+. to run it.
i wish if i can make it toggle with certain key

for exit from cortile with fullscreen i tried that:
i do toggle launcher and pined it to panel with that script:

if pgrep -f "/home/eid/cortile" > /dev/null; then
    # The application is running, so let's kill it
    echo '{"Action":"layout_fullscreen"}' | nc -U /tmp/cortile.sock.in
    sleep 1
    pkill -f "/home/eid/cortile"
    
else
    /home/eid/cortile &

@thiswillbeyourgithub
Copy link

I'm sorry I must be missing some brain cells but I don't have any cortile.sock.in file in /tmp. Is there something I must do to enable this feature? I'm REALLY missing the ability to toggle layouts. It's making cortile awkward to use.

@leukipp
Copy link
Owner

leukipp commented Oct 22, 2024

@thiswillbeyourgithub
The socket communication does not exist any more and was replaced with dbus as mentioned here: #51 (comment)

You may want to create a new issues with your specific use case and requirements.
Maybe the feature you need does not require any sophisticated external communication.

In general you can directly use dbus to communicate with cortile, or use the build-in dbus client. e.g.:

 cortile dbus -method ActionExecute layout_maximized 0 0

In case you need extended custom logic you may want to have a look into the examples folder of the cortile python bindings: https://github.com/leukipp/cortile-addons

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

3 participants