aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorlonkaars <l.leblansch@gmail.com>2020-11-22 22:20:58 +0100
committerlonkaars <l.leblansch@gmail.com>2020-11-22 22:20:58 +0100
commit54414f398812a0e37087981c3a0009bc9408c939 (patch)
treef4a134c0d73726e4c243db80f0232e10636c4161
parentdf4c8cf303c6722503d89e312702fe53a8823106 (diff)
i3 autostart fix/update
-rw-r--r--.config/i3/autostart12
-rw-r--r--.config/i3/config12
-rw-r--r--.config/i3/config.backup140
-rw-r--r--.config/rofi/config.rasi4
-rw-r--r--.config/xbindkeys/delay3
-rw-r--r--.config/xbindkeys/main4
-rwxr-xr-x.xprofile3
7 files changed, 20 insertions, 158 deletions
diff --git a/.config/i3/autostart b/.config/i3/autostart
new file mode 100644
index 0000000..8abfb4c
--- /dev/null
+++ b/.config/i3/autostart
@@ -0,0 +1,12 @@
+#!/bin/sh
+polybar main -c ~/.config/polybar/config &
+node ~/.local/share/bin/pywal/wall.js &
+picom -b
+xbanish &
+redshift &
+dunst &
+flashfocus &
+xset r rate 250 40
+autocutsel &
+zsh -c "source ~/.zshrc && xbindkeys -f ~/.config/xbindkeys/main"
+
diff --git a/.config/i3/config b/.config/i3/config
index fdbc394..312f2e3 100644
--- a/.config/i3/config
+++ b/.config/i3/config
@@ -37,17 +37,7 @@ bindsym $mod+n gaps inner current set -1; gaps outer current set 0
bindsym $mod+d gaps inner current set $inner_gaps; gaps outer current set $outer_gaps;
# Autostart
-exec "polybar main -c ~/.config/polybar/config &"
-exec "node ~/.local/share/bin/pywal/wall.js &"
-exec "picom -b"
-exec "xbanish &"
-exec "redshift &"
-exec "dunst &"
-exec "flashfocus &"
-exec "xset r rate 250 40"
-exec "autocutsel &"
-exec "xbindkeys -f ~/.config/xbindkeys/main"
-exec "xbindkeys -f ~/.config/xbindkeys/delay"
+exec "sh ~/.config/i3/autostart"
# split in horizontal orientation
bindsym $mod+bar split h
diff --git a/.config/i3/config.backup b/.config/i3/config.backup
deleted file mode 100644
index 4d3a098..0000000
--- a/.config/i3/config.backup
+++ /dev/null
@@ -1,140 +0,0 @@
-# variables
-set $mod Mod4
-set $inner_gaps 10
-set $outer_gaps 0
-set $polybar_gap 30
-
-# set gaps
-gaps inner $inner_gaps
-gaps outer $outer_gaps
-
-# border color
-# pywal-start
-client.focused #4c7899 #285577 #ffffff #2e9ef4 #285577
-client.focused_inactive #333333 #5f676a #ffffff #484e50 #5f676a
-client.unfocused #333333 #222222 #888888 #292d2e #222222
-client.urgent #2f343a #900000 #ffffff #900000 #900000
-client.placeholder #000000 #0c0c0c #ffffff #000000 #0c0c0c
-
-client.background #ffffff
-# pywal-end
-
-# font
-font pango:Fira Code 9
-
-# no idea what these do but they were in here by default
-exec --no-startup-id xss-lock --transfer-sleep-lock -- i3lock --nofork
-exec --no-startup-id nm-applet
-set $refresh_i3status killall -SIGUSR1 i3status
-
-# Voulme keybinds
-bindsym XF86AudioRaiseVolume exec --no-startup-id pactl set-sink-volume @DEFAULT_SINK@ +5% && $refresh_i3status
-bindsym XF86AudioLowerVolume exec --no-startup-id pactl set-sink-volume @DEFAULT_SINK@ -5% && $refresh_i3status
-bindsym XF86AudioMute exec --no-startup-id pactl set-sink-mute @DEFAULT_SINK@ toggle && $refresh_i3status
-
-# window interactions
-floating_modifier $mod
-bindsym $mod+q kill
-
-# Replace window decorations with a border
-# for_window [class=".*"] border pixel 1
-
-# Keybinds
-bindsym $mod+Escape exec "dm-tool lock"
-bindsym $mod+space exec "rofi -show drun -show-icons"
-bindsym $mod+Return exec konsole
-bindsym Print exec "flameshot gui"
-
-bindsym XF86AudioPlay exec "playerctl play-pause"
-bindsym XF86AudioNext exec "playerctl next"
-bindsym XF86AudioPrev exec "playerctl previous"
-
-# Gaps
-bindsym $mod+i gaps inner current plus 5
-bindsym $mod+Shift+i gaps inner current minus 5
-bindsym $mod+o gaps outer current plus 5
-bindsym $mod+Shift+o gaps outer current minus 5
-bindsym $mod+n gaps inner current set -1; gaps outer current set 0
-bindsym $mod+d gaps inner current set $inner_gaps; gaps outer current set $outer_gaps;
-bindsym $mod+p gaps top current set $polybar_gap
-
-# Autostart
-exec "polybar main -c ~/.config/polybar/config.ini &"
-exec "node ~/scripts/pywal/wall.js"
-exec "exec picom &"
-
-exec "deadd-notification-center &"
-
-exec "node ~/pester/index.js &"
-exec "flameshot &"
-exec "dropbox &"
-# exec "teams &"
-
-# change focus
-bindsym $mod+h focus left
-bindsym $mod+j focus down
-bindsym $mod+k focus up
-bindsym $mod+l 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
-
-# resize focused window
-bindsym $mod+bracketright resize grow height 10 px
-bindsym $mod+bracketleft resize shrink height 10 px
-bindsym $mod+period resize grow width 10 px
-bindsym $mod+comma resize shrink width 10 px
-
-# split in horizontal orientation
-bindsym $mod+bar split h
-bindsym $mod+minus split v
-
-# enter fullscreen mode for the focused container
-bindsym $mod+f fullscreen toggle
-
-# toggle tiling / floating
-bindsym $mod+Shift+space floating toggle
-
-# change focus between tiling / floating windows
-# bindsym $mod+space focus mode_toggle
-
-# focus the parent container
-bindsym $mod+a focus parent
-
-# focus the child container
-#bindsym $mod+d focus child
-
-# workspaces
-set $ws1 "1"
-set $ws2 "2"
-set $ws3 "3"
-set $ws4 "4"
-
-# switch to workspace
-bindsym $mod+1 workspace number $ws1
-bindsym $mod+2 workspace number $ws2
-bindsym $mod+3 workspace number $ws3
-bindsym $mod+4 workspace number $ws4
-
-# move focused container to workspace
-bindsym $mod+Shift+1 move container to workspace number $ws1
-bindsym $mod+Shift+2 move container to workspace number $ws2
-bindsym $mod+Shift+3 move container to workspace number $ws3
-bindsym $mod+Shift+4 move container to workspace number $ws4
-
-# reload the configuration file
-bindsym $mod+Shift+c reload
-# restart i3 inplace (preserves your layout/session, can be used to upgrade i3)
-bindsym $mod+Shift+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'"
-
-bar {
- mode hide
- hidden_state hide
- modifier none
- tray_output none
-}
diff --git a/.config/rofi/config.rasi b/.config/rofi/config.rasi
index 7722430..92e7aa5 100644
--- a/.config/rofi/config.rasi
+++ b/.config/rofi/config.rasi
@@ -1,6 +1,6 @@
configuration {
modi: "drun,run,window,ssh";
- lines: 7;
+ lines: 4;
font: "JetBrainsMono NF 10";
matching: "fuzzy";
separator-style: "none";
@@ -18,7 +18,7 @@ configuration {
width: 450;
line-padding: 5;
line-margin: 5;
- --padding: 16px;
+ --padding: 12px;
}
inputbar {
diff --git a/.config/xbindkeys/delay b/.config/xbindkeys/delay
deleted file mode 100644
index 14bf011..0000000
--- a/.config/xbindkeys/delay
+++ /dev/null
@@ -1,3 +0,0 @@
-"sh -c addtoqueue"
- Mod4 + a
-
diff --git a/.config/xbindkeys/main b/.config/xbindkeys/main
index e2fe03b..638fe44 100644
--- a/.config/xbindkeys/main
+++ b/.config/xbindkeys/main
@@ -2,7 +2,7 @@
Mod4 + Escape
"polybar-msg cmd toggle"
Mod4 + b
-"rofi -show drun -show-icons"
+"rofi -show drun"
Mod4 + space
"st"
Mod4 + Return
@@ -10,6 +10,8 @@
Mod4 + p
"maim -usb 4 -c 255,255,255 | xclip -selection clipboard -t image/png"
Print
+"sh -c addtoqueue"
+ Mod4 + a
diff --git a/.xprofile b/.xprofile
index 9395f1e..6e4990e 100755
--- a/.xprofile
+++ b/.xprofile
@@ -1,10 +1,11 @@
+#!/bin/zsh
systemctl --user import-environment DISPLAY
export _JAVA_AWT_WM_NONREPARENTING=1
export TZ='Europe/Amsterdam'
/usr/lib/polkit-gnome/polkit-gnome-authentication-agent-1 &
-exec xrdb /home/loek/.config/X11/Xresources &
+xrdb /home/loek/.config/X11/Xresources &
autocutsel &
i3