.config/sway: update
parent
1387b9bd6f
commit
1c267f97c2
|
@ -16,10 +16,10 @@ set $ws8 8:cmd
|
|||
set $ws9 9:cmd
|
||||
set $ws0 10:rdp
|
||||
# colors
|
||||
set $bg #292526
|
||||
set $dimmed #6185ff
|
||||
set $accent #ff3e8b
|
||||
set $error #ff404f
|
||||
set $bg #000000
|
||||
set $dimmed #856cff
|
||||
set $accent #ff1170
|
||||
set $error #fa3500
|
||||
|
||||
# key bindings #################################################################
|
||||
bindsym $mod+return exec footclient
|
||||
|
@ -28,20 +28,13 @@ bindsym $mod+w exec firefox
|
|||
bindsym $mod+shift+w exec thunderbird
|
||||
# fuzzel
|
||||
bindsym $mod+space exec fuzzel
|
||||
bindsym $mod+shift+space exec find -not -path "*/.*" | fuzzel -d | xargs -I{} xdg-open "{}"
|
||||
bindsym $mod+insert exec lsblk -nrpo"name,type,mountpoint" \
|
||||
| awk '$2=="part"{printf"%-12s %s\\n",$1,$3}' \
|
||||
| fuzzel -d \
|
||||
| awk '{printf($2=="")?"udisksctl mount -b %s":"udisksctl unmount -b %s",$1}' \
|
||||
| sh \
|
||||
| xargs -I{} notify-send "{}"
|
||||
bindsym $mod+home exec nmcli -g "type,name,active" connection show \
|
||||
| awk 'BEGIN{FS=":"}{printf($3=="yes")?"* %s\\n":" %s\\n",$2}' \
|
||||
| fuzzel -d \
|
||||
| awk '{printf($1=="*")?"nmcli connection down \\"%s\\"":"nmcli connection up \\"%s\\"",substr($0,3)}' \
|
||||
| sh \
|
||||
| xargs -I{} notify-send "{}"
|
||||
bindsym $mod+shift+home exec footclient nmtui
|
||||
bindsym $mod+shift+space exec fuzzel_open.sh\
|
||||
-e $HOME/.cache\
|
||||
-e $HOME/.mozilla\
|
||||
-e $HOME/.thunderbird\
|
||||
-e *.git*
|
||||
bindsym $mod+home exec fuzzel_nmcli.sh
|
||||
bindsym $mod+end exec fuzzel_udisksctl.sh
|
||||
# makoctl
|
||||
bindsym $mod+x exec makoctl dismiss
|
||||
bindsym $mod+shift+x exec makoctl dismiss -a
|
||||
|
@ -146,7 +139,7 @@ mode $session_mode {
|
|||
bindsym $mod+escape mode $session_mode, fullscreen disable
|
||||
|
||||
# theme ########################################################################
|
||||
output * background wallpaper.svg fill $bg
|
||||
output * background $bg solid_color
|
||||
seat * hide_cursor 5000
|
||||
font monospace 13
|
||||
default_border normal 1
|
||||
|
@ -159,7 +152,7 @@ client.urgent $error $error $bg $error $bg
|
|||
|
||||
# statusbar ####################################################################
|
||||
bar {
|
||||
status_command $XDG_CONFIG_HOME/sway/status.sh
|
||||
status_command status.sh
|
||||
separator_symbol " | "
|
||||
colors {
|
||||
background $bg
|
||||
|
|
|
@ -5,7 +5,7 @@ output * {
|
|||
|
||||
# input
|
||||
input "type:keyboard" {
|
||||
xkb_layout gb,si
|
||||
xkb_layout us,si
|
||||
xkb_options caps:escape,grp:alt_shift_toggle
|
||||
repeat_delay 200
|
||||
repeat_rate 30
|
||||
|
|
|
@ -1,15 +0,0 @@
|
|||
#!/bin/sh
|
||||
|
||||
printf "{\"version\":1}\n"
|
||||
printf "[\n"
|
||||
while true
|
||||
do
|
||||
printf [
|
||||
swaymsg -t get_inputs | jq -Mcj '[.[] | select(.type=="keyboard")][0] | {"full_text":.xkb_active_layout_name,"urgent":.xkb_active_layout_index}, ","'
|
||||
cat /sys/class/power_supply/BAT0/capacity | jq -Mcj '{"full_text":.}, ","'
|
||||
date +%c | jq -RMcj '{"full_text":.}, ","'
|
||||
swaymsg -t get_tree | jq -Mcj '.nodes[] | select(.name=="__i3").nodes[] | select(.name=="__i3_scratch").floating_nodes | {"full_text":length,"urgent":length}, ","'
|
||||
makoctl list | jq -Mcj '.data[][0] | {"full_text":(.summary.data // 0),"urgent":((.urgency.data // 0) == 2)}, ","'
|
||||
printf ],
|
||||
timeout 1 swaymsg -t subscribe '["input","binding"]' >/dev/null
|
||||
done
|
|
@ -1,18 +0,0 @@
|
|||
<svg
|
||||
width="1920"
|
||||
height="1080">
|
||||
<text
|
||||
y="33%"
|
||||
xml:space="preserve"
|
||||
fill="#ff3e8b"
|
||||
font-family="monospace"
|
||||
font-size="13pt">
|
||||
<tspan text-anchor="middle" x="50%" dy="13pt"> _____ </tspan>
|
||||
<tspan text-anchor="middle" x="50%" dy="13pt"> / __ \\</tspan>
|
||||
<tspan text-anchor="middle" x="50%" dy="13pt">| / |</tspan>
|
||||
<tspan text-anchor="middle" x="50%" dy="13pt">| \\___-</tspan>
|
||||
<tspan text-anchor="middle" x="50%" dy="13pt">-_ </tspan>
|
||||
<tspan text-anchor="middle" x="50%" dy="13pt"> --_ </tspan>
|
||||
</text>
|
||||
</svg>
|
||||
|
Before Width: | Height: | Size: 551 B |
Loading…
Reference in New Issue