diff --git a/.doc/Bash.md b/.doc/Bash.md index a983f7a..0335070 100644 --- a/.doc/Bash.md +++ b/.doc/Bash.md @@ -16,12 +16,6 @@ Command|Description ---|--- `emulator [NAME]`|Start an Android emulator. Default name is `main`. -## App. - -Command|Description ----|--- -`steam_link`| Start steam in Steam Link mode. - ## Archive. Command|Description @@ -34,7 +28,7 @@ Command|Description `archive_rm [FILES]`|Delete specified or all archive files. `archive_xz [FILES]`|Recompress previously created archive_fast with better compression. `archive_name [ARCHIVE] [NAME]`|Rename archives. If no name specified, it simplifies archive's name. If no archives specified, apply to all archives. -`unarchive [FILES]`|Extract previously created archive with checksum validation. +`unarchive [HOST:FILES]`|Extract previously created archive with checksum validation. Supports unarchiving exact paths from the remote machines (rsync syntax). `archive_touch [FILES]`|Change archive's filesystem time to match creation date. ## Ask. @@ -42,6 +36,7 @@ Command|Description Command|Description ---|--- `ask `|Ask general AI. +`ask_model`| Specify ask model. ## Battery. @@ -58,6 +53,14 @@ Command|Description `bootstrap_editorconfig_space [AMOUNT]`|Install Editorconfig file (with specified spaces, 8 by default) in current directory. `bootstrap_nixos [HOST]`|Install nixos to specified drive. To be run from Live ISO. +## Brightness. + +Command|Description +---|--- +`brmin`| Set display brightness to a minimum. +`brmax`| Set display brightness to a maximum. +`brset [LEVEL]`|Set display brightness in percent, 50% default. + ## Cd. Command|Description @@ -176,7 +179,7 @@ Command|Description Command|Description ---|--- -`o `|Open file/dir in GUI. +`open `|Open file/dir in GUI. `play [FILE]`|Play media file from CLI. All files by default. `play_shuffle [FILE]`|Play media files shuffled from CLI. All files by default. @@ -227,6 +230,7 @@ Command|Description `gg `|Get my git repo. `gdc [COMMITHASH]`|See diff for a specific commit. Last commit by default. `gv`| Get version number based on commit count. +`gw [REMOTE]`|Open the remote web url in default browser. ## Group. @@ -260,6 +264,13 @@ Command|Description ---|--- `markdown_render `|Render markdown in browser using Gitea API. Because I want consistency with Gitea web render. Works only inside LAN. +## Monitor. + +Command|Description +---|--- +`monon`| Enable monitors. +`monoff`| Disable monitors. + ## Name. Command|Description @@ -277,6 +288,16 @@ Command|Description `name_replace [FILES]`|Replace part of the name. All matching files by default. `name_fix_numbering [FILES]`|Fix numbering for numbered files. I.e if there are 10 items and some of them start without zero, then append zero to it. 1..10 -> 01..10. +## Network. + +Command|Description +---|--- +`bluetooth`| Open bluetooth control panel. +`network`| Open network control panel. +`nms`| Show active connections. +`nu `|Start the connection. +`nd `|Stop the connection. + ## Nix. Command|Description @@ -335,6 +356,13 @@ Command|Description `perm_share`| Recursively change permissions to allow read sharing with group and others. `perm`| Recursively change permissions to restrict access for group and others. +## Power. + +Command|Description +---|--- +`slp`| Suspend system. +`bye`| Poweroff. + ## Prune. Command|Description @@ -368,17 +396,31 @@ Command|Description ---|--- `save [TARGETS]`|Backup a game save. +## Sound. + +Command|Description +---|--- +`sound`| Open a sound control panel. + ## Ssh. Command|Description ---|--- -`sshmount `|Mount FS over ssh. Just extra config for sshfs. +`ssh_mount `|Mount FS over ssh. Just extra config for sshfs. +`ssh_keygen`| Generate private an public keys on a local host and print a public key. + +## Steam. + +Command|Description +---|--- +`steam_link`| Start Steam with Wayland screen share for Link to work. ## Su. Command|Description ---|--- `s [USER]`|Su shortcut for lazy me. Root by default. +`sudo `|Run something as root. Runs command as a current user if su is not available. ## Terminal. @@ -437,11 +479,12 @@ Command|Description ---|--- `v`| Neovim shortcut. -## Wallpaper. +## Vrr. Command|Description ---|--- -`wallpaper `|Set specified file as a wallpaper. +`vrron`| Enable VRR. +`vrroff`| Disable VRR. ## Watch. diff --git a/module/common/bash/module/Brightness.sh b/module/common/bash/module/Brightness.sh new file mode 100644 index 0000000..e9c2948 --- /dev/null +++ b/module/common/bash/module/Brightness.sh @@ -0,0 +1,18 @@ +# Set display brightness to a minimum. +function brmin() { + light -S 0.01 +} + +# Set display brightness to a maximum. +function brmax() { + light -S 100 +} + +# Set display brightness in percent, 50% default. +# Usage: brset [LEVEL] +function brset() { + local level=${1} + [[ "${level}" = "" ]] && level=50 + + light -S ${level} +} diff --git a/module/sway/module/10-Wallpaper b/module/sway/module/10-Wallpaper deleted file mode 100644 index a077341..0000000 --- a/module/sway/module/10-Wallpaper +++ /dev/null @@ -1 +0,0 @@ -# Wallpaper. diff --git a/module/sway/module/20-Keybind b/module/sway/module/20-Keybind index 92049f3..d34f524 100644 --- a/module/sway/module/20-Keybind +++ b/module/sway/module/20-Keybind @@ -25,8 +25,8 @@ bindsym $mod+n exec makoctl restore bindsym $mod+shift+n exec makoctl dismiss --all # Brightness -bindsym XF86MonBrightnessDown exec light -U 1 -bindsym XF86MonBrightnessUp exec light -A 1 +bindsym XF86MonBrightnessDown exec light -U 10 +bindsym XF86MonBrightnessUp exec light -A 10 # Adjust volume. bindsym XF86AudioRaiseVolume exec 'pactl set-sink-volume @DEFAULT_SINK@ +1%'