aboutsummaryrefslogtreecommitdiff
path: root/.config
diff options
context:
space:
mode:
authorAnInternetTroll <lucafulger@gmail.com>2022-06-05 18:44:14 +0000
committerAnInternetTroll <lucafulger@gmail.com>2022-06-05 18:44:14 +0000
commit32bfefb810b16920b2882e638045959991b46aa6 (patch)
tree6b645c688ce24d4c082dec6b401814e024ec387c /.config
parent720b6cf512a6b60aae4fcf1a4c14d3a5c2b1b3c0 (diff)
downloaddotfiles-32bfefb810b16920b2882e638045959991b46aa6.tar
dotfiles-32bfefb810b16920b2882e638045959991b46aa6.tar.gz
dotfiles-32bfefb810b16920b2882e638045959991b46aa6.tar.bz2
dotfiles-32bfefb810b16920b2882e638045959991b46aa6.tar.lz
dotfiles-32bfefb810b16920b2882e638045959991b46aa6.tar.xz
dotfiles-32bfefb810b16920b2882e638045959991b46aa6.tar.zst
dotfiles-32bfefb810b16920b2882e638045959991b46aa6.zip
Minor updates
Diffstat (limited to '.config')
-rwxr-xr-x.config/bspwm/bspwmrc5
-rw-r--r--.config/nvim/init.lua6
-rwxr-xr-x.config/sway/clamshell.sh9
-rw-r--r--.config/sway/config24
-rw-r--r--.config/waybar/config1
5 files changed, 35 insertions, 10 deletions
diff --git a/.config/bspwm/bspwmrc b/.config/bspwm/bspwmrc
index 891ca0d..50be079 100755
--- a/.config/bspwm/bspwmrc
+++ b/.config/bspwm/bspwmrc
@@ -5,7 +5,6 @@ export SXHKD_SHELL=sh
pgrep -x sxhkd > /dev/null || sxhkd &
$HOME/.config/polybar/launch.sh &
feh --auto-reload --bg-fill /usr/share/backgrounds/background.png &
-xrandr --output HDMI1 --auto --same-as eDP1 --mode 1920x1080 &
dunst &
/usr/lib/polkit-gnome/polkit-gnome-authentication-agent-1 &
@@ -30,7 +29,11 @@ xinput --set-prop $TID 'libinput Natural Scrolling Enabled' 1 &
#xinput set-prop ${TID} ${PROP_NO} -106 -106
#bspc monitor -d I II III IV V VI VII VIII IX X
+xrandr --output eDP1 --primary --auto
+xrandr --output HDMI1 --same-as eDP1 --auto
bspc monitor -d 1 2 3 4 5 6 7 8 9 10
+#bspc monitor eDP1 -d 1 2 3 4 5
+#bspc monitor HDMI1 -s -d 6 7 8 9 10
bspc config border_width 2
bspc config window_gap 12
diff --git a/.config/nvim/init.lua b/.config/nvim/init.lua
index 65b7139..cc2c80b 100644
--- a/.config/nvim/init.lua
+++ b/.config/nvim/init.lua
@@ -10,7 +10,7 @@ if fn.empty(fn.glob(install_path)) > 0 then
end
vim.api.nvim_set_option("mouse", "a")
-vim.api.nvim_command("set number relativenumber cursorline")
+vim.api.nvim_command("set number relativenumber")
-- Comment the following lines to disable whitespace characters
vim.opt.list = true
@@ -144,8 +144,10 @@ return require("packer").startup(function(use)
use {
"https://github.com/lukas-reineke/indent-blankline.nvim",
+ setup = function()
+ vim.api.nvim_set_option("termguicolors", true)
+ end,
config = function()
- vim.opt.termguicolors = true
vim.cmd [[highlight IndentBlanklineIndent1 guifg=#E06C75 gui=nocombine]]
vim.cmd [[highlight IndentBlanklineIndent2 guifg=#E5C07B gui=nocombine]]
vim.cmd [[highlight IndentBlanklineIndent3 guifg=#98C379 gui=nocombine]]
diff --git a/.config/sway/clamshell.sh b/.config/sway/clamshell.sh
new file mode 100755
index 0000000..b5b9388
--- /dev/null
+++ b/.config/sway/clamshell.sh
@@ -0,0 +1,9 @@
+#!/usr/bin/env sh
+
+laptop_screen=eDP-1
+
+if grep -q open /proc/acpi/button/lid/LID/state; then
+ swaymsg output $laptop_screen enable
+else
+ swaymsg output $laptop_screen disable
+fi
diff --git a/.config/sway/config b/.config/sway/config
index af9926b..933acfd 100644
--- a/.config/sway/config
+++ b/.config/sway/config
@@ -43,6 +43,7 @@ set $text-color #f8f8f2
set $selection-color #44475a
# set $accent-color $color12
set $accent-color #ffffff
+set $laptop_screen eDP-1
# Basic color configuration using the Base16 variables for windows and borders.
# Property Name Border BG Text Indicator Child Border
@@ -61,7 +62,7 @@ set $term $(which foot || which alacritty)
# Note: pass the final command to swaymsg so that the resulting window can be opened
# on the original workspace that the command was run on.
set $menu wofi --show drun -Iai -w 3
-#set $screenshot grim /dev/stdout | wl-copy
+set $screenshot_fullscreen grim /dev/stdout | wl-copy
set $screenshot slurp \
| grim -l 0 -g - /dev/stdout \
| wl-copy
@@ -75,10 +76,11 @@ set $toggle_bar killall -SIGUSR1 waybar
#
# Default wallpaper (more resolutions are available in /usr/share/backgrounds/sway/)
output * bg /usr/share/backgrounds/background.png fill
-output eDP-1 scale 1
-output eDP-1 adaptive_sync on
-output eDP-1 pos 0 0
-output HDMI-1 pos 0 0
+output eDP-1 pos 1920 0
+output HDMI-A-1 pos 0 0
+
+bindswitch --reload --locked lid:on output $laptop_screen disable
+bindswitch --reload --locked lid:off output $laptop_screen enable
# You can get the names of your outputs by running: swaymsg -t get_outputs
### Idle configuration
@@ -92,7 +94,7 @@ exec swayidle -w \
before-sleep 'swaylock -f -c 000000'
### Input configuration
-input "2821:6228:Asus_Keyboard" xkb_layout us,no,ro
+input "2821:6228:Asus_Keyboard" xkb_layout us,no
# 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.
@@ -111,6 +113,7 @@ input "2821:6228:Asus_Keyboard" xkb_layout us,no,ro
# Screenshot
bindsym $mod+Shift+s exec $screenshot
+ bindsym Print exec $screenshot_fullscreen
# Lock screen
bindsym $mod+x exec $lock
@@ -121,6 +124,12 @@ input "2821:6228:Asus_Keyboard" xkb_layout us,no,ro
bindsym --locked XF86MonBrightnessDown exec brightnessctl set 5%-
bindsym --locked XF86MonBrightnessUp exec brightnessctl set 5%+
+ # Turn off screen
+ bindsym --locked XF86DisplayOff output $laptop_screen toggle
+
+ # Disable touchpad(s)
+ bindsym --locked XF86TouchpadToggle input "type:touchpad" events toggle
+
# Volume keys
bindsym --locked XF86AudioMute exec pactl set-sink-mute @DEFAULT_SINK@ toggle
bindsym --locked XF86AudioLowerVolume exec pactl set-sink-volume @DEFAULT_SINK@ -5%
@@ -284,6 +293,9 @@ input "type:touchpad" {
pointer_accel 0.5 # set mouse sensitivity (between -1 and 1)
}
+output $laptop_screen enable
+
+exec_always $HOME/.config/sway/clamshell.sh
exec dbus-update-activation-environment --systemd DISPLAY WAYLAND_DISPLAY SWAYSOCK
exec dunst
exec nm-applet --indicator
diff --git a/.config/waybar/config b/.config/waybar/config
index 3b274a6..31ff2ae 100644
--- a/.config/waybar/config
+++ b/.config/waybar/config
@@ -20,7 +20,6 @@
"pulseaudio",
"backlight",
"battery",
- "battery#bat2",
//"network",
"cpu",
"memory",