update sway session

This commit is contained in:
piotr 2022-05-25 02:14:57 +02:00
parent 40adc81f64
commit 86267d3e21
15 changed files with 828 additions and 102 deletions

View File

@ -47,14 +47,14 @@
"cmd": "azote"
},
{
"name": "Look & Feel",
"icon": "preferences-desktop-theme",
"cmd": "lxappearance; import-gsettings gtk-theme:gtk-theme-name icon-theme:gtk-icon-theme-name cursor-theme:gtk-cursor-theme-name"
"name": "GTK settings",
"icon": "nwg-look",
"cmd": "nwg-look"
},
{
"name": "Outputs",
"icon": "display",
"cmd": "wdisplays && sway-save-outputs"
"name": "Displays",
"icon": "nwg-displays",
"cmd": "nwg-displays"
},
{
"name": "Panel settings",
@ -63,7 +63,7 @@
},
{
"name": "Shell settings",
"icon": "nwg-shell",
"icon": "nwg-shell-config",
"cmd": "nwg-shell-config"
}
],

View File

@ -52,13 +52,13 @@ button {
/* Executors usually behave better in monospace fonts */
#executor-label {
font-family: monospace;
font-family: DejaVu Sans Mono;
font-size: 16px
}
/* and so does the Clock */
#clock {
font-family: monospace;
font-family: DejaVu Sans Mono;
font-size: 16px
}

View File

@ -48,14 +48,14 @@
"cmd": "azote"
},
{
"name": "Look & Feel",
"icon": "preferences-desktop-theme",
"cmd": "lxappearance; import-gsettings"
"name": "GTK settings",
"icon": "nwg-look",
"cmd": "nwg-look"
},
{
"name": "Outputs",
"icon": "display",
"cmd": "wdisplays && sway-save-outputs"
"name": "Displays",
"icon": "nwg-displays",
"cmd": "nwg-displays"
},
{
"name": "Panel settings",
@ -64,7 +64,7 @@
},
{
"name": "Shell settings",
"icon": "nwg-shell",
"icon": "nwg-shell-config",
"cmd": "nwg-shell-config"
}
],

View File

@ -69,14 +69,14 @@
"cmd": "azote"
},
{
"name": "Look & Feel",
"icon": "preferences-desktop-theme",
"cmd": "lxappearance; import-gsettings gtk-theme:gtk-theme-name icon-theme:gtk-icon-theme-name cursor-theme:gtk-cursor-theme-name"
"name": "GTK settings",
"icon": "nwg-look",
"cmd": "nwg-look"
},
{
"name": "Outputs",
"icon": "display",
"cmd": "wdisplays && sway-save-outputs"
"name": "Displays",
"icon": "nwg-displays",
"cmd": "nwg-displays"
},
{
"name": "Panel settings",
@ -85,7 +85,7 @@
},
{
"name": "Shell settings",
"icon": "nwg-shell",
"icon": "nwg-shell-config",
"cmd": "nwg-shell-config"
}
],

View File

@ -45,14 +45,14 @@
"cmd": "azote"
},
{
"name": "Look & Feel",
"icon": "preferences-desktop-theme",
"cmd": "lxappearance; import-gsettings gtk-theme:gtk-theme-name icon-theme:gtk-icon-theme-name cursor-theme:gtk-cursor-theme-name"
"name": "GTK settings",
"icon": "nwg-look",
"cmd": "nwg-look"
},
{
"name": "Outputs",
"icon": "display",
"cmd": "wdisplays && sway-save-outputs"
"name": "Displays",
"icon": "nwg-displays",
"cmd": "nwg-displays"
},
{
"name": "Panel settings",
@ -61,7 +61,7 @@
},
{
"name": "Shell settings",
"icon": "nwg-shell",
"icon": "nwg-shell-config",
"cmd": "nwg-shell-config"
}
],

View File

@ -4,4 +4,5 @@ exec_always autotiling
exec_always nwg-drawer -r -s preset-0.css -term foot
exec_always nwg-panel -c preset-0 -s preset-0.css
exec_always nwg-shell-check-updates
exec nwg-look -a
exec nwg-shell-config

View File

@ -1,5 +1,14 @@
# ArchLabs sway config
# The files we include below will be created / overwritten by nwg-shell tools
#
include variables
include outputs
include autostart
include workspaces
include keyboard
include pointer
include touchpad
# ArchLabs sway config
# Read `man 5 sway` for reference.
# border & title
@ -25,14 +34,6 @@ set $down k
set $left j
set $right semicolon
# The file we include below is created and will be overwritten by nwg-shell-config GUI!
#
include ~/.config/sway/variables
############### Apply GTK settings ##################
exec_always import-gsettings
############### Autostart ##################
exec systemctl --user import-environment DISPLAY WAYLAND_DISPLAY SWAYSOCK
@ -41,18 +42,6 @@ exec hash dbus-update-activation-environment 2>/dev/null && \
exec /usr/lib/polkit-gnome/polkit-gnome-authentication-agent-1
exec ~/.azotebg
# The files we include below are created and will be overwritten by nwg-shell-config GUI!
#
include ~/.config/sway/outputs
include ~/.config/sway/autostart
#
output * adaptive_sync on
# monitors (edit & unhash)
# set $Mon1 eDP-1
# set $Mon2 HDMI-A-1
### Turn off screen on lid closed
set $laptop eDP-1
bindswitch lid:on output $laptop disable
@ -64,48 +53,10 @@ exec swayidle -w \
timeout 3300 'swaymsg "output * dpms off"' \
resume 'swaymsg "output * dpms on"' \
before-sleep 'swaylock -f -c 212121'
#
# This will lock your screen after 3000 seconds of inactivity, then turn off
# your displays after another 3300 seconds, and turn your screens back on when
# resumed. It will also lock your screen before your computer goes to sleep.
############### Input configuration ##################
#
# Example configuration:
#
# input "2:14:SynPS/2_Synaptics_TouchPad" {
# dwt enabled
# tap enabled
# middle_emulation enabled
# }
# You can get the names of your inputs by running: swaymsg -t get_inputs
# Read `man 5 sway-input` for more information about this section.
# enable touchpad speed and features
input "type:touchpad" {
tap enabled
dwt enabled
drag enabled
scroll_factor 0.7
pointer_accel 0.2
accel_profile adaptive
}
# disable acceleration for mice
input "type:mouse" {
accel_profile flat
}
# keyboard layout and repeat settings
input "type:keyboard" {
xkb_layout $lang
repeat_delay 300
repeat_rate 40
}
# numlock on/off
# input * xkb_numlock enabled
############# Bindings ##################
# kill focused window
@ -200,16 +151,6 @@ bindsym $Mod+Shift+Mod2+KP_Right move container to workspace number 6; workspace
bindsym $Mod+Shift+Mod2+KP_Home move container to workspace number 7; workspace number 7
bindsym $Mod+Shift+Mod2+KP_Up move container to workspace number 8; workspace number 8
# Workspace to monitor assignment (edit & unhash)
# workspace 1 output $Mon1
# workspace 2 output $Mon1
# workspace 3 output $Mon1
# workspace 4 output $Mon1
# workspace 5 output $Mon1
# workspace 6 output $Mon1
# workspace 7 output $Mon1
# workspace 8 output $Mon1
############ Container/Window control ############
# Scratchpad, Floating
@ -303,7 +244,6 @@ bindsym Mod1+h exec pkill -f -12 nwg-wrapper
# move help to front/back
bindsym Mod1+Shift+h exec pkill -f -10 nwg-wrapper
############### Border & Gaps ###############
# changing border style
@ -324,9 +264,8 @@ bindsym $Mod+Control+Shift+minus gaps outer all minus 5
############ application settings ############
# focus, floating, & sticky
for_window [app_id="(?i)(?:blueman-manager|azote|gnome-disks|nwg-shell-config)"] floating enable
for_window [app_id="(?i)(?:blueman-manager|azote|gnome-disks)"] floating enable
for_window [app_id="(?i)(?:pavucontrol|nm-connection-editor|gsimplecal|galculator)"] floating enable
for_window [class="(?i)(?:lxappearance)"] floating enable
for_window [app_id="(?i)(?:firefox|chromium)"] border none
for_window [title="(?i)(?:copying|deleting|moving)"] floating enable

View File

View File

@ -0,0 +1,18 @@
{
"positionX": "right",
"positionY": "top",
"timeout": 10,
"timeout-low": 5,
"timeout-critical": 0,
"control-center-width": 500,
"notification-window-width": 500,
"keyboard-shortcuts": true,
"image-visibility": "always",
"transition-time": 200,
"hide-on-clear": true,
"hide-on-action": true,
"control-center-margin-top": 0,
"control-center-margin-bottom": 0,
"control-center-margin-right": 0,
"control-center-margin-left": 0
}

View File

@ -0,0 +1,151 @@
/*
* vim: ft=less
*/
@define-color border-color rgb(7, 7, 7);
@define-color bg rgb(58, 58, 58);
@define-color bg-hover rgb(68, 68, 68);
@define-color bg-focus rgba(255, 255, 255, 0.07);
@define-color bg-selected rgb(0, 128, 255);
.notification-row {
outline: none;
}
.notification-row:hover {
background: @bg-focus;
}
.notification {
border-radius: 3px;
margin: 6px 6px;
box-shadow: 0px 2px 4px 2px rgba(0, 0, 0, 0.3);
padding: 0;
}
.notification-content {
background: transparent;
padding: 6px;
border-radius: 3px;
}
.close-button {
background: rgba(0, 0, 0, 0.7);
color: white;
text-shadow: none;
padding: 0px;
box-shadow: 0px 2px 4px 2px rgba(0, 0, 0, 0.3);
border-radius: 100%;
}
.close-button:hover {
background: rgb(30, 30, 30);
transition: all 0.15s ease-in-out;
}
.notification-default-action,
.notification-action {
padding: 4px;
margin: 0;
box-shadow: none;
background: @bg;
border: 1px solid @border-color;
}
.notification-default-action:hover,
.notification-action:hover {
background: @bg-hover;
}
.notification-default-action {
border-radius: 3px;
}
/* When alternative actions are visible */
.notification-default-action:not(:only-child) {
border-bottom-left-radius: 0px;
border-bottom-right-radius: 0px;
}
.notification-action {
border-radius: 0px;
border-top: none;
border-right: none;
}
/* add bottom border radius to eliminate clipping */
.notification-action:first-child {
border-bottom-left-radius: 10px;
}
.notification-action:last-child {
border-bottom-right-radius: 10px;
border-right: 1px solid @border-color;
}
.image {
}
.body-image {
margin-top: 6px;
background-color: white;
border-radius: 3px;
}
.summary {
color: white;
text-shadow: none;
}
.time {
color: white;
text-shadow: none;
}
.body {
background: transparent;
color: white;
text-shadow: none;
}
.top-action-title {
color: #eee;
text-shadow: none;
padding: 10px
}
.control-center-clear-all {
color: white;
text-shadow: none;
background: @bg;
border: 1px solid @border-color;
box-shadow: none;
border-radius: 3px;
}
.control-center-clear-all:hover {
background: @bg-hover;
}
.control-center-dnd {
border-radius: 3px;
background: @bg;
border: 1px solid @border-color;
box-shadow: none;
}
.control-center-dnd:checked {
background: @bg-selected;
}
.control-center-dnd slider {
background: @bg-hover;
}
.control-center {
background-color: rgba (20, 20, 20, 0.95);
}
.control-center-list {
background: transparent;
padding: 6px
}
.floating-notifications {
background: transparent;
}

View File

@ -0,0 +1,151 @@
/*
* vim: ft=less
*/
@define-color border-color rgb(7, 7, 7);
@define-color bg #31373A;
@define-color bg-hover rgb(68, 68, 68);
@define-color bg-focus rgba(255, 255, 255, 0.07);
@define-color bg-selected rgb(0, 128, 255);
.notification-row {
outline: none;
}
.notification-row:hover {
background: @bg-focus;
}
.notification {
border-radius: 10px;
margin: 6px 6px;
box-shadow: 0px 2px 4px 2px rgba(0, 0, 0, 0.3);
padding: 0;
}
.notification-content {
background: transparent;
padding: 6px;
border-radius: 10px;
}
.close-button {
background: rgba(0, 0, 0, 0.7);
color: white;
text-shadow: none;
padding: 0px;
box-shadow: 0px 2px 4px 2px rgba(0, 0, 0, 0.3);
border-radius: 100%;
}
.close-button:hover {
background: rgb(30, 30, 30);
transition: all 0.15s ease-in-out;
}
.notification-default-action,
.notification-action {
padding: 4px;
margin: 0;
box-shadow: none;
background: @bg;
border: 1px solid @border-color;
}
.notification-default-action:hover,
.notification-action:hover {
background: @bg-hover;
}
.notification-default-action {
border-radius: 10px;
}
/* When alternative actions are visible */
.notification-default-action:not(:only-child) {
border-bottom-left-radius: 0px;
border-bottom-right-radius: 0px;
}
.notification-action {
border-radius: 0px;
border-top: none;
border-right: none;
}
/* add bottom border radius to eliminate clipping */
.notification-action:first-child {
border-bottom-left-radius: 10px;
}
.notification-action:last-child {
border-bottom-right-radius: 10px;
border-right: 1px solid @border-color;
}
.image {
}
.body-image {
margin-top: 6px;
background-color: white;
border-radius: 10px;
}
.summary {
color: white;
text-shadow: none;
}
.time {
color: white;
text-shadow: none;
}
.body {
background: transparent;
color: white;
text-shadow: none;
}
.top-action-title {
color: #eee;
text-shadow: none;
padding: 10px
}
.control-center-clear-all {
color: white;
text-shadow: none;
background: @bg;
border: 1px solid @border-color;
box-shadow: none;
border-radius: 10px;
}
.control-center-clear-all:hover {
background: @bg-hover;
}
.control-center-dnd {
border-radius: 10px;
background: @bg;
border: 1px solid @border-color;
box-shadow: none;
}
.control-center-dnd:checked {
background: @bg-selected;
}
.control-center-dnd slider {
background: @bg-hover;
}
.control-center {
background-color: #282828;
}
.control-center-list {
background: transparent;
padding: 6px
}
.floating-notifications {
background: transparent;
}

View File

@ -0,0 +1,151 @@
/*
* vim: ft=less
*/
@define-color border-color rgb(7, 7, 7);
@define-color bg rgb(23, 53, 63);
@define-color bg-hover rgb(33, 63, 73);
@define-color bg-focus rgba(255, 255, 255, 0.07);
@define-color bg-selected rgb(0, 128, 255);
.notification-row {
outline: none;
}
.notification-row:hover {
background: @bg-focus;
}
.notification {
border-radius: 3px;
margin: 6px 6px;
box-shadow: 0px 2px 4px 2px rgba(0, 0, 0, 0.3);
padding: 0;
}
.notification-content {
background: transparent;
padding: 6px;
border-radius: 3px;
}
.close-button {
background: rgba(0, 0, 0, 0.7);
color: white;
text-shadow: none;
padding: 0px;
box-shadow: 0px 2px 4px 2px rgba(0, 0, 0, 0.3);
border-radius: 100%;
}
.close-button:hover {
background: rgb(30, 30, 30);
transition: all 0.15s ease-in-out;
}
.notification-default-action,
.notification-action {
padding: 4px;
margin: 0;
box-shadow: none;
background: @bg;
border: 1px solid @border-color;
}
.notification-default-action:hover,
.notification-action:hover {
background: @bg-hover;
}
.notification-default-action {
border-radius: 3px;
}
/* When alternative actions are visible */
.notification-default-action:not(:only-child) {
border-bottom-left-radius: 0px;
border-bottom-right-radius: 0px;
}
.notification-action {
border-radius: 0px;
border-top: none;
border-right: none;
}
/* add bottom border radius to eliminate clipping */
.notification-action:first-child {
border-bottom-left-radius: 10px;
}
.notification-action:last-child {
border-bottom-right-radius: 10px;
border-right: 1px solid @border-color;
}
.image {
}
.body-image {
margin-top: 6px;
background-color: white;
border-radius: 3px;
}
.summary {
color: white;
text-shadow: none;
}
.time {
color: white;
text-shadow: none;
}
.body {
background: transparent;
color: white;
text-shadow: none;
}
.top-action-title {
color: #eee;
text-shadow: none;
padding: 10px
}
.control-center-clear-all {
color: white;
text-shadow: none;
background: @bg;
border: 1px solid @border-color;
box-shadow: none;
border-radius: 3px;
}
.control-center-clear-all:hover {
background: @bg-hover;
}
.control-center-dnd {
border-radius: 3px;
background: @bg;
border: 1px solid @border-color;
box-shadow: none;
}
.control-center-dnd:checked {
background: @bg-selected;
}
.control-center-dnd slider {
background: @bg-hover;
}
.control-center {
background-color: rgba (20, 1, 21, 0.9)
}
.control-center-list {
background: transparent;
padding: 6px
}
.floating-notifications {
background: transparent;
}

View File

@ -0,0 +1,151 @@
/*
* vim: ft=less
*/
@define-color border-color rgb(7, 7, 7);
@define-color bg #37233e;
@define-color bg-hover #47334e;
@define-color bg-focus rgba(255, 255, 255, 0.07);
@define-color bg-selected rgb(0, 128, 255);
.notification-row {
outline: none;
}
.notification-row:hover {
background: @bg-focus;
}
.notification {
border-radius: 0px;
margin: 6px 6px;
box-shadow: 0px 2px 4px 2px rgba(0, 0, 0, 0.3);
padding: 0;
}
.notification-content {
background: transparent;
padding: 6px;
border-radius: 0px;
}
.close-button {
background: rgba(0, 0, 0, 0.7);
color: white;
text-shadow: none;
padding: 0px;
box-shadow: 0px 2px 4px 2px rgba(0, 0, 0, 0.3);
border-radius: 100%;
}
.close-button:hover {
background: rgb(30, 30, 30);
transition: all 0.15s ease-in-out;
}
.notification-default-action,
.notification-action {
padding: 4px;
margin: 0;
box-shadow: none;
background: @bg;
border: 1px solid @border-color;
}
.notification-default-action:hover,
.notification-action:hover {
background: @bg-hover;
}
.notification-default-action {
border-radius: 0px;
}
/* When alternative actions are visible */
.notification-default-action:not(:only-child) {
border-bottom-left-radius: 0px;
border-bottom-right-radius: 0px;
}
.notification-action {
border-radius: 0px;
border-top: none;
border-right: none;
}
/* add bottom border radius to eliminate clipping */
.notification-action:first-child {
border-bottom-left-radius: 10px;
}
.notification-action:last-child {
border-bottom-right-radius: 10px;
border-right: 1px solid @border-color;
}
.image {
}
.body-image {
margin-top: 6px;
background-color: white;
border-radius: 0px;
}
.summary {
color: white;
text-shadow: none;
}
.time {
color: white;
text-shadow: none;
}
.body {
background: transparent;
color: white;
text-shadow: none;
}
.top-action-title {
color: #eee;
text-shadow: none;
padding: 10px
}
.control-center-clear-all {
color: white;
text-shadow: none;
background: @bg;
border: 1px solid @border-color;
box-shadow: none;
border-radius: 0px;
}
.control-center-clear-all:hover {
background: @bg-hover;
}
.control-center-dnd {
border-radius: 0px;
background: @bg;
border: 1px solid @border-color;
box-shadow: none;
}
.control-center-dnd:checked {
background: @bg-selected;
}
.control-center-dnd slider {
background: @bg-hover;
}
.control-center {
background-color: rgba (20, 1, 21, 0.9);
}
.control-center-list {
background: transparent;
padding: 6px
}
.floating-notifications {
background: transparent;
}

View File

@ -0,0 +1,149 @@
/*
* vim: ft=less
*/
@define-color border-color rgb(7, 7, 7);
@define-color bg rgb(58, 58, 58);
@define-color bg-hover rgb(68, 68, 68);
@define-color bg-focus rgba(68, 68, 68, 0.6);
@define-color bg-selected rgb(0, 128, 255);
.notification-row {
outline: none;
}
.notification-row:focus,
.notification-row:hover {
background: @bg-focus;
}
.notification {
border-radius: 10px;
margin: 6px 12px;
box-shadow: 0px 2px 4px 2px rgba(0, 0, 0, 0.3);
padding: 0;
}
.notification-content {
background: transparent;
padding: 6px;
border-radius: 10px;
}
.close-button {
background: black;
color: white;
text-shadow: none;
padding: 0 2px;
box-shadow: 0px 2px 4px 2px rgba(0, 0, 0, 0.3);
border-radius: 100%;
}
.close-button:hover {
background: rgb(30, 30, 30);
transition: all 0.15s ease-in-out;
}
.notification-default-action,
.notification-action {
padding: 4px;
margin: 0;
box-shadow: none;
background: @bg;
border: 1px solid @border-color;
}
.notification-default-action:hover,
.notification-action:hover {
background: @bg-hover;
}
.notification-default-action {
border-radius: 10px;
}
/* When alternative actions are visible */
.notification-default-action:not(:only-child) {
border-bottom-left-radius: 0px;
border-bottom-right-radius: 0px;
}
.notification-action {
border-radius: 0px;
border-top: none;
border-right: none;
}
/* add bottom border radius to eliminate clipping */
.notification-action:first-child {
border-bottom-left-radius: 10px;
}
.notification-action:last-child {
border-bottom-right-radius: 10px;
border-right: 1px solid @border-color;
}
.image {
}
.body-image {
margin-top: 6px;
background-color: white;
border-radius: 10px;
}
.summary {
color: white;
text-shadow: none;
}
.time {
color: white;
text-shadow: none;
}
.body {
background: transparent;
color: white;
text-shadow: none;
}
.top-action-title {
color: white;
text-shadow: none;
}
.control-center-clear-all {
color: white;
text-shadow: none;
background: @bg;
border: 1px solid @border-color;
box-shadow: none;
border-radius: 10px;
}
.control-center-clear-all:hover {
background: @bg-hover;
}
.control-center-dnd {
border-radius: 10px;
background: @bg;
border: 1px solid @border-color;
box-shadow: none;
}
.control-center-dnd:checked {
background: @bg-selected;
}
.control-center-dnd slider {
background: @bg-hover;
}
.control-center {
background: rgba(0, 0, 0, 0.7);
}
.control-center-list {
background: transparent;
}
.floating-notifications {
background: transparent;
}

View File

@ -0,0 +1,15 @@
# Generated by nwg-look, do not edit this file.
gtk-theme=Adwaita-dark
icon-theme=Papirus-Dark
font-name=Cantarell 11
cursor-theme=Adwaita
cursor-size=24
toolbar-style=both-horiz
toolbar-icons-size=large
font-hinting=medium
font-antialiasing=grayscale
font-rgba-order=rgb
text-scaling-factor=1.0
color-scheme=default
event-sounds=true
input-feedback-sounds=false