New sway setup
This commit is contained in:
+26
-14
@@ -9,7 +9,21 @@ set $right l
|
||||
set $term alacritty
|
||||
|
||||
# Application Launcher
|
||||
set $menu wofi --hide-scroll --show drun | xargs swaymsg exec
|
||||
set $menu killall wofi || wofi
|
||||
|
||||
# Start wofi
|
||||
bindsym $mod+d exec $menu
|
||||
|
||||
# Screenshot (Grimshot)
|
||||
|
||||
# Super+P: Current window
|
||||
# Super+Shift+p: Select area
|
||||
# Super+Alt+p Current output
|
||||
# Super+Ctrl+p Select a window
|
||||
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.95
|
||||
for_window [class=".*"] opacity $opacity
|
||||
@@ -35,17 +49,6 @@ exec_always --no-startup-id dunst
|
||||
# Wlsunset (Night Light)
|
||||
exec_always wlsunset -lsd 47.6, -122.3 -t 3200 -T 6500
|
||||
|
||||
# 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 HDMI-A-1 pos 1920 0 res 3440x1440
|
||||
|
||||
# Wallpaper
|
||||
output HDMI-A-1 bg /home/opal/dotfiles/.config/wallpapers/2.jpg fit #050402
|
||||
output eDP-1 bg /home/opal/dotfiles/.config/wallpapers/2.jpg fit #050402
|
||||
|
||||
### 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
|
||||
@@ -82,6 +85,17 @@ input type:keyboard {
|
||||
repeat_rate 45
|
||||
}
|
||||
|
||||
# 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 HDMI-A-1 pos 1920 0 res 3440x1440
|
||||
|
||||
# Wallpaper
|
||||
output HDMI-A-1 bg /home/opal/dotfiles/.config/wallpapers/redfog.jpg fill #050402
|
||||
output eDP-1 bg /home/opal/dotfiles/.config/wallpapers/redfog.jpg fill #050402
|
||||
|
||||
# Start a terminal
|
||||
bindsym $mod+Return exec $term
|
||||
|
||||
@@ -91,8 +105,6 @@ bindsym $mod+Shift+q kill
|
||||
# Lock SwayWM
|
||||
bindsym Control+Shift+l exec swaylock
|
||||
|
||||
# Start your launcher
|
||||
bindsym $mod+d exec $menu
|
||||
|
||||
# Change normal to inverse to use left mouse button for resizing and right
|
||||
# mouse button for dragging.
|
||||
|
||||
+1
-1
@@ -1,5 +1,5 @@
|
||||
style=/home/opal/dotfiles/.config/wofi/style.css
|
||||
show=drun
|
||||
show=run
|
||||
width=500
|
||||
height=300
|
||||
always_parse_args=true
|
||||
|
||||
@@ -1,15 +0,0 @@
|
||||
# Each new shell auto-imports all environment variables.
|
||||
# Hence exporting needs to be done only once.
|
||||
# Also, all non-login shells are descendants of a login shell.
|
||||
# Ergo, exports need to be done in the login shell only.
|
||||
# Hence, we put exports in .zprofile
|
||||
|
||||
# Only vars needed by external commands should be exported.
|
||||
# Note that you can export vars w/out assigning a value to them.
|
||||
export XDG_CONFIG_HOME=~/.config
|
||||
export XDG_CACHE_HOME=~/.cache
|
||||
export XDG_DATA_HOME=~/.local/share
|
||||
export XDG_STATE_HOME=~/.config/zsh
|
||||
export EDITOR=nvim
|
||||
export VISUAL=nvim
|
||||
xmodmap ~/.config/xmodmap/xmodmap
|
||||
@@ -1,9 +0,0 @@
|
||||
if [[ -z "$XDG_CONFIG_HOME" ]]
|
||||
then
|
||||
export XDG_CONFIG_HOME="$HOME/.config"
|
||||
fi
|
||||
|
||||
if [[ -d "$XDG_CONFIG_HOME/zsh" ]]
|
||||
then
|
||||
export ZDOTDIR="$XDG_CONFIG_HOME/zsh"
|
||||
fi
|
||||
@@ -1,29 +0,0 @@
|
||||
# Sometimes SSH'ing with Emacs is ungraceful.
|
||||
# To remedy this I disable the zsh line editor.
|
||||
[[ $TERM == "dumb" ]] && unsetopt zle && PS1='$ ' && return
|
||||
|
||||
|
||||
#### ~~~~ General ~~~~ #####
|
||||
export ZSH="$XDG_CONFIG_HOME/oh-my-zsh"
|
||||
HISTFILE=$XDG_CONFIG_HOME/zsh/.history
|
||||
ZSH_THEME="mrtazz"
|
||||
DISABLE_AUTO_UPDATE="true"
|
||||
ENABLE_CORRECTION="true"
|
||||
plugins=(git)
|
||||
source $ZSH/oh-my-zsh.sh # This has to stay below plugins.
|
||||
|
||||
#### ~~~~ Autostart ~~~~ #####
|
||||
pfetch
|
||||
|
||||
#### ~~~~ Path Additions ~~~~ #####
|
||||
export PATH=/home/opal/scripts:$PATH # Scripts
|
||||
|
||||
#### ~~~~ Locale ~~~~ #####
|
||||
export LANG=en_US.UTF-8
|
||||
|
||||
|
||||
#### ~~~~ Import ~~~~ #####
|
||||
ALIAS_LOCATION="$XDG_CONFIG_HOME/zsh/zsh_aliases"
|
||||
FUNCTION_LOCATION="$XDG_CONFIG_HOME/zsh/zsh_functions"
|
||||
source $ALIAS_LOCATION
|
||||
source $FUNCTION_LOCATION
|
||||
+43
-28
@@ -24,7 +24,21 @@ set $right l
|
||||
set $term alacritty
|
||||
|
||||
# Application Launcher
|
||||
set $menu wofi --hide-scroll --show drun | xargs swaymsg exec
|
||||
set $menu killall wofi || wofi
|
||||
|
||||
# Start wofi
|
||||
bindsym $mod+d exec $menu
|
||||
|
||||
# Screenshot (Grimshot)
|
||||
|
||||
# Super+P: Current window
|
||||
# Super+Shift+p: Select area
|
||||
# Super+Alt+p Current output
|
||||
# Super+Ctrl+p Select a window
|
||||
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
|
||||
@@ -60,20 +74,6 @@ exec_always --no-startup-id dunst
|
||||
# Wlsunset (Night Light)
|
||||
exec_always wlsunset -lsd 47.6, -122.3 -t 3200 -T 6500
|
||||
#+end_src
|
||||
*** Wallpaper & Monitor(s)
|
||||
#+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 HDMI-A-1 pos 1920 0 res 3440x1440
|
||||
|
||||
# Wallpaper
|
||||
output HDMI-A-1 bg /home/opal/dotfiles/.config/wallpapers/2.jpg fit #050402
|
||||
output eDP-1 bg /home/opal/dotfiles/.config/wallpapers/2.jpg fit #050402
|
||||
#+end_src
|
||||
|
||||
*** Idle/Exit Behavior
|
||||
#+begin_src shell :tangle ~/dotfiles/.config/sway/config :mkdirp yes
|
||||
### Idle configuration
|
||||
@@ -115,6 +115,24 @@ input type:keyboard {
|
||||
repeat_rate 45
|
||||
}
|
||||
#+end_src
|
||||
*** Gnome Keyring
|
||||
#+begin_src shell
|
||||
exec eval $(gnome-keyring-daemon --start)
|
||||
exec export SSH_AUTH_SOCK
|
||||
#+end_src
|
||||
** Wallpaper & Monitor(s)
|
||||
#+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 HDMI-A-1 pos 1920 0 res 3440x1440
|
||||
|
||||
# Wallpaper
|
||||
output HDMI-A-1 bg /home/opal/dotfiles/.config/wallpapers/redfog.jpg fill #050402
|
||||
output eDP-1 bg /home/opal/dotfiles/.config/wallpapers/redfog.jpg fill #050402
|
||||
#+end_src
|
||||
** Keybindings
|
||||
*** General
|
||||
#+begin_src shell :tangle ~/dotfiles/.config/sway/config :mkdirp yes
|
||||
@@ -127,8 +145,6 @@ bindsym $mod+Shift+q kill
|
||||
# Lock SwayWM
|
||||
bindsym Control+Shift+l exec swaylock
|
||||
|
||||
# Start your launcher
|
||||
bindsym $mod+d exec $menu
|
||||
|
||||
# Change normal to inverse to use left mouse button for resizing and right
|
||||
# mouse button for dragging.
|
||||
@@ -535,7 +551,7 @@ window#waybar {
|
||||
*** wofi/config
|
||||
#+begin_src shell :tangle ~/dotfiles/.config/wofi/config :mkdirp yes
|
||||
style=/home/opal/dotfiles/.config/wofi/style.css
|
||||
show=drun
|
||||
show=run
|
||||
width=500
|
||||
height=300
|
||||
always_parse_args=true
|
||||
@@ -604,12 +620,11 @@ color: #c0caf5;
|
||||
* Zsh
|
||||
Aside from using e-shell for quick command line usage, I mainly use vterm with Zsh. It's a bit of a complicated setup but allows for the maximum number of files possible to live in .config instead of littering my home directory.
|
||||
** zshrc
|
||||
#+begin_src shell :tangle ~/dotfiles/.config/zsh/zshrc :mkdirp yes
|
||||
#+begin_src shell :tangle ~/dotfiles/.config/zsh/.zshrc :mkdirp yes
|
||||
# Sometimes SSH'ing with Emacs is ungraceful.
|
||||
# To remedy this I disable the zsh line editor.
|
||||
[[ $TERM == "dumb" ]] && unsetopt zle && PS1='$ ' && return
|
||||
|
||||
|
||||
#### ~~~~ General ~~~~ #####
|
||||
export ZSH="$XDG_CONFIG_HOME/oh-my-zsh"
|
||||
HISTFILE=$XDG_CONFIG_HOME/zsh/.history
|
||||
@@ -629,11 +644,11 @@ export PATH=/home/opal/scripts:$PATH # Scripts
|
||||
export LANG=en_US.UTF-8
|
||||
|
||||
|
||||
#### ~~~~ Import ~~~~ #####
|
||||
ALIAS_LOCATION="$XDG_CONFIG_HOME/zsh/zsh_aliases"
|
||||
FUNCTION_LOCATION="$XDG_CONFIG_HOME/zsh/zsh_functions"
|
||||
source $ALIAS_LOCATION
|
||||
source $FUNCTION_LOCATION
|
||||
# #### ~~~~ Import ~~~~ #####
|
||||
# ALIAS_LOCATION="$XDG_CONFIG_HOME/zsh/zsh_aliases"
|
||||
# FUNCTION_LOCATION="$XDG_CONFIG_HOME/zsh/zsh_functions"
|
||||
# . $ALIAS_LOCATION
|
||||
# . $FUNCTION_LOCATION
|
||||
#+end_src
|
||||
** zsh_aliases
|
||||
#+begin_src shell :tangle ~/dotfiles/.config/zsh/zsh_aliases
|
||||
@@ -667,7 +682,7 @@ del () { mv "$@" $HOME/.local/share/trash/files/.; }
|
||||
mk () { mkdir -p -- "$1" && cd -P -- "$1" }
|
||||
#+end_src
|
||||
** zprofile
|
||||
#+begin_src shell :tangle ~/dotfiles/.config/zsh/zprofile :mkdirp yes
|
||||
#+begin_src shell :tangle ~/dotfiles/.config/zsh/.zprofile :mkdirp yes
|
||||
# Each new shell auto-imports all environment variables.
|
||||
# Hence exporting needs to be done only once.
|
||||
# Also, all non-login shells are descendants of a login shell.
|
||||
@@ -680,8 +695,8 @@ export XDG_CONFIG_HOME=~/.config
|
||||
export XDG_CACHE_HOME=~/.cache
|
||||
export XDG_DATA_HOME=~/.local/share
|
||||
export XDG_STATE_HOME=~/.config/zsh
|
||||
export EDITOR=nvim
|
||||
export VISUAL=nvim
|
||||
export EDITOR=vim
|
||||
export VISUAL=vim
|
||||
xmodmap ~/.config/xmodmap/xmodmap
|
||||
#+end_src
|
||||
** zshenv
|
||||
|
||||
@@ -159,7 +159,7 @@ Helpful.el is a package that reformats the describe-X functions to be much more
|
||||
#+begin_src emacs-lisp
|
||||
(setq tramp-default-method "ssh")
|
||||
#+end_src
|
||||
*** No Littering!
|
||||
*** Pick up that can!
|
||||
#+begin_src emacs-lisp
|
||||
(use-package no-littering
|
||||
:straight t)
|
||||
|
||||
Binary file not shown.
|
Before Width: | Height: | Size: 4.3 MiB After Width: | Height: | Size: 5.0 MiB |
Reference in New Issue
Block a user