update sway
This commit is contained in:
@@ -13,7 +13,6 @@ SFMono also provides icons.
|
||||
### for sway
|
||||
+ `waybar` (cool bar)
|
||||
+ `SwayNotificationCenter` - default conf
|
||||
+ `wlogout` (logout menu) - change lock to `~/.local/bin/lock.sh`
|
||||
+ `bemenu` (dmenu replacement)
|
||||
+ `slurp`, `grim`, `swappy` (screenshot)
|
||||
|
||||
|
||||
@@ -34,9 +34,9 @@ set $custom #e1cab3
|
||||
set $bar_bg #323232
|
||||
|
||||
# clientclass border backgr. text indicator
|
||||
client.focused $bar_bg $bar_bg #ffffff $bar_bg
|
||||
client.focused_inactive $bar_bg $bar_bg $baseA1 $violet
|
||||
client.unfocused $bar_bg $bar_bg $baseA1 $bar_bg
|
||||
client.focused $green $green #ffffff $green
|
||||
client.focused_inactive $baseA2 $baseA2 $baseB0 $baseA2
|
||||
client.unfocused $baseA2 $baseA2 $baseB0 $baseA2
|
||||
client.urgent $yellow $yellow $baseB3 $orange
|
||||
|
||||
# Output configuration
|
||||
@@ -47,21 +47,23 @@ output * bg ~/images/wallpaper/wallpaper.png fill
|
||||
bindswitch --reload --locked lid:on output $laptop disable
|
||||
bindswitch --reload --locked lid:off output $laptop enable
|
||||
|
||||
exec light -S 20
|
||||
|
||||
# Idle configuration
|
||||
# create blurred lock screen
|
||||
exec_always convert ~/images/wallpaper/wallpaper.png -blur 0x8 /tmp/lock.png
|
||||
|
||||
# set lockc and save to script, so other programs can also use it
|
||||
set $lock 'swaylock -f --image /tmp/lock.png --indicator-idle-visible'
|
||||
set $lock 'swaylock -f --image /tmp/lock.png --indicator-idle-visible -F'
|
||||
exec_always echo $lock > ~/.local/bin/lock.sh
|
||||
exec_always chmod +x ~/.local/bin/lock.sh
|
||||
|
||||
# Lock after 20 minutes
|
||||
# Suspend after 22 minutes
|
||||
exec swayidle -w \
|
||||
timeout 1200 $lock \
|
||||
timeout 1200 ~/.local/bin/lock.sh \
|
||||
timeout 1320 'systemctl suspend' \
|
||||
before-sleep $lock
|
||||
before-sleep ~/.local/bin/lock.sh
|
||||
|
||||
# Input configuration
|
||||
input type:pointer {
|
||||
@@ -84,7 +86,7 @@ input type:keyboard {
|
||||
bindsym $mod+Shift+Backspace kill
|
||||
|
||||
# Application launcher
|
||||
set $bemenu bemenu -l 7 --tf "#859900" --hf "#859900" --nb "#002b36" --hb "#002b36" --tb "#002b36" --fb "#002b36" --fn "SFMono Nerd Font 13" -i
|
||||
set $bemenu bemenu -l 7 --tf "#859900" --hf "#859900" --nb "#282828" --hb "#383838" --tb "#282828" --fb "#282828" --fn "SFMono Nerd Font 13" -i -H 30
|
||||
set $files fd -I "pdf$" $HOME | cut -f 4- -d "/"
|
||||
bindsym $mod+d exec dmenu_path | $bemenu | xargs swaymsg exec --
|
||||
bindsym $mod+p exec $files | $bemenu -l 20 -p 'pdfs' | xargs -d '\n' -r xdg-open
|
||||
@@ -94,7 +96,7 @@ input type:keyboard {
|
||||
bindsym $mod+Ctrl+Shift+s exec grim -g "$(slurp)" - | swappy -f -
|
||||
|
||||
# Logout etc
|
||||
bindsym $mod+Ctrl+Backspace exec wlogout
|
||||
bindsym $mod+Ctrl+Backspace exec ~/.local/bin/lock.sh
|
||||
|
||||
# Show notifications
|
||||
bindsym $mod+v exec swaync-client -t -sw
|
||||
@@ -169,13 +171,13 @@ input type:keyboard {
|
||||
# Layout stuff:
|
||||
workspace_layout stacking
|
||||
title_align center
|
||||
default_border none
|
||||
default_floating_border none
|
||||
default_border pixel 3
|
||||
default_floating_border pixel 3
|
||||
# hide title and border, if only one application open
|
||||
hide_edge_borders --i3 smart
|
||||
|
||||
gaps inner 5
|
||||
smart_gaps on
|
||||
smart_gaps off
|
||||
|
||||
# Make the current focus fullscreen
|
||||
bindsym $mod+f fullscreen
|
||||
|
||||
@@ -67,16 +67,16 @@ set -g status "on"
|
||||
set -g status-left-style "none"
|
||||
set -g message-command-style "fg=colour7,bg=colour14"
|
||||
set -g status-right-style "none"
|
||||
set -g pane-active-border-style "fg=colour11"
|
||||
set -g pane-active-border-style "fg=#859900"
|
||||
set -g status-style "none,bg=colour7"
|
||||
set -g message-style "fg=colour7,bg=colour14"
|
||||
set -g pane-border-style "fg=colour14"
|
||||
set -g pane-border-style "fg=colour11"
|
||||
set -g status-right-length "100"
|
||||
set -g status-left-length "100"
|
||||
setw -g window-status-activity-style "none"
|
||||
setw -g window-status-separator ""
|
||||
setw -g window-status-style "none,fg=colour14,bg=colour7"
|
||||
set -g status-left "#[fg=colour7,bg=colour11,bold] #S #[fg=colour11,bg=colour7,nobold,nounderscore,noitalics]"
|
||||
set -g status-right "#[fg=colour14,bg=colour7,nobold,nounderscore,noitalics]#[fg=colour7,bg=colour14] %Y-%m-%d %H:%M #[fg=colour11,bg=colour14,nobold,nounderscore,noitalics]#[fg=colour7,bg=colour11] #h "
|
||||
set -g status-right "#[fg=colour14,bg=colour7,nobold,nounderscore,noitalics]#[fg=colour7,bg=colour14] %Y-%m-%d %I:%M %p #[fg=colour11,bg=colour14,nobold,nounderscore,noitalics]#[fg=colour7,bg=colour11] #h "
|
||||
setw -g window-status-format "#[fg=colour14,bg=colour7] #I #[fg=colour14,bg=colour7] #W "
|
||||
setw -g window-status-current-format "#[fg=colour7,bg=colour14,nobold,nounderscore,noitalics]#[fg=colour7,bg=colour14] #I #[fg=colour7,bg=colour14] #W #[fg=colour14,bg=colour7,nobold,nounderscore,noitalics]"
|
||||
|
||||
@@ -19,16 +19,19 @@
|
||||
"height": 30,
|
||||
|
||||
"modules-left": [
|
||||
"sway/workspaces"
|
||||
],
|
||||
"modules-center": [
|
||||
"sway/workspaces",
|
||||
"sway/window"
|
||||
],
|
||||
"modules-center": [
|
||||
],
|
||||
"modules-right": [
|
||||
"cpu",
|
||||
"backlight",
|
||||
"battery",
|
||||
"pulseaudio",
|
||||
"clock#date",
|
||||
"clock#time",
|
||||
"idle_inhibitor",
|
||||
"tray"
|
||||
],
|
||||
|
||||
@@ -37,6 +40,20 @@
|
||||
// Modules
|
||||
// -------------------------------------------------------------------------
|
||||
|
||||
"idle_inhibitor": {
|
||||
"format": "{icon}",
|
||||
"format-icons": {
|
||||
"activated": "",
|
||||
"deactivated": "鈴"
|
||||
}
|
||||
},
|
||||
|
||||
"backlight": {
|
||||
// "device": "acpi_video1",
|
||||
"format": "{icon} {percent}%",
|
||||
"format-icons": ["", "", "", "", "", "", "", "", ""]
|
||||
},
|
||||
|
||||
"battery": {
|
||||
"interval": 10,
|
||||
"states": {
|
||||
@@ -44,7 +61,7 @@
|
||||
"critical": 15
|
||||
},
|
||||
// Connected to AC
|
||||
"format": " {icon} {capacity}%", // Icon: bolt
|
||||
"format": "{icon} {capacity}% ", // Icon: bolt
|
||||
// Not connected to AC
|
||||
"format-discharging": "{icon} {capacity}%",
|
||||
"format-icons": [
|
||||
@@ -59,7 +76,7 @@
|
||||
|
||||
"clock#time": {
|
||||
"interval": 5,
|
||||
"format": "{:%I:%M %p}",
|
||||
"format": " {:%I:%M %p}",
|
||||
"tooltip": false
|
||||
},
|
||||
|
||||
@@ -107,7 +124,7 @@
|
||||
|
||||
"sway/window": {
|
||||
"format": "{}",
|
||||
"max-length": 120
|
||||
"max-length": 80
|
||||
},
|
||||
|
||||
"sway/workspaces": {
|
||||
@@ -117,7 +134,7 @@
|
||||
"format-icons": {
|
||||
"1": "",
|
||||
"2": "",
|
||||
"3": "ﭮ",
|
||||
"3": "ﭮ",
|
||||
"4": "",
|
||||
"5": "",
|
||||
"8": "",
|
||||
@@ -132,7 +149,7 @@
|
||||
//"scroll-step": 1,
|
||||
"format": "{icon} {volume}%",
|
||||
"format-bluetooth": "{icon} {volume}% ",
|
||||
"format-muted": " Muted",
|
||||
"format-muted": "婢 0%",
|
||||
"format-icons": {
|
||||
"headphones": "",
|
||||
"handsfree": "",
|
||||
@@ -140,7 +157,7 @@
|
||||
"phone": "",
|
||||
"portable": "",
|
||||
"car": "",
|
||||
"default": ["", ""]
|
||||
"default": ["奄","奔", "墳", "墳", "墳", "墳", "墳"]
|
||||
},
|
||||
"on-click": "pavucontrol"
|
||||
},
|
||||
|
||||
@@ -54,8 +54,10 @@
|
||||
font-size: 13px;
|
||||
}
|
||||
|
||||
/* Each module */
|
||||
/* Each module l*/
|
||||
#idle_inhibitor,
|
||||
#battery,
|
||||
#backlight,
|
||||
#clock,
|
||||
#cpu,
|
||||
#custom-keyboard-layout,
|
||||
@@ -65,6 +67,12 @@
|
||||
#pulseaudio,
|
||||
#temperature,
|
||||
#tray {
|
||||
border-radius: 5px;
|
||||
background-color: #282828;
|
||||
margin-top: 3px;
|
||||
margin-bottom: 3px;
|
||||
margin-left: 5px;
|
||||
padding-bottom: 2px;
|
||||
padding-left: 10px;
|
||||
padding-right: 10px;
|
||||
}
|
||||
@@ -171,23 +179,35 @@
|
||||
|
||||
#window {
|
||||
/* font-weight: bold; */
|
||||
}
|
||||
|
||||
#workspaces button {
|
||||
border-top: 2px solid transparent;
|
||||
/* To compensate for the top border and still have vertical centering */
|
||||
border-radius: 5px;
|
||||
background-color: #282828;
|
||||
margin-top: 3px;
|
||||
margin-bottom: 3px;
|
||||
margin-left: 5px;
|
||||
padding-bottom: 2px;
|
||||
padding-left: 10px;
|
||||
padding-right: 10px;
|
||||
color: #888888;
|
||||
}
|
||||
|
||||
|
||||
#workspaces button {
|
||||
border-top: 2px solid transparent;
|
||||
padding-bottom: 2px;
|
||||
padding-left: 10px;
|
||||
padding-right: 10px;
|
||||
color: white;
|
||||
border-radius: 5px;
|
||||
margin-top: 3px;
|
||||
margin-bottom: 3px;
|
||||
}
|
||||
|
||||
#workspaces button.focused {
|
||||
color: white;
|
||||
background-color: #859900;
|
||||
color: #282828;
|
||||
border-bottom: none;
|
||||
}
|
||||
|
||||
#workspaces button.urgent {
|
||||
border-color: #c9545d;
|
||||
color: #c9545d;
|
||||
background-color: #2c303c;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user