brightness

This commit is contained in:
rileyrg 2023-12-31 08:49:34 +01:00
parent 4f097f6087
commit a6ccf79d54
4 changed files with 15 additions and 15 deletions

View file

@ -645,8 +645,8 @@ done by linux systemd
4. brightness :brightness:
bindsym --locked XF86MonBrightnessUp exec --no-startup-id light -A 10 && sway-brightness-notify
bindsym --locked XF86MonBrightnessDown exec --no-startup-id light -U 10 && sway-brightness-notify
bindsym --locked XF86MonBrightnessUp exec --no-startup-id brightnessctl set +15 && sway-brightness-notify
bindsym --locked XF86MonBrightnessDown exec --no-startup-id brightnessctl set 15- && sway-brightness-notify
5. gaps
@ -1639,7 +1639,7 @@ I want a key to create and then toggle a terminal.
#!/usr/bin/env bash
# Maintained in linux-config.org
sway-notify "🔆:$(printf "%.0f" `light -G`)"
sway-notify "🔆:$(printf "%.0f" `brightnessctl g`)"
### ~/bin/sway/sway-bluetooth
@ -1932,7 +1932,7 @@ but in both cases we check if it exists in the sway tree, and, if not, set it it
notify-send -t 3000 "${@}" || true
<a id="org25f7ec5"></a>
<a id="org98baaf7"></a>
### ~/bin/sway/sway-screen
@ -1978,7 +1978,7 @@ See <https://www.reddit.com/r/swaywm/comments/10ys0oy/comment/j80lu88/?context=3
### ~/bin/sway/sway-screen-menu
Gui to select a display and enable/disable it. Calls down to [~/bin/sway/sway-screen](#org25f7ec5).
Gui to select a display and enable/disable it. Calls down to [~/bin/sway/sway-screen](#org98baaf7).
:ID: 82455cae-1c48-48b2-a8b3-cb5d44eeaee9
@ -3284,7 +3284,7 @@ strip debug info and store elsewhere
pulse/pipeline volume control.
Pass in a volume string to change the volume (man pactl) or on/off/toggle. It wont allow larger than 100% volume. Always returns the current volume volume/status.
See [examples](#orge632da2).
See [examples](#org2820c35).
#!/usr/bin/env bash
# Maintained in linux-config.org
@ -3318,7 +3318,7 @@ See [examples](#orge632da2).
echo "$(getVolume)"
<a id="orge632da2"></a>
<a id="org2820c35"></a>
### Examples:

View file

@ -1,3 +1,3 @@
#!/usr/bin/env bash
# Maintained in linux-config.org
sway-notify "🔆:$(printf "%.0f" `light -G`)"
sway-notify "🔆:$(printf "%.0f" `brightnessctl g`)"

View file

@ -64,8 +64,8 @@ set $laptop-id `sway-laptop-id`
bindswitch lid:on exec "sway-screen disable $laptop-id"
bindswitch lid:off exec "sway-screen enable $laptop-id"
bindsym --locked XF86MonBrightnessUp exec --no-startup-id light -A 10 && sway-brightness-notify
bindsym --locked XF86MonBrightnessDown exec --no-startup-id light -U 10 && sway-brightness-notify
bindsym --locked XF86MonBrightnessUp exec --no-startup-id brightnessctl set +15 && sway-brightness-notify
bindsym --locked XF86MonBrightnessDown exec --no-startup-id brightnessctl set 15- && sway-brightness-notify
gaps inner 1
gaps outer 0

View file

@ -16,9 +16,9 @@
# do not export any sections marked as tasks unless TODO or DONE
#+OPTIONS: tasks:("TODO" "DONE")
#+PROPERTY: header-args:bash :tangle-mode (identity #o555)
#+PROPERTY: header-args:bash :tangle-mode (identity #o755)
####+PROPERTY: header-args:python :tangle-mode (identity #o555)
#+PROPERTY: header-args:conf :tangle-mode (identity #o444)
#+PROPERTY: header-args:conf :tangle-mode (identity #o644)
#+PROPERTY: header-args:gpg :cache no :tangle-mode (identity #o600)
#+PROPERTY: export:md yes
@ -1518,8 +1518,8 @@ done by linux systemd
#+end_src
**** brightness :brightness:
#+begin_src conf
bindsym --locked XF86MonBrightnessUp exec --no-startup-id light -A 10 && sway-brightness-notify
bindsym --locked XF86MonBrightnessDown exec --no-startup-id light -U 10 && sway-brightness-notify
bindsym --locked XF86MonBrightnessUp exec --no-startup-id brightnessctl set +15 && sway-brightness-notify
bindsym --locked XF86MonBrightnessDown exec --no-startup-id brightnessctl set 15- && sway-brightness-notify
#+end_src
**** gaps
#+begin_src conf
@ -2504,7 +2504,7 @@ Thank you https://github.com/deanproxy/dotfiles/blob/master/linux/i3/scripts/blu
#+begin_src bash :tangle "~/bin/sway/sway-brightness-notify"
#!/usr/bin/env bash
# Maintained in linux-config.org
sway-notify "🔆:$(printf "%.0f" `light -G`)"
sway-notify "🔆:$(printf "%.0f" `brightnessctl g`)"
#+end_src
*** ~/bin/sway/sway-bluetooth
:PROPERTIES: