parent
a282cf4d63
commit
8789a2a83e
33 changed files with 37 additions and 24 deletions
152
lnx/.Xresources
Normal file
152
lnx/.Xresources
Normal file
|
@ -0,0 +1,152 @@
|
|||
! {{{ xft and cursor configuration, aliases
|
||||
Xcursor.theme: Vanilla-DMZ
|
||||
Xft.antialias: true
|
||||
Xft.lcdfilter: true
|
||||
Xft.rgba: rgb
|
||||
Xft.hinting: true
|
||||
Xft.hintstyle: hintslight
|
||||
Xft.dpi: 96
|
||||
|
||||
#define TERMINUS -xos4-terminus-bold-*-*-*-18-*-*-*-*-*-iso10646-1
|
||||
#define TERMINUS_SMALL -xos4-terminus-*-*-*-*-12-*-*-*-*-*-iso10646-1
|
||||
#define FONT xft:Fantasque Sans Mono:12
|
||||
|
||||
! gruvbox
|
||||
#define COLORFG #ebdbb2
|
||||
#define COLORBG #282828
|
||||
#define COLORBD #ebdbb2
|
||||
#define COLORCR #fb4934
|
||||
|
||||
#define COLOR0 #282828
|
||||
#define COLOR1 #cc241d
|
||||
#define COLOR2 #98971a
|
||||
#define COLOR3 #d79921
|
||||
#define COLOR4 #458588
|
||||
#define COLOR5 #b16286
|
||||
#define COLOR6 #689d6a
|
||||
#define COLOR7 #a89984
|
||||
|
||||
#define COLOR8 #928374
|
||||
#define COLOR9 #fb4934
|
||||
#define COLOR10 #b8bb26
|
||||
#define COLOR11 #fabd2f
|
||||
#define COLOR12 #83a598
|
||||
#define COLOR13 #d3869b
|
||||
#define COLOR14 #8ec07c
|
||||
#define COLOR15 #ebdbb2
|
||||
|
||||
! solarized light
|
||||
!#define COLORFG #657b83
|
||||
!#define COLORBG #fdf6e3
|
||||
!#define COLORBD #002b36
|
||||
!#define COLORCR #cb4b16
|
||||
!
|
||||
!#define COLOR0 #073642
|
||||
!#define COLOR1 #dc322f
|
||||
!#define COLOR2 #859900
|
||||
!#define COLOR3 #b58900
|
||||
!#define COLOR4 #268bd2
|
||||
!#define COLOR5 #d33682
|
||||
!#define COLOR6 #2aa198
|
||||
!#define COLOR7 #eee8d5
|
||||
!
|
||||
!#define COLOR8 #002b36
|
||||
!#define COLOR9 #cb4b16
|
||||
!#define COLOR10 #586e75
|
||||
!#define COLOR11 #657b83
|
||||
!#define COLOR12 #839496
|
||||
!#define COLOR13 #6c71c4
|
||||
!#define COLOR14 #93a1a1
|
||||
!#define COLOR15 #fdf6e3
|
||||
! }}}
|
||||
! {{{ urxvt
|
||||
! fonts
|
||||
URxvt.font: TERMINUS
|
||||
URxvt.boldFont: TERMINUS
|
||||
URxvt.italicFont: TERMINUS
|
||||
URxvt.boldItalicFont: TERMINUS
|
||||
|
||||
! misc
|
||||
URxvt.intensityStyles: false
|
||||
URxvt.internalBorder: 1
|
||||
URxvt.iso14755: false
|
||||
URxvt.pastableTabs: true
|
||||
URxvt.pointerBlank: true
|
||||
URxvt.saveLines: 10000
|
||||
URxvt.scrollBar: false
|
||||
URxvt.secondaryScroll: false
|
||||
URxvt.urgentOnBell: false
|
||||
URxvt.visualBell: false
|
||||
URxvt.cutchars: `'"'&()*,;<=>?@[]^{|}│
|
||||
|
||||
! perl extensions
|
||||
URxvt.perl-ext-common: default,matcher
|
||||
URxvt.url-launcher: /home/von/.local/bin/default-web-browser
|
||||
URxvt.matcher.button: 3
|
||||
|
||||
! keymaps
|
||||
URxvt.keysym.C-V: eval:paste_clipboard
|
||||
URxvt.keysym.M-v: eval:paste_clipboard
|
||||
URxvt.keysym.C-C: eval:selection_to_clipboard
|
||||
URxvt.keysym.M-c: eval:selection_to_clipboard
|
||||
|
||||
! colors
|
||||
URxvt.foreground: COLORFG
|
||||
URxvt.colorBD: COLORBD
|
||||
URxvt.background: COLORBG
|
||||
URxvt.cursorColor: COLORCR
|
||||
|
||||
URxvt.color0: COLOR0
|
||||
URxvt.color1: COLOR1
|
||||
URxvt.color2: COLOR2
|
||||
URxvt.color3: COLOR3
|
||||
URxvt.color4: COLOR4
|
||||
URxvt.color5: COLOR5
|
||||
URxvt.color6: COLOR6
|
||||
URxvt.color7: COLOR7
|
||||
|
||||
URxvt.color8: COLOR8
|
||||
URxvt.color9: COLOR9
|
||||
URxvt.color10: COLOR10
|
||||
URxvt.color11: COLOR11
|
||||
URxvt.color12: COLOR12
|
||||
URxvt.color13: COLOR13
|
||||
URxvt.color14: COLOR14
|
||||
URxvt.color15: COLOR15
|
||||
! }}}
|
||||
! {{{ xterm
|
||||
xterm.borderWidth: 0
|
||||
xterm.vt100.font: TERMINUS
|
||||
xterm.vt100.colorBDMode: true
|
||||
xterm.vt100.allowBoldFonts: false
|
||||
xterm.vt100.boldColors: false
|
||||
xterm.vt100.bellIsUrgent: true
|
||||
xterm.vt100.visualBell: false
|
||||
xterm.vt100.metaSendsEscape: true
|
||||
xterm.vt100.fastScroll: true
|
||||
xterm.vt100.internalBorder: 1
|
||||
|
||||
! colors
|
||||
xterm.vt100.foreground: COLORFG
|
||||
xterm.vt100.colorBD: COLORBD
|
||||
xterm.vt100.background: COLORBG
|
||||
xterm.vt100.cursorColor: COLORCR
|
||||
|
||||
xterm.vt100.color0: COLOR0
|
||||
xterm.vt100.color1: COLOR1
|
||||
xterm.vt100.color2: COLOR2
|
||||
xterm.vt100.color3: COLOR3
|
||||
xterm.vt100.color4: COLOR4
|
||||
xterm.vt100.color5: COLOR5
|
||||
xterm.vt100.color6: COLOR6
|
||||
xterm.vt100.color7: COLOR7
|
||||
|
||||
xterm.vt100.color8: COLOR8
|
||||
xterm.vt100.color9: COLOR9
|
||||
xterm.vt100.color10: COLOR10
|
||||
xterm.vt100.color11: COLOR11
|
||||
xterm.vt100.color12: COLOR12
|
||||
xterm.vt100.color13: COLOR13
|
||||
xterm.vt100.color14: COLOR14
|
||||
xterm.vt100.color15: COLOR15
|
||||
! }}}
|
56
lnx/.config/foot/foot.ini
Normal file
56
lnx/.config/foot/foot.ini
Normal file
|
@ -0,0 +1,56 @@
|
|||
# -*- conf -*-
|
||||
|
||||
font=Cascadia Code PL:size=14
|
||||
box-drawings-uses-font-glyphs=no
|
||||
# dpi-aware=yes
|
||||
|
||||
notify=notify-send -a ${app-id} -i ${app-id} ${title} ${body}
|
||||
|
||||
bold-text-in-bright=no
|
||||
word-delimiters=,│`|:"'()[]{}<>
|
||||
|
||||
[bell]
|
||||
urgent=no
|
||||
notify=no
|
||||
|
||||
[scrollback]
|
||||
lines=15000
|
||||
|
||||
[cursor]
|
||||
style=underline
|
||||
color=111111 dcdccc
|
||||
underline-thickness=3
|
||||
|
||||
[mouse]
|
||||
hide-when-typing=no
|
||||
|
||||
[colors]
|
||||
background=282828
|
||||
foreground=ebdbb2
|
||||
|
||||
regular0=282828
|
||||
regular1=cc241d
|
||||
regular2=98971a
|
||||
regular3=d79921
|
||||
regular4=458588
|
||||
regular5=b16286
|
||||
regular6=689d6a
|
||||
regular7=a89984
|
||||
|
||||
bright0=928374
|
||||
bright1=fb4934
|
||||
bright2=b8bb26
|
||||
bright3=fabd2f
|
||||
bright4=83a598
|
||||
bright5=d3869b
|
||||
bright6=8ec07c
|
||||
bright7=ebdbb2
|
||||
|
||||
[key-bindings]
|
||||
clipboard-copy=Mod1+c XF86Copy
|
||||
clipboard-paste=Mod1+v XF86Paste
|
||||
|
||||
[mouse-bindings]
|
||||
select-begin-block=Mod1+BTN_LEFT
|
||||
|
||||
# vim: ft=conf
|
197
lnx/.config/i3/config
Normal file
197
lnx/.config/i3/config
Normal file
|
@ -0,0 +1,197 @@
|
|||
# i3 config file (v4)
|
||||
#
|
||||
# Please see http://i3wm.org/docs/userguide.html for a complete reference!
|
||||
|
||||
set $mod Mod4
|
||||
set $i3_term default-terminal-emulator
|
||||
set $font PT Sans Expert:size=11
|
||||
|
||||
font pango:Fantasque Sans Mono 13
|
||||
#font pango:Cascadia Code PL 11
|
||||
|
||||
# Use Mouse+$mod to drag floating windows to their wanted position
|
||||
floating_modifier $mod
|
||||
|
||||
# start a terminal
|
||||
bindsym $mod+x exec $i3_term
|
||||
|
||||
# kill focused window
|
||||
bindsym $mod+Shift+c kill
|
||||
|
||||
# workaround for firefox
|
||||
bindsym Control+q exec /bin/true
|
||||
|
||||
# screenshot
|
||||
bindsym $mod+Shift+s exec screenshot-tool
|
||||
|
||||
# start dmenu (a program launcher)
|
||||
bindsym $mod+y exec dmenu_multicmd "$HOME/.displayrc.yaml" -i -fn "$font"
|
||||
bindsym $mod+d exec dmenu_run -p run -i -fn "$font"
|
||||
bindsym $mod+p exec dmenu_ssh "$i3_term -e tmux_ssh" -i -fn "$font"
|
||||
bindsym $mod+u exec dmenu_pass -i -fn "$font"
|
||||
|
||||
# change focus
|
||||
bindsym $mod+h focus left
|
||||
bindsym $mod+j focus down
|
||||
bindsym $mod+k focus up
|
||||
bindsym $mod+l focus right
|
||||
|
||||
# alternatively, you can use the cursor keys:
|
||||
bindsym $mod+Left focus left
|
||||
bindsym $mod+Down focus down
|
||||
bindsym $mod+Up focus up
|
||||
bindsym $mod+Right focus right
|
||||
|
||||
# move focused window
|
||||
bindsym $mod+Shift+h move left
|
||||
bindsym $mod+Shift+j move down
|
||||
bindsym $mod+Shift+k move up
|
||||
bindsym $mod+Shift+l move right
|
||||
|
||||
# alternatively, you can use the cursor keys:
|
||||
bindsym $mod+Shift+Left move left
|
||||
bindsym $mod+Shift+Down move down
|
||||
bindsym $mod+Shift+Up move up
|
||||
bindsym $mod+Shift+Right move right
|
||||
|
||||
# split in horizontal orientation
|
||||
bindsym $mod+b split h
|
||||
|
||||
# split in vertical orientation
|
||||
bindsym $mod+v split v
|
||||
|
||||
# enter fullscreen mode for the focused container
|
||||
bindsym $mod+f fullscreen
|
||||
|
||||
# change container layout (stacked, tabbed, toggle split)
|
||||
bindsym $mod+s layout stacking
|
||||
bindsym $mod+w layout tabbed
|
||||
bindsym $mod+e layout toggle split
|
||||
|
||||
# toggle tiling / floating
|
||||
bindsym $mod+Shift+Return floating toggle
|
||||
|
||||
# change focus between tiling / floating windows
|
||||
bindsym $mod+Return focus mode_toggle
|
||||
|
||||
# focus the parent container
|
||||
bindsym $mod+a focus parent
|
||||
|
||||
# focus the child container
|
||||
bindsym $mod+Shift+a focus child
|
||||
|
||||
# move to another screen
|
||||
bindsym $mod+Shift+o move workspace to output right
|
||||
|
||||
# switch to workspace
|
||||
bindsym $mod+1 workspace 1
|
||||
bindsym $mod+2 workspace 2
|
||||
bindsym $mod+3 workspace 3
|
||||
bindsym $mod+4 workspace 4
|
||||
bindsym $mod+5 workspace 5
|
||||
bindsym $mod+6 workspace 6
|
||||
bindsym $mod+7 workspace 7
|
||||
bindsym $mod+8 workspace 8
|
||||
bindsym $mod+9 workspace 9
|
||||
bindsym $mod+0 workspace 10
|
||||
|
||||
bindsym $mod+o workspace back_and_forth
|
||||
|
||||
# move focused container to workspace
|
||||
bindsym $mod+Shift+1 move container to workspace 1
|
||||
bindsym $mod+Shift+2 move container to workspace 2
|
||||
bindsym $mod+Shift+3 move container to workspace 3
|
||||
bindsym $mod+Shift+4 move container to workspace 4
|
||||
bindsym $mod+Shift+5 move container to workspace 5
|
||||
bindsym $mod+Shift+6 move container to workspace 6
|
||||
bindsym $mod+Shift+7 move container to workspace 7
|
||||
bindsym $mod+Shift+8 move container to workspace 8
|
||||
bindsym $mod+Shift+9 move container to workspace 9
|
||||
bindsym $mod+Shift+0 move container to workspace 10
|
||||
|
||||
# reload the configuration file
|
||||
bindsym $mod+Shift+r restart
|
||||
|
||||
# restart i3 inplace (preserves your layout/session, can be used to upgrade i3)
|
||||
bindsym $mod+Control+r restart
|
||||
|
||||
# exit i3 (logs you out of your X session)
|
||||
bindsym $mod+Shift+e exec "i3-nagbar -t warning -m 'You pressed the exit shortcut. Do you really want to exit i3? This will end your X session.' -b 'Yes, exit i3' 'i3-msg exit'"
|
||||
|
||||
# lock screen
|
||||
bindsym $mod+z exec "xscreensaver-command -lock"
|
||||
|
||||
# toggle touchpad
|
||||
bindsym XF86TouchpadToggle exec "touchpad-toggle"
|
||||
bindsym XF86KbdBrightnessDown exec "keybrightness d"
|
||||
bindsym XF86KbdBrightnessUp exec "keybrightness u"
|
||||
|
||||
# mpd keys
|
||||
bindsym XF86AudioPlay exec "mpc toggle"
|
||||
bindsym XF86AudioStop exec "mpc stop"
|
||||
bindsym XF86AudioNext exec "mpc next"
|
||||
bindsym XF86AudioPrev exec "mpc prev"
|
||||
|
||||
# volume keys
|
||||
#bindsym XF86AudioRaiseVolume exec "ponymix increase 2"
|
||||
#bindsym XF86AudioLowerVolume exec "ponymix decrease 2"
|
||||
|
||||
# resize window (you can also use the mouse for that)
|
||||
mode "resize" {
|
||||
bindsym h resize shrink width 10 px or 10 ppt
|
||||
bindsym j resize grow height 10 px or 10 ppt
|
||||
bindsym k resize shrink height 10 px or 10 ppt
|
||||
bindsym l resize grow width 10 px or 10 ppt
|
||||
|
||||
bindsym Left resize shrink width 10 px or 10 ppt
|
||||
bindsym Down resize grow height 10 px or 10 ppt
|
||||
bindsym Up resize shrink height 10 px or 10 ppt
|
||||
bindsym Right resize grow width 10 px or 10 ppt
|
||||
|
||||
bindsym Return mode "default"
|
||||
bindsym Escape mode "default"
|
||||
}
|
||||
|
||||
bindsym $mod+r mode "resize"
|
||||
|
||||
bar {
|
||||
position top
|
||||
status_command "i3status-rs"
|
||||
tray_output primary
|
||||
colors {
|
||||
background #2c2c2c
|
||||
}
|
||||
}
|
||||
|
||||
workspace_layout tabbed
|
||||
|
||||
new_window pixel 1
|
||||
new_float pixel 1
|
||||
hide_edge_borders both
|
||||
|
||||
workspace_auto_back_and_forth yes
|
||||
force_focus_wrapping yes
|
||||
|
||||
# software
|
||||
for_window [class="GalaxyBudsClient"] floating enable
|
||||
for_window [class="jetbrains-toolbox"] floating enable
|
||||
for_window [class="Vpnui"] floating enable
|
||||
for_window [class="Deadbeef"] floating enable
|
||||
for_window [class="mpv"] floating enable
|
||||
for_window [class="Pavucontrol"] floating enable
|
||||
for_window [class="pinentry"] floating enable
|
||||
for_window [class="Qmmp"] floating enable
|
||||
for_window [class="Vncviewer"] floating enable
|
||||
for_window [class="vlc"] floating enable
|
||||
for_window [class="X64"] floating enable
|
||||
for_window [title="^Cacti - Realtime"] floating enable
|
||||
for_window [class="java-lang-Thread"] floating enable
|
||||
for_window [class="^sun-awt"] floating enable
|
||||
# scratchpad
|
||||
for_window [class="KeePassXC"] move scratchpad, scratchpad show
|
||||
for_window [title="^vimwiki$"] move scratchpad, scratchpad show
|
||||
bindsym $mod+i [class="KeePassXC"] scratchpad show
|
||||
bindsym $mod+n [title="^vimwiki$"] scratchpad show
|
||||
|
||||
# execs
|
||||
exec --no-startup-id "$HOME/.autostart"
|
96
lnx/.config/i3status-rust/config.toml
Normal file
96
lnx/.config/i3status-rust/config.toml
Normal file
|
@ -0,0 +1,96 @@
|
|||
[theme]
|
||||
name = "gruvbox-dark"
|
||||
[theme.overrides]
|
||||
separator = '|'
|
||||
idle_bg = "#2c2c2c"
|
||||
idle_fg = "#ebdbb2"
|
||||
info_bg = "#2c2c2c"
|
||||
info_fg = "#458588"
|
||||
good_bg = "#2c2c2c"
|
||||
good_fg = "#98971a"
|
||||
warning_bg = "#2c2c2c"
|
||||
warning_fg = "#d79921"
|
||||
critical_bg = "#2c2c2c"
|
||||
critical_fg = "#cc241d"
|
||||
separator_bg = "#2c2c2c"
|
||||
separator_fg = "#3c3836"
|
||||
|
||||
[icons]
|
||||
name = "awesome"
|
||||
[icons.overrides]
|
||||
music = ''
|
||||
|
||||
[[block]]
|
||||
block = "music"
|
||||
player = "spotify"
|
||||
buttons = ["play", "next"]
|
||||
hide_when_empty = true
|
||||
dynamic_width = true
|
||||
max_width = 80
|
||||
|
||||
[[block]]
|
||||
block = "disk_space"
|
||||
path = "/home/von"
|
||||
warning = 10.0
|
||||
alert = 5.0
|
||||
format = "~ {available}"
|
||||
|
||||
[[block]]
|
||||
block = "disk_space"
|
||||
path = "/"
|
||||
warning = 10.0
|
||||
alert = 5.0
|
||||
format = "/ {available}"
|
||||
|
||||
[[block]]
|
||||
block = "memory"
|
||||
display_type = "memory"
|
||||
clickable = false
|
||||
format_mem = "{mem_used_percents}"
|
||||
|
||||
[[block]]
|
||||
block = "cpu"
|
||||
interval = 1
|
||||
|
||||
[[block]]
|
||||
block = "load"
|
||||
interval = 1
|
||||
format = "{1m}"
|
||||
|
||||
[[block]]
|
||||
block = "sound"
|
||||
on_click = "pavucontrol"
|
||||
step_width = 2
|
||||
|
||||
[[block]]
|
||||
block = "battery"
|
||||
driver = "sysfs"
|
||||
device = "/sys/class/power_supply/BAT0"
|
||||
format = "{percentage}"
|
||||
full_format = "{percentage}"
|
||||
|
||||
[[block]]
|
||||
block = "networkmanager"
|
||||
on_click = "kitty --class nmtui -e nmtui-connect"
|
||||
device_format = "{icon} {ap}"
|
||||
|
||||
#[[block]]
|
||||
#block = "keyboard_layout"
|
||||
#driver = "sway"
|
||||
|
||||
[[block]]
|
||||
block = "custom"
|
||||
command = "printf '\uf019'"
|
||||
on_click = "screenshot-tool file"
|
||||
interval = 60
|
||||
|
||||
[[block]]
|
||||
block = "custom"
|
||||
command = "printf '\uf0ea'"
|
||||
on_click = "screenshot-tool"
|
||||
interval = 60
|
||||
|
||||
[[block]]
|
||||
block = "time"
|
||||
interval = 5
|
||||
format = "%a %d %R"
|
281
lnx/.config/sway/config
Normal file
281
lnx/.config/sway/config
Normal file
|
@ -0,0 +1,281 @@
|
|||
# Default config for sway
|
||||
#
|
||||
# Copy this to ~/.config/sway/config and edit it to your liking.
|
||||
#
|
||||
# Read `man 5 sway` for a complete reference.
|
||||
|
||||
### Variables
|
||||
#
|
||||
# Logo key. Use Mod1 for Alt.
|
||||
set $mod Mod4
|
||||
# Home row direction keys, like vim
|
||||
set $left h
|
||||
set $down j
|
||||
set $up k
|
||||
set $right l
|
||||
|
||||
set $font Cascadia Code PL 13
|
||||
font pango:Cascadia Code PL 11
|
||||
|
||||
#set $font Fantasque Sans Mono 15
|
||||
#font pango:Fantasque Sans Mono 13
|
||||
|
||||
set $wallpaper /home/von/.wallpaper
|
||||
|
||||
default_border pixel
|
||||
default_floating_border pixel
|
||||
|
||||
seat seat0 xcursor_theme Vanilla-DMZ
|
||||
|
||||
### Output configuration
|
||||
#
|
||||
# Default wallpaper (more resolutions are available in /usr/share/backgrounds/sway/)
|
||||
output * bg $wallpaper fill
|
||||
|
||||
### Dynamic display configuration
|
||||
exec kanshi
|
||||
exec_always pkill kanshi; exec kanshi
|
||||
#output eDP-1 position 0,0 scale 1
|
||||
#output DP-1 scale 1.5
|
||||
#
|
||||
# Example configuration:
|
||||
#
|
||||
# output HDMI-A-1 resolution 1920x1080 position 1920,0
|
||||
#
|
||||
# You can get the names of your outputs by running: swaymsg -t get_outputs
|
||||
|
||||
### Idle configuration
|
||||
#
|
||||
# Example configuration:
|
||||
#
|
||||
exec swayidle -w \
|
||||
timeout 300 'swaylock -f -i '$wallpaper \
|
||||
timeout 600 'swaymsg "output * dpms off"' \
|
||||
resume 'swaymsg "output * dpms on"' \
|
||||
before-sleep 'swaylock -f -i '$wallpaper
|
||||
bindsym --to-code $mod+z exec 'swaylock -f -i '$wallpaper
|
||||
#
|
||||
# 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
|
||||
# resumed. It will also lock your screen before your computer goes to sleep.
|
||||
|
||||
### Input configuration
|
||||
#
|
||||
# Example configuration:
|
||||
#
|
||||
# input "2:14:SynPS/2_Synaptics_TouchPad" {
|
||||
# dwt enabled
|
||||
# tap enabled
|
||||
# natural_scroll enabled
|
||||
# middle_emulation enabled
|
||||
# }
|
||||
#
|
||||
# You can get the names of your inputs by running: swaymsg -t get_inputs
|
||||
# Read `man 5 sway-input` for more information about this section.
|
||||
|
||||
### Key bindings
|
||||
#
|
||||
# Basics:
|
||||
#
|
||||
# Start a terminal
|
||||
bindsym --to-code $mod+x exec default-terminal-emulator
|
||||
|
||||
# Kill focused window
|
||||
bindsym --to-code $mod+Shift+c kill
|
||||
|
||||
# Start your launcher
|
||||
bindsym --to-code $mod+d exec bemenu-run -i --fn "$font" --no-exec | xargs swaymsg exec --
|
||||
bindsym --to-code $mod+u exec bemenu-pass -i --fn "$font"
|
||||
|
||||
# Drag floating windows by holding down $mod and left mouse button.
|
||||
# Resize them with right mouse button + $mod.
|
||||
# Despite the name, also works for non-floating windows.
|
||||
# Change normal to inverse to use left mouse button for resizing and right
|
||||
# mouse button for dragging.
|
||||
floating_modifier $mod normal
|
||||
|
||||
# Reload the configuration file
|
||||
bindsym --to-code $mod+Shift+r reload
|
||||
|
||||
# Exit sway (logs you out of your Wayland session)
|
||||
bindsym --to-code $mod+Shift+e exec swaynag -t warning -m 'You pressed the exit shortcut. Do you really want to exit sway? This will end your Wayland session.' -b 'Yes, exit sway' 'swaymsg exit'
|
||||
|
||||
# Screenshot
|
||||
bindsym --to-code $mod+Shift+s exec screenshot-tool
|
||||
#
|
||||
# Moving around:
|
||||
#
|
||||
# Move your focus around
|
||||
bindsym --to-code $mod+$left focus left
|
||||
bindsym --to-code $mod+$down focus down
|
||||
bindsym --to-code $mod+$up focus up
|
||||
bindsym --to-code $mod+$right focus right
|
||||
# Or use $mod+[up|down|left|right]
|
||||
bindsym --to-code $mod+Left focus left
|
||||
bindsym --to-code $mod+Down focus down
|
||||
bindsym --to-code $mod+Up focus up
|
||||
bindsym --to-code $mod+Right focus right
|
||||
|
||||
# Move the focused window with the same, but add Shift
|
||||
bindsym --to-code $mod+Shift+$left move left
|
||||
bindsym --to-code $mod+Shift+$down move down
|
||||
bindsym --to-code $mod+Shift+$up move up
|
||||
bindsym --to-code $mod+Shift+$right move right
|
||||
# Ditto, with arrow keys
|
||||
bindsym --to-code $mod+Shift+Left move left
|
||||
bindsym --to-code $mod+Shift+Down move down
|
||||
bindsym --to-code $mod+Shift+Up move up
|
||||
bindsym --to-code $mod+Shift+Right move right
|
||||
#
|
||||
# Workspaces:
|
||||
#
|
||||
# move to another screen
|
||||
bindsym --to-code $mod+Shift+o move workspace to output left
|
||||
# switch between recent workspaces
|
||||
bindsym --to-code $mod+o workspace back_and_forth
|
||||
# Switch to workspace
|
||||
bindsym --to-code $mod+1 workspace 1
|
||||
bindsym --to-code $mod+2 workspace 2
|
||||
bindsym --to-code $mod+3 workspace 3
|
||||
bindsym --to-code $mod+4 workspace 4
|
||||
bindsym --to-code $mod+5 workspace 5
|
||||
bindsym --to-code $mod+6 workspace 6
|
||||
bindsym --to-code $mod+7 workspace 7
|
||||
bindsym --to-code $mod+8 workspace 8
|
||||
bindsym --to-code $mod+9 workspace 9
|
||||
bindsym --to-code $mod+0 workspace 10
|
||||
# Move focused container to workspace
|
||||
bindsym --to-code $mod+Shift+1 move container to workspace 1
|
||||
bindsym --to-code $mod+Shift+2 move container to workspace 2
|
||||
bindsym --to-code $mod+Shift+3 move container to workspace 3
|
||||
bindsym --to-code $mod+Shift+4 move container to workspace 4
|
||||
bindsym --to-code $mod+Shift+5 move container to workspace 5
|
||||
bindsym --to-code $mod+Shift+6 move container to workspace 6
|
||||
bindsym --to-code $mod+Shift+7 move container to workspace 7
|
||||
bindsym --to-code $mod+Shift+8 move container to workspace 8
|
||||
bindsym --to-code $mod+Shift+9 move container to workspace 9
|
||||
bindsym --to-code $mod+Shift+0 move container to workspace 10
|
||||
# Note: workspaces can have any name you want, not just numbers.
|
||||
# We just use 1-10 as the default.
|
||||
#
|
||||
# Layout stuff:
|
||||
#
|
||||
# You can "split" the current object of your focus with
|
||||
# $mod+b or $mod+v, for horizontal and vertical splits
|
||||
# respectively.
|
||||
bindsym --to-code $mod+b splith
|
||||
bindsym --to-code $mod+v splitv
|
||||
|
||||
# Switch the current container between different layout styles
|
||||
bindsym --to-code $mod+s layout stacking
|
||||
bindsym --to-code $mod+w layout tabbed
|
||||
bindsym --to-code $mod+e layout toggle split
|
||||
|
||||
# Make the current focus fullscreen
|
||||
bindsym --to-code $mod+f fullscreen
|
||||
|
||||
# Toggle the current focus between tiling and floating mode
|
||||
bindsym --to-code $mod+Shift+Return floating toggle
|
||||
|
||||
# Swap focus between the tiling area and the floating area
|
||||
bindsym --to-code $mod+Return focus mode_toggle
|
||||
|
||||
# Move focus to the parent container
|
||||
bindsym --to-code $mod+a focus parent
|
||||
#
|
||||
# Scratchpad:
|
||||
#
|
||||
# Sway has a "scratchpad", which is a bag of holding for windows.
|
||||
# You can send windows there and get them back later.
|
||||
|
||||
# Move the currently focused window to the scratchpad
|
||||
bindsym --to-code $mod+Shift+minus move scratchpad
|
||||
|
||||
# Show the next scratchpad window or hide the focused scratchpad window.
|
||||
# If there are multiple scratchpad windows, this command cycles through them.
|
||||
bindsym --to-code $mod+minus scratchpad show
|
||||
#
|
||||
# Resizing containers:
|
||||
#
|
||||
mode "resize" {
|
||||
# left will shrink the containers width
|
||||
# right will grow the containers width
|
||||
# up will shrink the containers height
|
||||
# down will grow the containers height
|
||||
bindsym --to-code $left resize shrink width 10px
|
||||
bindsym --to-code $down resize grow height 10px
|
||||
bindsym --to-code $up resize shrink height 10px
|
||||
bindsym --to-code $right resize grow width 10px
|
||||
|
||||
# Ditto, with arrow keys
|
||||
bindsym --to-code Left resize shrink width 10px
|
||||
bindsym --to-code Down resize grow height 10px
|
||||
bindsym --to-code Up resize shrink height 10px
|
||||
bindsym --to-code Right resize grow width 10px
|
||||
|
||||
# Return to default mode
|
||||
bindsym --to-code Return mode "default"
|
||||
bindsym --to-code Escape mode "default"
|
||||
}
|
||||
bindsym --to-code $mod+r mode "resize"
|
||||
|
||||
bindsym --to-code XF86AudioRaiseVolume exec "pactl set-sink-volume 0 +5%"
|
||||
bindsym --to-code XF86AudioLowerVolume exec "pactl set-sink-volume 0 -5%"
|
||||
bindsym --to-code XF86AudioMute exec "pactl set-sink-volume 0 0%"
|
||||
|
||||
#
|
||||
# Status Bar:
|
||||
#
|
||||
# Read `man 5 sway-bar` for more information about this section.
|
||||
bar {
|
||||
position top
|
||||
|
||||
# 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
|
||||
status_command "i3status-rs"
|
||||
|
||||
colors {
|
||||
separator #6d0080
|
||||
background #2c2c2c
|
||||
statusline #ffffff
|
||||
# focused_workspace #6d0080 #6d0080 #ffffff
|
||||
# active_workspace #6d0080 #6d0080 #ffffff
|
||||
# inactive_workspace #2c2c2c #2c2c2c #ffffff
|
||||
# urgent_workspace #e68b00 #e68b00 #ffffff
|
||||
}
|
||||
}
|
||||
|
||||
input "type:keyboard" {
|
||||
xkb_layout "us,ru"
|
||||
xkb_variant "altgr-intl,typewriter"
|
||||
xkb_options "grp:win_space_toggle,compose:menu,ctrl:nocaps"
|
||||
}
|
||||
|
||||
input "type:touchpad" {
|
||||
dwt disabled
|
||||
tap disabled
|
||||
natural_scroll disabled
|
||||
click_method clickfinger
|
||||
}
|
||||
|
||||
# rules
|
||||
for_window [app_id="nmtui"] floating enable
|
||||
for_window [app_id="pavucontrol"] floating enable
|
||||
for_window [class="xfreerdp"] floating enable
|
||||
for_window [app_id="zoom"] floating enable
|
||||
for_window [class="^sun-awt"] floating enable
|
||||
for_window [class="java-lang-Thread"] floating enable
|
||||
|
||||
# scratchpad
|
||||
for_window [app_id="keepassxc"] move scratchpad, scratchpad show
|
||||
bindsym --to-code $mod+i [app_id="keepassxc"] scratchpad show
|
||||
|
||||
# other settings
|
||||
workspace_auto_back_and_forth yes
|
||||
focus_wrapping yes
|
||||
|
||||
# autostart
|
||||
exec mako
|
||||
|
||||
include /etc/sway/config.d/*
|
57
lnx/.dunstrc
Normal file
57
lnx/.dunstrc
Normal file
|
@ -0,0 +1,57 @@
|
|||
[global]
|
||||
font = Fira Sans Condensed 10
|
||||
|
||||
allow_markup = yes
|
||||
format = "[%a] <b>%s</b>\n%b"
|
||||
sort = yes
|
||||
indicate_hidden = yes
|
||||
alignment = right
|
||||
bounce_freq = 0
|
||||
show_age_threshold = 60
|
||||
word_wrap = yes
|
||||
ignore_newline = no
|
||||
geometry = "600x5-30+45"
|
||||
shrink = no
|
||||
transparency = 0
|
||||
idle_threshold = 120
|
||||
monitor = 0
|
||||
follow = mouse
|
||||
sticky_history = yes
|
||||
history_length = 20
|
||||
show_indicators = no
|
||||
line_height = 0
|
||||
separator_height = 2
|
||||
padding = 8
|
||||
horizontal_padding = 8
|
||||
separator_color = frame
|
||||
startup_notification = false
|
||||
dmenu = /usr/bin/dmenu -p dunst:
|
||||
browser = /home/von/.local/bin/default-web-browser
|
||||
icon_position = left
|
||||
icon_folders = /usr/share/icons/gnome/16x16/status/:/usr/share/icons/gnome/16x16/devices/
|
||||
max_icon_size = 256
|
||||
|
||||
[frame]
|
||||
width = 1
|
||||
color = "#5F676A"
|
||||
|
||||
[shortcuts]
|
||||
close = ctrl+space
|
||||
close_all = ctrl+shift+space
|
||||
history = ctrl+grave
|
||||
context = ctrl+shift+period
|
||||
|
||||
[urgency_low]
|
||||
background = "#222222"
|
||||
foreground = "#cccccc"
|
||||
timeout = 10
|
||||
|
||||
[urgency_normal]
|
||||
background = "#285577"
|
||||
foreground = "#ffffff"
|
||||
timeout = 10
|
||||
|
||||
[urgency_critical]
|
||||
background = "#900000"
|
||||
foreground = "#ffffff"
|
||||
timeout = 0
|
Loading…
Add table
Add a link
Reference in a new issue