This commit is contained in:
ry
2022-02-08 16:15:03 -08:00
parent 666b6ae843
commit 641a64c37c
5 changed files with 215 additions and 182 deletions

View File

@@ -1,40 +1,3 @@
set $mod Mod4
set $left h
set $down j
set $up k
set $right l
# Terminal
set $term alacritty
# Application Launcher
set $menu killall wofi || wofi
# Start wofi
bindsym $mod+d exec $menu
# Screenshot (Grimshot)
bindsym $mod+g exec grimshot save active
bindsym $mod+Shift+g exec grimshot save area
bindsym $mod+Mod1+g exec grimshot save output
bindsym $mod+Ctrl+g exec grimshot save window
set $opacity 0.98
for_window [class=".*"] opacity $opacity
for_window [app_id=".*"] opacity $opacity
# Window Borders
default_border none
# Gaps
smart_gaps on
gaps inner 10
gaps outer 10
# Hide mouse cursor after inactivity
seat * hide_cursor 4000
# Notifications
exec_always --no-startup-id dunst
@@ -64,6 +27,36 @@ exec hash dbus-update-activation-environment 2>/dev/null && \
# Wlsunset (Night Light)
exec_always wlsunset -lsd 47.6, -122.3 -t 3200 -T 6500
# Directional Keys
set $left h
set $down j
set $up k
set $right l
# Mod Key
set $mod Mod4
# Terminal
set $term alacritty
# Application Launcher
set $menu killall wofi || wofi
set $opacity 0.98
for_window [class=".*"] opacity $opacity
for_window [app_id=".*"] opacity $opacity
# Window Borders
default_border none
default_floating_border none
# Gaps
smart_gaps on
gaps inner 10
gaps outer 10
for_window [app_id="galendae"] floating enable, sticky enable, move position cursor, move down 35
# Idle configuration
# This will lock your screen after 300 seconds of inactivity, then turn off
# your displays after another 300 seconds, and turn your screens back on when
@@ -75,11 +68,6 @@ exec swayidle -w \
timeout \
before-sleep 'swaylock -f'
# Exit sway (logs you out of your Wayland session)
bindsym $mod+Shift+e exec swaynag -t custom -m 'Do you wish to fully reload your Sway session?' -b 'Yes' 'swaymsg exit'
# Turn the system off
bindsym $mod+Shift+p exec swaynag -t custom -m 'What action would you like to perform?' -b 'Shutdown' 'poweroff' -b 'Restart' 'poweroff --reboot' -b 'Suspend' 'systemctl suspend'
### Input configuration
#
# Example configuration:
@@ -102,14 +90,15 @@ input type:keyboard {
repeat_rate 45
}
# Hide mouse cursor after inactivity
seat * hide_cursor 4000
set $laptop eDP-1
bindswitch --reload --locked lid:on output $laptop disable
bindswitch --reload --locked lid:off output $laptop enable
# Monitors
# You can get the names of your outputs by running: swaymsg -t get_outputs
# output eDP-1 pos 0 0 res 1920x1200
# output DP-5 pos 3440 0 res 3440x1440
output eDP-1 pos 0 0 res 1920x1200
output DP-5 pos 1920 0 res 3440x1440
@@ -126,9 +115,6 @@ set $ws3 number 3
set $ws4 number 4
set $ws5 number 5
set $ws6 number 6
set $ws7 number 7
set $ws8 number 8
set $ws9 number 9
# Switch to workspace
bindsym $mod+1 workspace $ws1
@@ -137,9 +123,6 @@ bindsym $mod+3 workspace $ws3
bindsym $mod+4 workspace $ws4
bindsym $mod+5 workspace $ws5
bindsym $mod+6 workspace $ws6
bindsym $mod+7 workspace $ws7
bindsym $mod+8 workspace $ws8
bindsym $mod+9 workspace $ws9
# Move focused container to workspace
bindsym $mod+Shift+1 move container to workspace $ws1
@@ -148,9 +131,6 @@ 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
bindsym $mod+Shift+6 move container to workspace $ws6
bindsym $mod+Shift+7 move container to workspace $ws7
bindsym $mod+Shift+8 move container to workspace $ws8
bindsym $mod+Shift+9 move container to workspace $ws9
# Start a terminal
bindsym $mod+Return exec $term
@@ -272,16 +252,4 @@ bindsym $mod+r mode "resize"
# Status Bar:
bar {
swaybar_command waybar
# 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.
# status_command while date +'%Y-%m-%d %l:%M:%S %p'; do sleep 1; done
# colors {
# statusline #ffffff
# background #323232
# inactive_workspace #32323200 #32323200 #5c5c5c
# }
}

View File

@@ -1,5 +1,5 @@
[custom]
font=Iosevka 10
font=Iosevka 13
dismiss-button=Dismiss
background=0f0f0f
border=262626

View File

@@ -1,27 +1,33 @@
{
"layer": "top", // Waybar at top layer
"position": "top", // Waybar at the bottom of your screen
"height": 35, // Waybar height
"layer": "top",
"position": "top",
"height": 35,
"modules-left": ["sway/workspaces"],
"modules-center": ["clock", "backlight"],
"modules-right": ["idle_inhibitor", "pulseaudio", "network", "battery", "tray"],
"sway/workspaces": {
// "persistent_workspaces": {
// "<span font=\"FontAwesome 5 Free\"></span>": ["HDMI-A-1"],
// "<span font=\"FontAwesome 5 Free\"></span>": ["HDMI-A-1"],
// "<span font=\"FontAwesome 5 Free\"></span>": ["HDMI-A-1"],
// "<span font=\"FontAwesome 5 Free\"></span>": ["HDMI-A-1"],
// "<span font=\"FontAwesome 5 Free\"></span>": ["HDMI-A-1"],
// "<span font=\"FontAwesome 5 Free\"></span>": ["HDMI-A-1"],
// },
"disable-scroll": true,
"all-outputs": false,
"all-outputs": true,
"format": "<span size='large'>{icon}</span>",
"format-icons": {
"1": "web",
"2": "mu",
"3": "chat",
"4": "dev0",
"5": "dev1",
"6": "term0",
"7": "term1",
"8": "misc0",
"9": "misc1",
"urgent": "",
"active": "",
"default": ""
"1": "<span font=\"FontAwesome 5 Free\"></span>",
"2": "<span font=\"FontAwesome 5 Free\"></span>",
"3": "<span font=\"FontAwesome 5 Free\"></span>",
"4": "<span font=\"FontAwesome 5 Free\"></span>",
"5": "<span font=\"FontAwesome 5 Free\"></span>",
"6": "<span font=\"FontAwesome 5 Free\"></span>",
"urgent": "<span font=\"FontAwesome 5 Free\"></span>",
"focused": " <span font=\"FontAwesome 5 Free\"></span>",
"default": "<span font=\"FontAwesome 5 Free\"></span>",
"active": "<span font=\"FontAwesome 5 Free\"></span>",
},
},
@@ -36,6 +42,8 @@
"clock": {
"format": "{: %I:%M %A %B %d}",
"tooltip": false,
"on-click": "galendae -c $HOME/.config/galendae-cal/galendae.conf"
},
"battery": {

View File

@@ -1,7 +1,7 @@
\* {
border: none;
border-radius: 0;
font-family: "Iosevka", Regular;
font-family: Iosevka, FontAwesome;
font-size: 15px;
min-height: 0;
}
@@ -21,7 +21,13 @@ window#waybar {
#workspaces button.focused {
color: white;
margin: 5px 10px 0 10px;
}
}
#workspaces button.active {
color: white;
margin: 5px 10px 0 10px;
}
#workspaces button.urgent{
margin: 5px 10px 0 10px;
padding: 0px 8px 0px 8px;

View File

@@ -5,55 +5,6 @@ This =.org= document is where I store all of my small time user-level configurat
I prefer to use programs that I can extend the functionality of via configuration files and source code.
* Sway
** Mod Key
#+begin_src shell :tangle ~/dotfiles/.config/sway/config :mkdirp yes
set $mod Mod4
#+end_src
** Directional Keys
#+begin_src shell :tangle ~/dotfiles/.config/sway/config :mkdirp yes
set $left h
set $down j
set $up k
set $right l
#+end_src
** Applications
#+begin_src shell :tangle ~/dotfiles/.config/sway/config :mkdirp yes
# Terminal
set $term alacritty
# Application Launcher
set $menu killall wofi || wofi
# Start wofi
bindsym $mod+d exec $menu
# Screenshot (Grimshot)
bindsym $mod+g exec grimshot save active
bindsym $mod+Shift+g exec grimshot save area
bindsym $mod+Mod1+g exec grimshot save output
bindsym $mod+Ctrl+g exec grimshot save window
#+end_src
** Opacity
#+begin_src shell :tangle ~/dotfiles/.config/sway/config :mkdirp yes
set $opacity 0.98
for_window [class=".*"] opacity $opacity
for_window [app_id=".*"] opacity $opacity
#+end_src
** Borders and Gaps
#+begin_src shell :tangle ~/dotfiles/.config/sway/config :mkdirp yes
# Window Borders
default_border none
# Gaps
smart_gaps on
gaps inner 10
gaps outer 10
#+end_src
** Mouse Behavior
#+begin_src shell :tangle ~/dotfiles/.config/sway/config :mkdirp yes
# Hide mouse cursor after inactivity
seat * hide_cursor 4000
#+end_src
** Autostart
#+begin_src shell :tangle ~/dotfiles/.config/sway/config :mkdirp yes
# Notifications
@@ -85,7 +36,45 @@ exec hash dbus-update-activation-environment 2>/dev/null && \
# Wlsunset (Night Light)
exec_always wlsunset -lsd 47.6, -122.3 -t 3200 -T 6500
#+end_src
** Idle/Exit Behavior
** Variables
#+begin_src shell :tangle ~/dotfiles/.config/sway/config :mkdirp yes
# Directional Keys
set $left h
set $down j
set $up k
set $right l
# Mod Key
set $mod Mod4
# Terminal
set $term alacritty
# Application Launcher
set $menu killall wofi || wofi
#+end_src
** Opacity
#+begin_src shell :tangle ~/dotfiles/.config/sway/config :mkdirp yes
set $opacity 0.98
for_window [class=".*"] opacity $opacity
for_window [app_id=".*"] opacity $opacity
#+end_src
** Borders/Gaps
#+begin_src shell :tangle ~/dotfiles/.config/sway/config :mkdirp yes
# Window Borders
default_border none
default_floating_border none
# Gaps
smart_gaps on
gaps inner 10
gaps outer 10
#+end_src
** App Window Behavior
#+begin_src shell :tangle ~/dotfiles/.config/sway/config :mkdirp yes
for_window [app_id="galendae"] floating enable, sticky enable, move position cursor, move down 35
#+end_src
** Idle Behavior
#+begin_src shell :tangle ~/dotfiles/.config/sway/config :mkdirp yes
# Idle configuration
# This will lock your screen after 300 seconds of inactivity, then turn off
@@ -98,13 +87,9 @@ exec swayidle -w \
timeout \
before-sleep 'swaylock -f'
# Exit sway (logs you out of your Wayland session)
bindsym $mod+Shift+e exec swaynag -t custom -m 'Do you wish to fully reload your Sway session?' -b 'Yes' 'swaymsg exit'
# Turn the system off
bindsym $mod+Shift+p exec swaynag -t custom -m 'What action would you like to perform?' -b 'Shutdown' 'poweroff' -b 'Restart' 'poweroff --reboot' -b 'Suspend' 'systemctl suspend'
#+end_src
** Input
*** Keyboard
#+begin_src shell :tangle ~/dotfiles/.config/sway/config :mkdirp yes
### Input configuration
#
@@ -128,6 +113,11 @@ input type:keyboard {
repeat_rate 45
}
#+end_src
*** Mouse
#+begin_src shell :tangle ~/dotfiles/.config/sway/config :mkdirp yes
# Hide mouse cursor after inactivity
seat * hide_cursor 4000
#+end_src
** Clamshell Mode
#+begin_src shell :tangle ~/dotfiles/.config/sway/config :mkdirp yes
set $laptop eDP-1
@@ -148,8 +138,6 @@ fi
#+begin_src shell :tangle ~/dotfiles/.config/sway/config :mkdirp yes
# Monitors
# You can get the names of your outputs by running: swaymsg -t get_outputs
# output eDP-1 pos 0 0 res 1920x1200
# output DP-5 pos 3440 0 res 3440x1440
output eDP-1 pos 0 0 res 1920x1200
output DP-5 pos 1920 0 res 3440x1440
@@ -168,9 +156,6 @@ set $ws3 number 3
set $ws4 number 4
set $ws5 number 5
set $ws6 number 6
set $ws7 number 7
set $ws8 number 8
set $ws9 number 9
# Switch to workspace
bindsym $mod+1 workspace $ws1
@@ -179,9 +164,6 @@ bindsym $mod+3 workspace $ws3
bindsym $mod+4 workspace $ws4
bindsym $mod+5 workspace $ws5
bindsym $mod+6 workspace $ws6
bindsym $mod+7 workspace $ws7
bindsym $mod+8 workspace $ws8
bindsym $mod+9 workspace $ws9
# Move focused container to workspace
bindsym $mod+Shift+1 move container to workspace $ws1
@@ -190,9 +172,6 @@ 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
bindsym $mod+Shift+6 move container to workspace $ws6
bindsym $mod+Shift+7 move container to workspace $ws7
bindsym $mod+Shift+8 move container to workspace $ws8
bindsym $mod+Shift+9 move container to workspace $ws9
#+end_src
** Keybindings
*** General
@@ -322,29 +301,35 @@ mode "resize" {
bindsym $mod+r mode "resize"
#+end_src
** Bar
*** Applications
#+begin_src shell
# Start wofi
bindsym $mod+d exec $menu
# Screenshot (Grimshot)
bindsym $mod+g exec grimshot save active
bindsym $mod+Shift+g exec grimshot save area
bindsym $mod+Mod1+g exec grimshot save output
bindsym $mod+Ctrl+g exec grimshot save window
#+end_src
*** Swaynag
#+begin_src shell
# Exit sway (logs you out of your Wayland session)
bindsym $mod+Shift+e exec swaynag -t custom -m 'Do you wish to fully reload your Sway session?' -b 'Yes' 'swaymsg exit'
# Turn the system off
bindsym $mod+Shift+p exec swaynag -t custom -m 'What action would you like to perform?' -b 'Shutdown' 'poweroff' -b 'Restart' 'poweroff --reboot' -b 'Suspend' 'systemctl suspend'
#+end_src
** Status Bar
#+begin_src shell :tangle ~/dotfiles/.config/sway/config :mkdirp yes
# Status Bar:
bar {
swaybar_command waybar
# 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.
# status_command while date +'%Y-%m-%d %l:%M:%S %p'; do sleep 1; done
# colors {
# statusline #ffffff
# background #323232
# inactive_workspace #32323200 #32323200 #5c5c5c
# }
}
#+end_src
** Swaynag
#+begin_src shell :tangle ~/dotfiles/.config/swaynag/config :mkdirp yes
[custom]
font=Iosevka 10
font=Iosevka 13
dismiss-button=Dismiss
background=0f0f0f
border=262626
@@ -377,29 +362,35 @@ show-failed-attempts
** waybar/config
#+begin_src shell :tangle ~/dotfiles/.config/waybar/config :mkdirp yes
{
"layer": "top", // Waybar at top layer
"position": "top", // Waybar at the bottom of your screen
"height": 35, // Waybar height
"layer": "top",
"position": "top",
"height": 35,
"modules-left": ["sway/workspaces"],
"modules-center": ["clock", "backlight"],
"modules-right": ["idle_inhibitor", "pulseaudio", "network", "battery", "tray"],
"sway/workspaces": {
// "persistent_workspaces": {
// "<span font=\"FontAwesome 5 Free\"></span>": ["HDMI-A-1"],
// "<span font=\"FontAwesome 5 Free\"></span>": ["HDMI-A-1"],
// "<span font=\"FontAwesome 5 Free\"></span>": ["HDMI-A-1"],
// "<span font=\"FontAwesome 5 Free\"></span>": ["HDMI-A-1"],
// "<span font=\"FontAwesome 5 Free\"></span>": ["HDMI-A-1"],
// "<span font=\"FontAwesome 5 Free\"></span>": ["HDMI-A-1"],
// },
"disable-scroll": true,
"all-outputs": false,
"all-outputs": true,
"format": "<span size='large'>{icon}</span>",
"format-icons": {
"1": "web",
"2": "mu",
"3": "chat",
"4": "dev0",
"5": "dev1",
"6": "term0",
"7": "term1",
"8": "misc0",
"9": "misc1",
"urgent": "",
"active": "",
"default": ""
"1": "<span font=\"FontAwesome 5 Free\"></span>",
"2": "<span font=\"FontAwesome 5 Free\"></span>",
"3": "<span font=\"FontAwesome 5 Free\"></span>",
"4": "<span font=\"FontAwesome 5 Free\"></span>",
"5": "<span font=\"FontAwesome 5 Free\"></span>",
"6": "<span font=\"FontAwesome 5 Free\"></span>",
"urgent": "<span font=\"FontAwesome 5 Free\"></span>",
"focused": " <span font=\"FontAwesome 5 Free\"></span>",
"default": "<span font=\"FontAwesome 5 Free\"></span>",
"active": "<span font=\"FontAwesome 5 Free\"></span>",
},
},
@@ -414,6 +405,8 @@ show-failed-attempts
"clock": {
"format": "{: %I:%M %A %B %d}",
"tooltip": false,
"on-click": "galendae -c $HOME/.config/galendae-cal/galendae.conf"
},
"battery": {
@@ -476,7 +469,7 @@ show-failed-attempts
\* {
border: none;
border-radius: 0;
font-family: "Iosevka", Regular;
font-family: Iosevka, FontAwesome;
font-size: 15px;
min-height: 0;
}
@@ -496,7 +489,13 @@ window#waybar {
#workspaces button.focused {
color: white;
margin: 5px 10px 0 10px;
}
}
#workspaces button.active {
color: white;
margin: 5px 10px 0 10px;
}
#workspaces button.urgent{
margin: 5px 10px 0 10px;
padding: 0px 8px 0px 8px;
@@ -842,6 +841,58 @@ font:
x: 0
y: 0
#+end_src
* Galendae (Calendar Popup)
#+begin_src shell :tangle ~/dotfiles/.config/galendae-cal/galendae.conf
### WINDOW SETTINGS
# Stick window to all workspaces: 0=No, 1=Yes
stick=1
# Undecorated window: 0=No, 1=Yes
undecorated=1
# Close the window if it loses focus: 0=No, 1=Yes
close_on_unfocus=1
# Initial window position: 'center', 'mouse' or 'none'
position=mouse
# Move the window horizontally from its intial position
x_offset=1
# Move the window vertically from its initial position
y_offset=1
### COLORS
# Window background specified with CSS color
background_color=#000000
# Text color specified with CSS color
foreground_color=#dfdfdf
# Dates of previous and following months, colored with CSS
fringe_date_color=#404040
# Highlight color for the current date
highlight_color=#c61740
### FONTS
# Month font with CSS size and weight
month_font_size=xx-large
month_font_weight=normal
# Weekday column header font with CSS size and weight
day_font_size=75%
day_font_weight=normal
# Date number font with CSS size and weight
date_font_size=x-large
date_font_weight=bold
# Arrow font, ie '<' and '>' with CSS size and weight
arrow_font_size = xx-large
arrow_font_weight = bold
### CALENDAR SETTINGS
# Sunday=0, Monday=1, Tuesday=2, Wednesday=3
# Thursday=4, Friday=5, Saturday=6
week_start=1
#+end_src
* Dunst
#+begin_src shell :tangle ~/dotfiles/.config/dunst/dunstrc :mkdirp yes