adding nyxtlof and some sway config
This commit is contained in:
parent
6f25e400a9
commit
6e88893a19
|
@ -318,7 +318,7 @@ colors:
|
||||||
#
|
#
|
||||||
# Window opacity as a floating point number from `0.0` to `1.0`.
|
# Window opacity as a floating point number from `0.0` to `1.0`.
|
||||||
# The value `0.0` is completely transparent and `1.0` is opaque.
|
# The value `0.0` is completely transparent and `1.0` is opaque.
|
||||||
background_opacity: 0.75
|
background_opacity: 1.0
|
||||||
|
|
||||||
#selection:
|
#selection:
|
||||||
#semantic_escape_chars: ",│`|:\"' ()[]{}<>\t"
|
#semantic_escape_chars: ",│`|:\"' ()[]{}<>\t"
|
||||||
|
|
33
scripts/nyxtlof
Executable file
33
scripts/nyxtlof
Executable file
|
@ -0,0 +1,33 @@
|
||||||
|
#!/bin/sh
|
||||||
|
|
||||||
|
# Check to see if nyxt is running
|
||||||
|
if [ -n $(pgrep -c nyxt) ]; then
|
||||||
|
echo running
|
||||||
|
|
||||||
|
if [ $XDG_SESSION_TYPE = "x11" ]; then
|
||||||
|
#X11
|
||||||
|
nyxtrg=$(wmctrl -lx | rg nyxt | awk '{print $1}')
|
||||||
|
# echo $emacsrg
|
||||||
|
|
||||||
|
if [ -z $nyxtrg ]; then
|
||||||
|
nyxt
|
||||||
|
exit
|
||||||
|
else
|
||||||
|
wmctrl -ia $nyxtrg
|
||||||
|
exit
|
||||||
|
fi
|
||||||
|
else
|
||||||
|
echo wayland
|
||||||
|
# WAYLAND
|
||||||
|
nyxtrg=$(wlrctl window list | rg nyxt:)
|
||||||
|
|
||||||
|
nyxtwin=$(echo $nyxtrg | sed 's/.*\: //')
|
||||||
|
# echo $nyxtwin
|
||||||
|
|
||||||
|
wlrctl toplevel focus nyxt
|
||||||
|
exit
|
||||||
|
fi
|
||||||
|
else
|
||||||
|
echo not running
|
||||||
|
nyxt
|
||||||
|
fi
|
|
@ -39,15 +39,15 @@ option=$(printf '%s\n' "${options[@]%}" | wofi -id -W 400 -H 150 -p"...")
|
||||||
case ${option} in
|
case ${option} in
|
||||||
Password )
|
Password )
|
||||||
# echo "${SECRET}"
|
# echo "${SECRET}"
|
||||||
ydotool type $(rbw get "${SECRET}")
|
ydotool type --next-delay 500 $(rbw get "${SECRET}")
|
||||||
;;
|
;;
|
||||||
User )
|
User )
|
||||||
ydotool type $(rbw get --full "${SECRET}" | rg Username: | awk '{$1 = ""; print $0}')
|
ydotool type --next-delay 500 "$(rbw get --full "${SECRET}" | rg Username: | awk '{print $2}')"
|
||||||
;;
|
;;
|
||||||
"User and password" )
|
"User and password" )
|
||||||
ydotool type $(rbw get --full "${SECRET}" | rg Username: | awk '{$1 = ""; print $0}')
|
ydotool type --next-delay 500 $(rbw get --full "${SECRET}" | rg Username: | awk '{print $2}')
|
||||||
ydotool key TAB
|
ydotool key TAB
|
||||||
ydotool type $(rbw get "${SECRET}")
|
ydotool type --next-delay 500 $(rbw get "${SECRET}")
|
||||||
;;
|
;;
|
||||||
"QR-Code" )
|
"QR-Code" )
|
||||||
if [[ $SECRET =~ wifi$ ]]; then
|
if [[ $SECRET =~ wifi$ ]]; then
|
||||||
|
@ -62,7 +62,7 @@ case ${option} in
|
||||||
fi
|
fi
|
||||||
;;
|
;;
|
||||||
"OTP" )
|
"OTP" )
|
||||||
ydotool type $(rbw code ${SECRET})
|
ydotool type --next-delay 300 $(rbw code ${SECRET})
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
|
|
|
@ -238,8 +238,8 @@ bindsym $mod+o mode "$mode_launcher"
|
||||||
# Clear notifications
|
# Clear notifications
|
||||||
bindsym $mod+Ctrl+m exec makoctl dismiss -a
|
bindsym $mod+Ctrl+m exec makoctl dismiss -a
|
||||||
|
|
||||||
bindsym $mod+e exec emacsclient -c -a emacs
|
bindsym $mod+e exec emacslof
|
||||||
bindsym $mod+b exec nyxt
|
bindsym $mod+b exec nyxtlof
|
||||||
bindsym $mod+i exec emacsclient -e '(chris/org-agenda)'
|
bindsym $mod+i exec emacsclient -e '(chris/org-agenda)'
|
||||||
bindsym $mod+m exec emacsclient -c -e '(mu4e)'
|
bindsym $mod+m exec emacsclient -c -e '(mu4e)'
|
||||||
bindsym $mod+Shift+d exec dolphin
|
bindsym $mod+Shift+d exec dolphin
|
||||||
|
@ -261,6 +261,7 @@ for_window [app_id="dolphin"] floating enable
|
||||||
for_window [app_id="pulsemixer"] floating enable
|
for_window [app_id="pulsemixer"] floating enable
|
||||||
for_window [app_id="__focused__"] opacity set 1
|
for_window [app_id="__focused__"] opacity set 1
|
||||||
for_window [app_id="qutebrowser"] move container to workspace number 2, opacity set 1
|
for_window [app_id="qutebrowser"] move container to workspace number 2, opacity set 1
|
||||||
|
for_window [app_id="nyxt"] move container to workspace number 2, opacity set 1
|
||||||
for_window [title="Display Window"] move container to workspace number 9, fullscreen enable, move workspace to output right
|
for_window [title="Display Window"] move container to workspace number 9, fullscreen enable, move workspace to output right
|
||||||
# for_window [app_id="emacs"] opacity set 0.90
|
# for_window [app_id="emacs"] opacity set 0.90
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue