update sway
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
#!/bin/bash
|
||||
|
||||
date=$(date +'%A, %d. %b %I:%M %p')
|
||||
date=$(date +'%A, %d. %b')
|
||||
time=$(date +'%I:%M %p')
|
||||
|
||||
battery=$(cat /sys/class/power_supply/BAT1/capacity)
|
||||
|
||||
@@ -38,5 +39,5 @@ fi
|
||||
light=$(light -G | awk '{print int($1+0.5)'})"%"
|
||||
|
||||
sep=" "
|
||||
echo "${sep} ${light} ${sep} ${audio} ${sep} ${wifi} ${sep} ${powermode}: ${cpu_util} ${sep} ${conservation} ${sep} ${battery}% ${bat_rem} ${sep} ${date}"
|
||||
echo "${sep} ${light} ${sep} ${audio} ${sep} ${wifi} ${sep} ${powermode}: ${cpu_util} ${sep} ${conservation} ${sep} ${battery}% ${bat_rem} ${sep} ${date} ${sep} ${time}"
|
||||
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
# Read `man 5 sway` for a complete reference.
|
||||
|
||||
# Font in sway
|
||||
font pango: SFMono Nerd Font 8
|
||||
font pango: SFMono Nerd Font 9
|
||||
|
||||
# Variables
|
||||
set $mod Mod4
|
||||
@@ -50,7 +50,7 @@ bindswitch --reload --locked lid:off output $laptop enable
|
||||
# Idle configuration
|
||||
# Lock after 20 minutes
|
||||
# Suspend after 30 minutes
|
||||
set $lock 'swaylock -f --image ~/images/wallpaper/wallpaper.png'
|
||||
set $lock 'swaylock -f --image /tmp/lock.png --indicator-idle-visible'
|
||||
|
||||
exec swayidle -w \
|
||||
timeout 1200 $lock \
|
||||
@@ -161,7 +161,7 @@ input type:keyboard {
|
||||
bindsym $mod+Control+$right move workspace to output right
|
||||
|
||||
# Layout stuff:
|
||||
workspace_layout tabbed
|
||||
workspace_layout stacking
|
||||
|
||||
# Make the current focus fullscreen
|
||||
bindsym $mod+f fullscreen
|
||||
@@ -179,7 +179,6 @@ input type:keyboard {
|
||||
title_align center
|
||||
default_border none
|
||||
titlebar_border_thickness 0
|
||||
titlebar_padding 0
|
||||
|
||||
gaps inner 0
|
||||
|
||||
@@ -220,5 +219,8 @@ exec swaync
|
||||
exec fcitx5
|
||||
exec sworkstyle &> /tmp/sworkstyle.log
|
||||
|
||||
# generate a lock screen
|
||||
exec convert ~/images/wallpaper/wallpaper.png -blur 0x8 /tmp/lock.png
|
||||
|
||||
# Include some defaults
|
||||
include /etc/sway/config.d/*
|
||||
|
||||
Reference in New Issue
Block a user