diff options
author | Karel Kočí <cynerd@email.cz> | 2022-07-02 09:43:06 +0200 |
---|---|---|
committer | Karel Kočí <cynerd@email.cz> | 2022-07-02 09:43:06 +0200 |
commit | c49abeb1a3e2b526dda17e71bccba1630360470f (patch) | |
tree | 5fbd39d3919cca5dc7d2eb0f2aa4f64d19b543c5 /config/sway | |
parent | c0d3adb0276937cd08642ed1e6e69ec83ee5bb49 (diff) | |
download | myconfigs-c49abeb1a3e2b526dda17e71bccba1630360470f.tar.gz myconfigs-c49abeb1a3e2b526dda17e71bccba1630360470f.tar.bz2 myconfigs-c49abeb1a3e2b526dda17e71bccba1630360470f.zip |
Use Nord color theme
Diffstat (limited to 'config/sway')
-rw-r--r-- | config/sway/bar | 12 | ||||
-rw-r--r-- | config/sway/bindsym-layout | 13 | ||||
-rw-r--r-- | config/sway/bindsym-system | 6 | ||||
-rw-r--r-- | config/sway/config | 3 | ||||
-rw-r--r-- | config/sway/gsettings | 8 | ||||
-rw-r--r-- | config/sway/inputs | 14 | ||||
-rw-r--r-- | config/sway/theme | 19 |
7 files changed, 49 insertions, 26 deletions
diff --git a/config/sway/bar b/config/sway/bar index c09e832..ff9d0f0 100644 --- a/config/sway/bar +++ b/config/sway/bar @@ -3,4 +3,16 @@ bar { status_command i3blocks position top font pango:DejaVu Sans Mono 8 + colors { + separator #1f222d + background #1f222d + statusline #81a1c1 + + # border background text + focused_workspace #1f222d #1f222d #81a1c1 + active_workspace #1f222d #252936 #5e81ac + inactive_workspace #1f222d #1f222d #4c566a + urgent_workspace #1f222d #1f222d #ee829f + binding_mode #1f222d #81a1c1 #2e3440 + } } diff --git a/config/sway/bindsym-layout b/config/sway/bindsym-layout deleted file mode 100644 index 5b075ac..0000000 --- a/config/sway/bindsym-layout +++ /dev/null @@ -1,13 +0,0 @@ -# vim: ft=swayconfig -set $mode_layout Set keyboard layout (u)s or (c)z -mode "$mode_layout" { - bindsym u input type:keyboard xkb_layout us, mode "default" - bindsym c input type:keyboard xkb_layout cz_qwerty, mode "default" - bindsym Return mode "default" - bindsym Escape mode "default" -} -bindsym --to-code $mod+slash mode "$mode_layout" - -# Type emoji -bindsym --to-code $mod+period exec rofimoji --selector wofi --skin-tone neutral -bindsym --to-code $mod+Shift+period exec rofimoji --selector wofi --skin-tone neutral --action copy diff --git a/config/sway/bindsym-system b/config/sway/bindsym-system index 1c8eea4..96c8c0a 100644 --- a/config/sway/bindsym-system +++ b/config/sway/bindsym-system @@ -3,9 +3,9 @@ set $mode_system System (l) lock, (e) logout, (s) suspend, (r) reboot, (Shift+s) mode "$mode_system" { bindsym l exec --no-startup-id loginctl lock-session $XDG_SESSION_ID, mode "default" bindsym e exec --no-startup-id swaymsg exit, mode "default" - bindsym s exec --no-startup-id loginctl suspend, mode "default" - bindsym r exec --no-startup-id loginctl reboot, mode "default" - bindsym Shift+s exec --no-startup-id loginctl poweroff, mode "default" + bindsym s exec --no-startup-id systemctl suspend, mode "default" + bindsym r exec --no-startup-id systemctl reboot, mode "default" + bindsym Shift+s exec --no-startup-id systemctl poweroff, mode "default" bindsym Return mode "default" bindsym Escape mode "default" diff --git a/config/sway/config b/config/sway/config index 14341d2..4f2a548 100644 --- a/config/sway/config +++ b/config/sway/config @@ -1,11 +1,10 @@ # vim: ft=swayconfig exec --no-startup-id dbus-update-activation-environment --all -exec --no-startup-id gentoo-pipewire-launcher exec --no-startup-id myswaylock exec --no-startup-id swaybackground ################################################################################ include inputs -include gsettings +include theme ################################################################################ include bar diff --git a/config/sway/gsettings b/config/sway/gsettings deleted file mode 100644 index c3ea34c..0000000 --- a/config/sway/gsettings +++ /dev/null @@ -1,8 +0,0 @@ -# vim: ft=swayconfig -exec_always { - gsettings set org.gnome.desktop.interface gtk-theme 'Adwaita' - gsettings set org.gnome.desktop.interface cursor-theme 'Adwaita' - gsettings set org.gnome.desktop.interface icon-theme 'Delft' - gsettings set org.gnome.desktop.interface font-name 'DejaVu Sans 8' - gsettings set org.gnome.desktop.interface gtk-key-theme 'Emacs' -} diff --git a/config/sway/inputs b/config/sway/inputs index 235105e..3569df9 100644 --- a/config/sway/inputs +++ b/config/sway/inputs @@ -17,6 +17,20 @@ seat '*' { hide_cursor when-typing disable } +## Layout switching ############################################################ +set $mode_layout Set keyboard layout (u)s or (c)z +mode "$mode_layout" { + bindsym u input type:keyboard xkb_layout us, mode "default" + bindsym c input type:keyboard xkb_layout cz_qwerty, mode "default" + bindsym Return mode "default" + bindsym Escape mode "default" +} +bindsym --to-code $mod+slash mode "$mode_layout" + +# Type emoji +bindsym --to-code $mod+period exec rofimoji --selector wofi --skin-tone neutral +bindsym --to-code $mod+Shift+period exec rofimoji --selector wofi --skin-tone neutral --action copy + ## Susan inputs ################################################################ input '9610:33:HAILUCK_CO.,LTD_USB_KEYBOARD_Mouse' { middle_emulation enabled diff --git a/config/sway/theme b/config/sway/theme new file mode 100644 index 0000000..54b4a23 --- /dev/null +++ b/config/sway/theme @@ -0,0 +1,19 @@ +# vim: ft=swayconfig + +client.background #242424 +# class border backgr. text indicator +client.focused #81a1c1 #81a1c1 #ffffff #81a1c1 +client.unfocused #2e3440 #1f222d #888888 #1f222d +client.focused_inactive #2e3440 #1f222d #888888 #1f222d +client.placeholder #2e3440 #1f222d #888888 #1f222d +client.urgent #900000 #900000 #ffffff #900000 + + +exec_always { + gsettings set org.gnome.desktop.interface gtk-theme 'Nordic-darker-standard-buttons' + gsettings set org.gnome.desktop.wm.preferences theme "Nordic-darker-standard-buttons" + gsettings set org.gnome.desktop.interface cursor-theme 'Adwaita' + gsettings set org.gnome.desktop.interface icon-theme 'Delft' + gsettings set org.gnome.desktop.interface font-name 'DejaVu Sans 8' + gsettings set org.gnome.desktop.interface gtk-key-theme 'Emacs' +} |