-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
1a2e6ff
commit 311f655
Showing
6 changed files
with
75 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
[dmenu] | ||
dmenu_command = wofi --dmenu -i | ||
# # Note that dmenu_command can contain arguments as well like: | ||
# # `dmenu_command = rofi -dmenu -i -theme nmdm` | ||
# # `dmenu_command = rofi -dmenu -width 30 -i` | ||
# # `dmenu_command = dmenu -i -l 25 -b -nb #909090 -nf #303030` | ||
rofi_highlight = True | ||
# compact = <True or False> # (Default: False). Remove extra spacing from display | ||
# pinentry = <Pinentry command> # (Default: None) e.g. `pinentry-gtk` | ||
# wifi_chars = <string of 4 unicode characters representing 1-4 bars strength> | ||
wifi_chars = ▂▄▆█ | ||
list_saved = True | ||
|
||
[dmenu_passphrase] | ||
# # Uses the -password flag for Rofi, -x for bemenu. For dmenu, sets -nb and | ||
# # -nf to the same color or uses -P if the dmenu password patch is applied | ||
# # https://tools.suckless.org/dmenu/patches/password/ | ||
# obscure = True | ||
# obscure_color = #222222 | ||
|
||
[editor] | ||
terminal = wezterm | ||
gui_if_available = True | ||
|
||
[nmdm] | ||
# rescan_delay = <seconds> # (seconds to wait after a wifi rescan before redisplaying the results) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
#!/bin/bash | ||
|
||
TARGET_OUTPUT=$(swaymsg -t get_outputs | jq -r '.[].name' | wofi --dmenu -p "Target display ..." -H "300") | ||
|
||
case $((echo 'Mode'; echo 'Power'; echo 'Cancel') | wofi --dmenu -p "Command" -H "300") in | ||
"Mode") | ||
echo "Currently not supported." | ||
;; | ||
"Power") | ||
case $((echo 'On'; echo 'Off') | wofi --dmenu -p "Display Power" -H "300") in | ||
"On") | ||
swaymsg -- output ${TARGET_OUTPUT} enable | ||
;; | ||
"Off") | ||
swaymsg -- output ${TARGET_OUTPUT} disable | ||
;; | ||
*) | ||
echo "Error: invalid command" | ||
;; | ||
esac | ||
;; | ||
"Cancel") | ||
;; | ||
*) | ||
echo "Error: invalid command" | ||
;; | ||
esac | ||
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
#!/bin/bash | ||
|
||
TARGET_OUTPUT=$(swaymsg -t get_outputs | jq -r '.[].name' | wofi --dmenu -p "Move to ..." -H "300") | ||
swaymsg -t move workspace to ${TARGET_OUTPUT} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters