1
0
Fork 0

.config/sway: update

main
urosm 2024-02-08 15:50:29 +01:00
parent 1387b9bd6f
commit 1c267f97c2
4 changed files with 14 additions and 54 deletions

View File

@ -16,10 +16,10 @@ set $ws8 8:cmd
set $ws9 9:cmd set $ws9 9:cmd
set $ws0 10:rdp set $ws0 10:rdp
# colors # colors
set $bg #292526 set $bg #000000
set $dimmed #6185ff set $dimmed #856cff
set $accent #ff3e8b set $accent #ff1170
set $error #ff404f set $error #fa3500
# key bindings ################################################################# # key bindings #################################################################
bindsym $mod+return exec footclient bindsym $mod+return exec footclient
@ -28,20 +28,13 @@ bindsym $mod+w exec firefox
bindsym $mod+shift+w exec thunderbird bindsym $mod+shift+w exec thunderbird
# fuzzel # fuzzel
bindsym $mod+space exec fuzzel bindsym $mod+space exec fuzzel
bindsym $mod+shift+space exec find -not -path "*/.*" | fuzzel -d | xargs -I{} xdg-open "{}" bindsym $mod+shift+space exec fuzzel_open.sh\
bindsym $mod+insert exec lsblk -nrpo"name,type,mountpoint" \ -e $HOME/.cache\
| awk '$2=="part"{printf"%-12s %s\\n",$1,$3}' \ -e $HOME/.mozilla\
| fuzzel -d \ -e $HOME/.thunderbird\
| awk '{printf($2=="")?"udisksctl mount -b %s":"udisksctl unmount -b %s",$1}' \ -e *.git*
| sh \ bindsym $mod+home exec fuzzel_nmcli.sh
| xargs -I{} notify-send "{}" bindsym $mod+end exec fuzzel_udisksctl.sh
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
# makoctl # makoctl
bindsym $mod+x exec makoctl dismiss bindsym $mod+x exec makoctl dismiss
bindsym $mod+shift+x exec makoctl dismiss -a bindsym $mod+shift+x exec makoctl dismiss -a
@ -146,7 +139,7 @@ mode $session_mode {
bindsym $mod+escape mode $session_mode, fullscreen disable bindsym $mod+escape mode $session_mode, fullscreen disable
# theme ######################################################################## # theme ########################################################################
output * background wallpaper.svg fill $bg output * background $bg solid_color
seat * hide_cursor 5000 seat * hide_cursor 5000
font monospace 13 font monospace 13
default_border normal 1 default_border normal 1
@ -159,7 +152,7 @@ client.urgent $error $error $bg $error $bg
# statusbar #################################################################### # statusbar ####################################################################
bar { bar {
status_command $XDG_CONFIG_HOME/sway/status.sh status_command status.sh
separator_symbol " | " separator_symbol " | "
colors { colors {
background $bg background $bg

View File

@ -5,7 +5,7 @@ output * {
# input # input
input "type:keyboard" { input "type:keyboard" {
xkb_layout gb,si xkb_layout us,si
xkb_options caps:escape,grp:alt_shift_toggle xkb_options caps:escape,grp:alt_shift_toggle
repeat_delay 200 repeat_delay 200
repeat_rate 30 repeat_rate 30

View File

@ -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

View File

@ -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