add lid stuff
This commit is contained in:
@@ -0,0 +1,19 @@
|
||||
{
|
||||
"LuaSnip": { "branch": "master", "commit": "642b0c595e11608b4c18219e93b88d7637af27bc" },
|
||||
"blink.cmp": { "branch": "main", "commit": "78336bc89ee5365633bcf754d93df01678b5c08f" },
|
||||
"conform.nvim": { "branch": "master", "commit": "619363c30309d29ffa631e67c8183f2a72caa373" },
|
||||
"fidget.nvim": { "branch": "main", "commit": "6f793b2bcd2d35e201c09520f698bb763220908a" },
|
||||
"gitsigns.nvim": { "branch": "main", "commit": "2038c666bd9d8a0b7349a0b6ee00dc83104b9ecf" },
|
||||
"guess-indent.nvim": { "branch": "main", "commit": "84a4987ff36798c2fc1169cbaff67960aed9776f" },
|
||||
"lazy.nvim": { "branch": "main", "commit": "85c7ff3711b730b4030d03144f6db6375044ae82" },
|
||||
"mini.nvim": { "branch": "main", "commit": "7c2caf0ae915d819f2f39467d6bb9313c2b3e90a" },
|
||||
"nvim-lspconfig": { "branch": "master", "commit": "3371bf298c1f56efc26771ee961f461176958fb5" },
|
||||
"nvim-treesitter": { "branch": "main", "commit": "4916d6592ede8c07973490d9322f187e07dfefac" },
|
||||
"nvim-web-devicons": { "branch": "master", "commit": "dfbfaa967a6f7ec50789bead7ef87e336c1fa63c" },
|
||||
"plenary.nvim": { "branch": "master", "commit": "74b06c6c75e4eeb3108ec01852001636d85a932b" },
|
||||
"telescope-fzf-native.nvim": { "branch": "main", "commit": "b25b749b9db64d375d782094e2b9dce53ad53a40" },
|
||||
"telescope-ui-select.nvim": { "branch": "master", "commit": "6e51d7da30bd139a6950adf2a47fda6df9fa06d2" },
|
||||
"telescope.nvim": { "branch": "master", "commit": "427b576c16792edad01a92b89721d923c19ad60f" },
|
||||
"todo-comments.nvim": { "branch": "main", "commit": "31e3c38ce9b29781e4422fc0322eb0a21f4e8668" },
|
||||
"tokyonight.nvim": { "branch": "main", "commit": "cdc07ac78467a233fd62c493de29a17e0cf2b2b6" }
|
||||
}
|
||||
@@ -9,6 +9,10 @@ font pango:DejaVu Sans Mono 10
|
||||
output * scale 1
|
||||
output * bg ~/.config/sway/tux.png fill
|
||||
|
||||
# Disable the laptop panel while the lid is closed.
|
||||
bindswitch --reload lid:on exec ~/.config/sway/scripts/lid-output off
|
||||
bindswitch --reload lid:off exec ~/.config/sway/scripts/lid-output on
|
||||
|
||||
input type:keyboard {
|
||||
xkb_layout fo
|
||||
xkb_model pc105
|
||||
|
||||
Executable
+20
@@ -0,0 +1,20 @@
|
||||
#!/usr/bin/env bash
|
||||
set -euo pipefail
|
||||
|
||||
state="${1:-}"
|
||||
|
||||
internal_output="$(
|
||||
swaymsg -t get_outputs -r |
|
||||
jq -r '.[] | select(.name | test("^(eDP|LVDS)")) | .name' |
|
||||
head -n 1
|
||||
)"
|
||||
|
||||
if [ -z "$internal_output" ]; then
|
||||
exit 0
|
||||
fi
|
||||
|
||||
case "$state" in
|
||||
off) swaymsg output "$internal_output" disable ;;
|
||||
on) swaymsg output "$internal_output" enable ;;
|
||||
*) exit 2 ;;
|
||||
esac
|
||||
@@ -0,0 +1,46 @@
|
||||
{
|
||||
"layer": "top",
|
||||
"position": "top",
|
||||
"height": 34,
|
||||
"margin-top": 8,
|
||||
"margin-left": 320,
|
||||
"margin-right": 320,
|
||||
"modules-left": [
|
||||
"sway/workspaces",
|
||||
"sway/window"
|
||||
],
|
||||
"modules-center": [
|
||||
"clock"
|
||||
],
|
||||
"modules-right": [
|
||||
"pulseaudio",
|
||||
"network",
|
||||
"battery",
|
||||
"tray"
|
||||
],
|
||||
"sway/workspaces": {
|
||||
"all-outputs": true,
|
||||
"disable-scroll": true,
|
||||
"format": "{name}"
|
||||
},
|
||||
"sway/window": {
|
||||
"max-length": 40
|
||||
},
|
||||
"clock": {
|
||||
"format": "{:%a %b %d %I:%M %p}"
|
||||
},
|
||||
"battery": {
|
||||
"format": "{capacity}%"
|
||||
},
|
||||
"network": {
|
||||
"format-wifi": "wifi {essid}",
|
||||
"format-ethernet": "wired",
|
||||
"format-disconnected": "offline",
|
||||
"on-click": "nm-connection-editor"
|
||||
},
|
||||
"pulseaudio": {
|
||||
"format": "vol {volume}%",
|
||||
"format-muted": "muted",
|
||||
"on-click": "pavucontrol"
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user