update
This commit is contained in:
+14
-21
@@ -3,24 +3,17 @@ this menu shows you mango IPC options in the following format
|
||||
command | example | description
|
||||
you can search through these.
|
||||
|
||||
mmsg -Q | mmsg -q | quit mangoWM
|
||||
mmsg -w | mmsg -w -g -O | the -w flag "watches" the other flags, giving you constant updates.
|
||||
mmsg -g | mmsg -g | gets *all* information
|
||||
mmsg -g | mmsg -g -O | the -g flag gets information, a second flag determines the info to get
|
||||
mmsg -g | mmsg -g -O | gets a list of monitor outputs
|
||||
mmsg -g | mmsg -g -T | gets the number of tags
|
||||
mmsg -g | mmsg -g -L | gets all available layouts in shorthand
|
||||
mmsg -g | mmsg -g -t | get tag information
|
||||
mmsg -g | mmsg -g -l | get the current layout for each monitor
|
||||
mmsg -g | mmsg -g -c | get information of the most recent focused client on each monitor
|
||||
mmsg -g | mmsg -g -m | get fullscreen state for all monitors
|
||||
mmsg -g | mmsg -g -f | get floating state for all monitors
|
||||
mmsg -g | mmsg -g -x | get the position and size for the most recent focused client per monitor
|
||||
mmsg -g | mmsg -g -k | gets the current keyboard layout
|
||||
mmsg -g | mmsg -g -b | gets the current keybind mode
|
||||
mmsg -g | mmsg -g -A | gets the current scale factor for all monitors
|
||||
mmsg -s | mmsg -s -t 1 | the -s flag sets information, a second flag determines what to set.
|
||||
mmsg -s | mmsg -s -t 2 | set tags, 1 = switch to 1, 2+ = add 2 to view, 2- = remove 2, 2^ = toggle tag 2
|
||||
mmsg -s | mmsg -s -l DW | sets layout
|
||||
mmsg -o | mmsg -s -l DW -o DP-1 | selects a specific monitor for set commands
|
||||
mmsg -d | mmsg -d <dispatcher> | runs any keybind dispatcher, see the dispatcher list.
|
||||
mmsg get version | mmsg get version | gets the current version of mangoWM in json
|
||||
mmsg get keymode | mmsg get keymode | returns the current active keyboard mode in json
|
||||
mmsg get keyboardlayout | mmsg get keyboardlayout | returns the current XKB layout in json
|
||||
mmsg get monitor | mmsg get monitor DP-1 | get information about a specific monitor in json
|
||||
mmsg get focusing-client | mmsg get focusing-client | get all details of the current active window in json
|
||||
mmsg get client | mmsg get client 12 | gives all details for the window with the provided ID in json
|
||||
mmsg get tag | mmsg get tag DP-1 1 | gets the status details of a specific tag on a specific monitor in json
|
||||
mmsg get tags | mmsg get tags DP-1 | gets details on all tags on a specific monitor in json
|
||||
mmsg get all-clients | mmsg get all-clients | gets details for all clients in json
|
||||
mmsg get all-monitors | mmsg get all-monitors | gets details for all monitors in json
|
||||
mmsg get all-tags | mmsg get all-tags | gets details for all tags in json
|
||||
mmsg get last_open_surface | mmsg get last_open_surface DP-1 | gets the last open surface on a monitor (will generally be DMS)
|
||||
mmsg watch | mmsg watch monitor | constant stream that updates whenever the information updates, for use in daemons, works like mmsg get
|
||||
mmsg dispatch | mmsg dispatch <dispatcher> <args> | runs any keybind dispatcher, see the dispatcher list.
|
||||
@@ -31,7 +31,7 @@ command | | mango -c ~/.co
|
||||
### other monitor things
|
||||
~/.config/mango/monitors.conf | allow_tearing | allow_tearing=1 | allows programs to bypass mangoWM vsync | Mango Monitor Rules
|
||||
~/.config/mango/windowrules.conf | force_tearing:1 | windowrule=force_tearing:1,title:myapptitle | turns off compositor VSYNC for matching programs | Mango Monitor Rules
|
||||
command | toggle monitors | mmsg -d toggle_monitor,eDP-1 | toggles output to the provided monitor | Mango Monitor Rules
|
||||
command | toggle monitors | mmsg dispatch toggle_monitor,eDP-1 | toggles output to the provided monitor | Mango Monitor Rules
|
||||
|
||||
## Mango Keyboard settings
|
||||
~/.config/mango/input.conf | repeat_rate | repeat_rate=25 | how many keystrokes per second a held key does | Mango Keyboard Settings
|
||||
|
||||
+15
-15
@@ -1,69 +1,69 @@
|
||||
#!/bin/bash
|
||||
|
||||
|
||||
ACTIVEMON=$(mmsg -g -o | grep -e "selmon 1" | awk '{print $1}')
|
||||
ACTIVEMON=$(mmsg get all-monitors | jq '.monitors[] | select(.active == true) | .name' -r)
|
||||
|
||||
echo $ACTIVEMON
|
||||
|
||||
LAYOUT=$(mmsg -g -l | grep -e "$ACTIVEMON" | awk '{print $3}')
|
||||
LAYOUT=$(mmsg get monitor $ACTIVEMON | jq '.tags[] | select(.is_active == true) | .layout' -r)
|
||||
|
||||
echo "$LAYOUT"
|
||||
|
||||
case $LAYOUT in
|
||||
T)
|
||||
echo "Left Master"
|
||||
mmsg -d zoom
|
||||
mmsg dispatch zoom
|
||||
;;
|
||||
S)
|
||||
echo "Horizontal Scroller"
|
||||
mmsg -d switch_proportion_preset
|
||||
mmsg dispatch switch_proportion_preset
|
||||
;;
|
||||
G)
|
||||
echo "Horizontal Grid"
|
||||
mmsg -d togglegaps
|
||||
mmsg dispatch togglegaps
|
||||
;;
|
||||
M)
|
||||
echo "Monocle"
|
||||
;;
|
||||
K)
|
||||
echo "Horizontal Deck"
|
||||
mmsg -d zoom
|
||||
mmsg dispatch zoom
|
||||
;;
|
||||
CT)
|
||||
echo "Center Master"
|
||||
mmsg -d zoom
|
||||
mmsg dispatch zoom
|
||||
;;
|
||||
RT)
|
||||
echo "Right Master"
|
||||
mmsg -d zoom
|
||||
mmsg dispatch zoom
|
||||
;;
|
||||
VS)
|
||||
echo "Vertical Scroller"
|
||||
mmsg -d switch_proportion_preset
|
||||
mmsg dispatch switch_proportion_preset
|
||||
;;
|
||||
VT)
|
||||
echo "Top Master"
|
||||
mmsg -d zoom
|
||||
mmsg dispatch zoom
|
||||
;;
|
||||
VG)
|
||||
echo "Vertical Grid"
|
||||
mmsg -d togglegaps
|
||||
mmsg dispatch togglegaps
|
||||
;;
|
||||
VK)
|
||||
echo "Vertical Deck"
|
||||
mmsg -d zoom
|
||||
mmsg dispatch zoom
|
||||
;;
|
||||
DW)
|
||||
echo "Dwindle"
|
||||
mmsg -d togglemaximizescreen
|
||||
mmsg dispatch togglemaximizescreen
|
||||
;;
|
||||
F)
|
||||
echo "Fair"
|
||||
mmsg -d togglegaps
|
||||
mmsg dispatch togglegaps
|
||||
;;
|
||||
VF)
|
||||
echo "Vertical Fair"
|
||||
mmsg -d togglegaps
|
||||
mmsg dispatch togglegaps
|
||||
;;
|
||||
*)
|
||||
notify-send "Unhandled Layout Detected"
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
#!/bin/bash
|
||||
|
||||
#mmsg -d togglefloating
|
||||
#mmsg dispatch togglefloating
|
||||
|
||||
|
||||
SELECTED=$(cat ~/.config/sdgos/tuis/layouts.list | cut -d '|' -f 1 | fzf --layout=reverse)
|
||||
|
||||
+14
-14
@@ -1,15 +1,15 @@
|
||||
Scroller - horizontal | mmsg -l "S"
|
||||
Scroller - vertical | mmsg -l "VS"
|
||||
Tile/master - left | mmsg -l "T"
|
||||
Tile/master - top | mmsg -l "VT"
|
||||
Tile/master - center | mmsg -l "CT"
|
||||
Tile/master - right | mmsg -l "RT"
|
||||
Grid - horizontal | mmsg -l "G"
|
||||
Grid - vertical | mmsg -l "VG"
|
||||
Deck - horizontal | mmsg -l "K"
|
||||
Deck - vertical | mmsg -l "VK"
|
||||
Fair - horizontal | mmsg -l "F"
|
||||
Fair - vertical | mmsg -l "VF"
|
||||
Monocle | mmsg -l "M"
|
||||
Dwindle | mmsg -l "DW"
|
||||
Scroller - horizontal | mmsg dispatch setlayout,scroller
|
||||
Scroller - vertical | mmsg dispatch setlayout,vertical_scroller
|
||||
Tile/master - left | mmsg dispatch setlayout,tile
|
||||
Tile/master - top | mmsg dispatch setlayout,vertical_tile
|
||||
Tile/master - center | mmsg dispatch setlayout,center_tile
|
||||
Tile/master - right | mmsg dispatch setlayout,right_tile
|
||||
Grid - horizontal | mmsg dispatch setlayout,grid
|
||||
Grid - vertical | mmsg dispatch setlayout,vertical_grid
|
||||
Deck - horizontal | mmsg dispatch setlayout,deck
|
||||
Deck - vertical | mmsg dispatch setlayout,vertical_deck
|
||||
Fair - horizontal | mmsg dispatch setlayout,fair
|
||||
Fair - vertical | mmsg dispatch setlayout,vertical_fair
|
||||
Monocle | mmsg dispatch setlayout,monocle
|
||||
Dwindle | mmsg dispatch setlayout,dwindle
|
||||
|
||||
|
||||
@@ -13,4 +13,4 @@ echo $SELECTED
|
||||
|
||||
CMD="code-oss -n $SELECTED"
|
||||
|
||||
mmsg -d spawn_shell,"$CMD"
|
||||
mmsg dispatch spawn_shell,"$CMD"
|
||||
Reference in New Issue
Block a user