add more behavior and keybindings example

This commit is contained in:
Almarhoon Ibraheem 2024-06-16 07:47:57 +03:00
parent 479239a806
commit 2ffcd7f8fe
2 changed files with 21 additions and 15 deletions

View file

@ -4,14 +4,14 @@
(sway-output "DP-1" "resolution 1920x1080 position 0,0")
(sway-output "DP-2" "resolution 1920x1080 position 0,0")
(sway-output "*" "bg /home/ebeem/dotfiles/.wallpapers/fixed/flat-20.png fill")
(sway-output "*" "bg ~/.wallpapers/fixed/flat-20.png fill")
(sway-focus-follow-mouse SWAY-FOCUS-FOLLOW-MOUSE-FLAG-NO)
(sway-default-gaps SWAY-GAPS-OPTION-INNER 10)
(sway-title-format "")
(sway-layout SWAY-LAYOUT-TABBED)
(sway-workspace-layout SWAY-LAYOUT-TABBED)
(sway-titlebar-border-thickness 0)
(sway-titlebar-padding 0 0)
(sway-titlebar-padding 25 0)
(sway-default-border-style SWAY-BORDER-STYLE-PIXEL #:n 4)
;; TODO: better move theme colors to another module for all guile scripts to inherit from
@ -44,16 +44,16 @@
(sway-client-background base)
(sway-client-focused-color mauve base text
#:indictor-color rosewater
(sway-client-focused-color mauve mauve crust
#:indictor-color mauve
#:child-border-color mauve)
(sway-client-focused-inactive-color overlay0 base text
#:indictor-color rosewater
(sway-client-focused-inactive-color overlay0 overlay0 text
#:indictor-color overlay0
#:child-border-color overlay0)
(sway-client-unfocused-color overlay0 base text
#:indictor-color rosewater
(sway-client-unfocused-color overlay0 overlay0 text
#:indictor-color overlay0
#:child-border-color overlay0)
(sway-client-urgent-color peach base peach
@ -64,3 +64,8 @@
#:indictor-color overlay0
#:child-border-color overlay0)
(sway-font "Iosevka SS14 Bold 12")
(sway-workspace-auto-back-and-forth #f)
(sway-mouse-warping SWAY-MOUSE-WARPING-NONE)
;; (sway-opacity SWAY-OPACITY-SET 0.95)
(sway-show-marks SWAY-SHOW-MARKS-NO)

View file

@ -63,9 +63,9 @@
`("s-M-C-k" (move-container-to-workspace-up))
`("s-M-C-l" (move-container-to-workspace-right))
;; ;; Tab like cycling
;; (define-key *top-map* (kbd "s-.") "next-in-frame")
;; (define-key *top-map* (kbd "s-,") "prev-in-frame")
;; Tab like cycling
`("s-." (sway-focus-container-sibling SWAY-SIBLING-NEXT))
`("s-," (sway-focus-container-sibling SWAY-SIBLING-PREV))
`("s-w" (sway-kill))
`("s-Return" (exec "alacritty"))
@ -115,7 +115,8 @@
`(sway-define-keys
#:prefix "w" #:wk "Window"
("v" (sway-split-container SWAY-SPLIT-VERTICAL))
("h" (sway-split-container SWAY-SPLIT-HORIZONTAL))
("v" (sway-layout SWAY-LAYOUT-SPLITV))
("h" (sway-layout SWAY-LAYOUT-SPLITH))
("f" (sway-fullscreen SWAY-FULLSCREEN-TOGGLE))
("d" (sway-fullscreen SWAY-FULLSCREEN-TOGGLE)))))
("d" (sway-layout SWAY-LAYOUT-DEFAULT))
("t" (sway-layout SWAY-LAYOUT-TABBED)))))