Skip to content

Instantly share code, notes, and snippets.

View mijorus's full-sized avatar
😎

Lorenzo Paderi mijorus

😎
View GitHub Profile
@mijorus
mijorus / toggleDoNotDisturb.sh
Last active October 18, 2021 07:37
Toggle Do Not Disturb mode on Gnome on/off with a sigle command
currentdndstate=$(gsettings get org.gnome.desktop.notifications show-banners); if [ $currentdndstate == "false" ]; then gsettings set org.gnome.desktop.notifications show-banners true; else gsettings set org.gnome.desktop.notifications show-banners false; fi
@mijorus
mijorus / mkdd.md
Last active October 18, 2021 07:38
Create a new directory and switch to it: Fish Shell

Copy to ./config/fish/functions/mkdd.fish

function mkdd -d "Create a directory and set CWD"
    command mkdir $argv
    if test $status = 0
        switch $argv[(count $argv)]
            case '*'
                cd $argv[(count $argv)]
                return
 end
@mijorus
mijorus / imwheel-gui.sh
Last active September 1, 2021 21:25
imwheel script gui modified to disable the service on 0
#!/bin/bash
# Comments and complaints http://www.nicknorton.net, last modification
# by mijorus here https://gist.github.com/mijorus/f7c127a62230490df4e796207ce540bf.
# GUI for mouse wheel speed using imwheel in Gnome
# imwheel needs to be installed for this script to work
# sudo apt-get install imwheel
# Pretty much hard wired to only use a mouse with
# left, right and wheel in the middle.
# If you have a mouse with complications or special needs,
# use the command xev to find what your wheel does.