All the things

This commit is contained in:
opal
2021-12-26 23:15:20 -08:00
parent c0a14febd5
commit f4764a05df
6 changed files with 89 additions and 66 deletions

View File

@@ -57,8 +57,9 @@
;; install all-the-icons when first loading the emacs conf
;; remember to run M-x all-the-icons-install-fonts
(when (display-graphic-p)
(use-package all-the-icons :straight t))
(use-package all-the-icons
:straight t
:if (display-graphic-p))
(use-package which-key
:straight t
@@ -116,10 +117,16 @@
:init
(load-theme 'doom-Iosvkem))
(set-face-attribute 'default nil :font "Fira Code" :height 125 :weight 'medium)
(set-face-attribute 'default nil :font "Fira Mono" :height 125 :weight 'medium)
(set-face-attribute 'variable-pitch nil :font "Fira Sans" :height 1.0 :weight 'regular)
(set-face-attribute 'fixed-pitch nil :font "Fira Code" :height 1.0 :weight 'medium)
(use-package mixed-pitch
:straight t
:config
(add-hook 'org-mode-hook #'mixed-pitch-mode))
(use-package unicode-fonts :straight t)
(global-set-key (kbd "<escape>") 'keyboard-escape-quit) ;; Escape exits out of prompts
;; Define Leader Key
@@ -567,9 +574,7 @@
(use-package python-mode
:ensure t
:hook (python-mode . lsp-deferred)
:custom
(python-shell-interpreter "python3"))
:hook (python-mode . lsp-deferred))
(use-package parinfer
:straight t

View File

@@ -1,5 +1,8 @@
(use-modules (gnu)
(gnu services desktop)
(gnu packages wm)
(gnu system setuid)
(gnu packages admin)
(nongnu packages linux))
(use-service-modules
@@ -17,6 +20,10 @@
(timezone "America/Los_Angeles")
(keyboard-layout (keyboard-layout "us"))
(host-name "borges")
(setuid-programs
(cons (setuid-program
(program (file-append swaylock "/bin/swaylock")))
%setuid-programs))
(users (cons* (user-account
(name "opal")
(comment "opal")
@@ -32,7 +39,7 @@
(append
(list
(specification->package "git")
(specification->package "xclip")
(specification->package "wl-clipboard")
(specification->package "vim")
(specification->package "nss-certs")
(specification->package "stow")
@@ -52,8 +59,7 @@
(specification->package "keepassxc")
(specification->package "font-fira-mono")
(specification->package "font-fira-sans")
(specification->package "font-fira-code")
(specification->package "gnome-tweaks"))
(specification->package "font-fira-code"))
%base-packages))
(services
(append (modify-services %desktop-services

View File

@@ -15,8 +15,8 @@ set $menu dmenu_path | dmenu | xargs swaymsg exec --
default_border none
# Gaps
gaps top 4
gaps inner 5
gaps top 2
gaps inner 3
#gaps outer 3
# Hide mouse cursor after inactivity
@@ -26,10 +26,13 @@ seat * hide_cursor 4000
exec_always dunst
# Opacity
set $opacity 0.9
set $opacity 0.92
for_window [class=".*"] opacity $opacity
for_window [app_id=".*"] opacity $opacity
# Wlsunset (Night Light)
exec_always wlsunset -l 47.6, -122.3
### Output configuration
#
# Default wallpaper (more resolutions are available in /gnu/store/6d3q9f1bdfn4cchsziws33ixq2p4zjhw-sway-1.6.1/share/backgrounds/sway/)
@@ -74,6 +77,9 @@ exec swayidle -w \
# Kill focused window
bindsym $mod+Shift+q kill
# Lock SwayWM
bindsym $mod+Control+l swaylock
# Start your launcher
bindsym $mod+d exec $menu
@@ -114,29 +120,25 @@ exec swayidle -w \
bindsym $mod+Shift+Right move right
#
# Workspaces:
set $ws1 ۱
set $ws2 ۲
set $ws3 ۳
set $ws4 ۴
set $ws5 ۵
#
# Switch to workspace
bindsym $mod+1 workspace number 1
bindsym $mod+2 workspace number 2
bindsym $mod+3 workspace number 3
bindsym $mod+4 workspace number 4
bindsym $mod+5 workspace number 5
bindsym $mod+6 workspace number 6
bindsym $mod+7 workspace number 7
bindsym $mod+8 workspace number 8
bindsym $mod+9 workspace number 9
bindsym $mod+0 workspace number 10
bindsym $mod+1 workspace $ws1
bindsym $mod+2 workspace $ws2
bindsym $mod+3 workspace $ws3
bindsym $mod+4 workspace $ws4
bindsym $mod+5 workspace $ws5
# Move focused container to workspace
bindsym $mod+Shift+1 move container to workspace number 1
bindsym $mod+Shift+2 move container to workspace number 2
bindsym $mod+Shift+3 move container to workspace number 3
bindsym $mod+Shift+4 move container to workspace number 4
bindsym $mod+Shift+5 move container to workspace number 5
bindsym $mod+Shift+6 move container to workspace number 6
bindsym $mod+Shift+7 move container to workspace number 7
bindsym $mod+Shift+8 move container to workspace number 8
bindsym $mod+Shift+9 move container to workspace number 9
bindsym $mod+Shift+0 move container to workspace number 10
bindsym $mod+Shift+1 move container to workspace $ws1
bindsym $mod+Shift+2 move container to workspace $ws2
bindsym $mod+Shift+3 move container to workspace $ws3
bindsym $mod+Shift+4 move container to workspace $ws4
bindsym $mod+Shift+5 move container to workspace $ws5
# Note: workspaces can have any name you want, not just numbers.
# We just use 1-10 as the default.
#
@@ -207,6 +209,7 @@ bindsym $mod+r mode "resize"
# Read `man 5 sway-bar` for more information about this section.
bar {
position top
gaps 5
# When the status_command prints a new line to stdout, swaybar updates.
# The default just shows the current date and time.

View File

@@ -22,10 +22,9 @@ set $menu dmenu_path | dmenu | xargs swaymsg exec --
# Window Borders
default_border none
# Gaps
gaps top 4
gaps inner 5
gaps top 2
gaps inner 3
#gaps outer 3
# Hide mouse cursor after inactivity
@@ -35,7 +34,7 @@ seat * hide_cursor 4000
exec_always dunst
# Opacity
set $opacity 0.9
set $opacity 0.92
for_window [class=".*"] opacity $opacity
for_window [app_id=".*"] opacity $opacity
@@ -86,6 +85,9 @@ exec swayidle -w \
# Kill focused window
bindsym $mod+Shift+q kill
# Lock SwayWM
bindsym $mod+Control+l swaylock
# Start your launcher
bindsym $mod+d exec $menu
@@ -126,29 +128,25 @@ exec swayidle -w \
bindsym $mod+Shift+Right move right
#
# Workspaces:
set $ws1 ۱
set $ws2 ۲
set $ws3 ۳
set $ws4 ۴
set $ws5 ۵
#
# Switch to workspace
bindsym $mod+1 workspace number 1
bindsym $mod+2 workspace number 2
bindsym $mod+3 workspace number 3
bindsym $mod+4 workspace number 4
bindsym $mod+5 workspace number 5
bindsym $mod+6 workspace number 6
bindsym $mod+7 workspace number 7
bindsym $mod+8 workspace number 8
bindsym $mod+9 workspace number 9
bindsym $mod+0 workspace number 10
bindsym $mod+1 workspace $ws1
bindsym $mod+2 workspace $ws2
bindsym $mod+3 workspace $ws3
bindsym $mod+4 workspace $ws4
bindsym $mod+5 workspace $ws5
# Move focused container to workspace
bindsym $mod+Shift+1 move container to workspace number 1
bindsym $mod+Shift+2 move container to workspace number 2
bindsym $mod+Shift+3 move container to workspace number 3
bindsym $mod+Shift+4 move container to workspace number 4
bindsym $mod+Shift+5 move container to workspace number 5
bindsym $mod+Shift+6 move container to workspace number 6
bindsym $mod+Shift+7 move container to workspace number 7
bindsym $mod+Shift+8 move container to workspace number 8
bindsym $mod+Shift+9 move container to workspace number 9
bindsym $mod+Shift+0 move container to workspace number 10
bindsym $mod+Shift+1 move container to workspace $ws1
bindsym $mod+Shift+2 move container to workspace $ws2
bindsym $mod+Shift+3 move container to workspace $ws3
bindsym $mod+Shift+4 move container to workspace $ws4
bindsym $mod+Shift+5 move container to workspace $ws5
# Note: workspaces can have any name you want, not just numbers.
# We just use 1-10 as the default.
#
@@ -219,6 +217,7 @@ bindsym $mod+r mode "resize"
# Read `man 5 sway-bar` for more information about this section.
bar {
position top
gaps 5
# When the status_command prints a new line to stdout, swaybar updates.
# The default just shows the current date and time.

View File

@@ -98,8 +98,9 @@ Doom's modeline is excellent, and much less cluttered than the default Emacs mod
;; install all-the-icons when first loading the emacs conf
;; remember to run M-x all-the-icons-install-fonts
(when (display-graphic-p)
(use-package all-the-icons :straight t))
(use-package all-the-icons
:straight t
:if (display-graphic-p))
#+end_src
*** Keybinding display
@@ -185,12 +186,17 @@ Helpful.el is a package that reformats the describe-X functions to be much more
#+end_src
** Fonts
Mozilla's Fira fonts are pretty, and the Sans and Code types look excellent with the corresponding mode.
#+begin_src emacs-lisp
(set-face-attribute 'default nil :font "Fira Code" :height 125 :weight 'medium)
(set-face-attribute 'default nil :font "Fira Mono" :height 125 :weight 'medium)
(set-face-attribute 'variable-pitch nil :font "Fira Sans" :height 1.0 :weight 'regular)
(set-face-attribute 'fixed-pitch nil :font "Fira Code" :height 1.0 :weight 'medium)
(use-package mixed-pitch
:straight t
:config
(add-hook 'org-mode-hook #'mixed-pitch-mode))
(use-package unicode-fonts :straight t)
#+end_src
** Keybinding
@@ -725,9 +731,7 @@ Sets HTML strings to have the background of the color they represent.
#+begin_src emacs-lisp
(use-package python-mode
:ensure t
:hook (python-mode . lsp-deferred)
:custom
(python-shell-interpreter "python3"))
:hook (python-mode . lsp-deferred))
#+end_src
*** Lisp

View File

@@ -28,6 +28,9 @@ Disclaimer: I use the nonguix channel only for the use of building Firefox from
#+begin_src scheme :tangle ~/Dotfiles/.config/guix/home-desk.scm :mkdirp yes
(use-modules (gnu)
(gnu services desktop)
(gnu packages wm)
(gnu system setuid)
(gnu packages admin)
(nongnu packages linux))
(use-service-modules
@@ -45,6 +48,10 @@ Disclaimer: I use the nonguix channel only for the use of building Firefox from
(timezone "America/Los_Angeles")
(keyboard-layout (keyboard-layout "us"))
(host-name "borges")
(setuid-programs
(cons (setuid-program
(program (file-append swaylock "/bin/swaylock")))
%setuid-programs))
(users (cons* (user-account
(name "opal")
(comment "opal")
@@ -60,7 +67,7 @@ Disclaimer: I use the nonguix channel only for the use of building Firefox from
(append
(list
(specification->package "git")
(specification->package "xclip")
(specification->package "wl-clipboard")
(specification->package "vim")
(specification->package "nss-certs")
(specification->package "stow")
@@ -80,8 +87,7 @@ Disclaimer: I use the nonguix channel only for the use of building Firefox from
(specification->package "keepassxc")
(specification->package "font-fira-mono")
(specification->package "font-fira-sans")
(specification->package "font-fira-code")
(specification->package "gnome-tweaks"))
(specification->package "font-fira-code"))
%base-packages))
(services
(append (modify-services %desktop-services