Cleanup i3 config
This commit is contained in:
@@ -11,12 +11,12 @@ floating_modifier $mod
|
|||||||
workspace_layout stacking
|
workspace_layout stacking
|
||||||
|
|
||||||
### keybinds for starting
|
### keybinds for starting
|
||||||
bindsym $mod+Return exec alacritty
|
bindsym $mod+Return exec --no-startup-id alacritty
|
||||||
bindsym Ctrl+Return exec xterm
|
bindsym Ctrl+Return exec --no-startup-id xterm
|
||||||
bindsym $mod+d exec --no-startup-id dmenu_run
|
bindsym $mod+d exec --no-startup-id dmenu_run
|
||||||
bindsym $mod+e exec "emacsclient -c"
|
bindsym $mod+e exec --no-startup-id "emacsclient -c"
|
||||||
bindsym $mod+Ctrl+e exec "emacsclient --eval '(emacs-everywhere)'"
|
bindsym $mod+Ctrl+e exec --no-startup-id "emacsclient --eval '(emacs-everywhere)'"
|
||||||
bindsym $mod+Shift+s exec "flameshot gui"
|
bindsym $mod+Shift+s exec --no-startup-id "flameshot gui"
|
||||||
|
|
||||||
### keybinds for moving windows
|
### keybinds for moving windows
|
||||||
bindsym $mod+Shift+q kill
|
bindsym $mod+Shift+q kill
|
||||||
@@ -83,11 +83,11 @@ bindsym $mod+Shift+c reload
|
|||||||
bindsym $mod+Shift+r restart
|
bindsym $mod+Shift+r restart
|
||||||
|
|
||||||
# audio and display control
|
# audio and display control
|
||||||
bindsym XF86AudioMute exec amixer -q set Master toggle
|
bindsym XF86AudioMute exec --no-startup-id amixer -q set Master toggle
|
||||||
bindsym XF86AudioLowerVolume exec --no-startup-id "pactl set-sink-volume @DEFAULT_SINK@ -2%"
|
bindsym XF86AudioLowerVolume exec --no-startup-id "pactl set-sink-volume @DEFAULT_SINK@ -2%"
|
||||||
bindsym XF86AudioRaiseVolume exec --no-startup-id "pactl set-sink-volume @DEFAULT_SINK@ +2%"
|
bindsym XF86AudioRaiseVolume exec --no-startup-id "pactl set-sink-volume @DEFAULT_SINK@ +2%"
|
||||||
bindsym XF86MonBrightnessUp exec light -A 5 # increase screen brightness
|
bindsym XF86MonBrightnessUp exec --no-startup-id light -A 5 # increase screen brightness
|
||||||
bindsym XF86MonBrightnessDown exec light -U 5 # decrease screen brightness
|
bindsym XF86MonBrightnessDown exec --no-startup-id light -U 5 # decrease screen brightness
|
||||||
|
|
||||||
# styling
|
# styling
|
||||||
new_window none
|
new_window none
|
||||||
@@ -128,4 +128,16 @@ client.unfocused #f2e5bc #f2e5bc #282828 #fbf1c7 #f2e5bc
|
|||||||
client.urgent #cc241d #fb4934 #282828 #cc241d #fb4934
|
client.urgent #cc241d #fb4934 #282828 #cc241d #fb4934
|
||||||
|
|
||||||
# startup
|
# startup
|
||||||
exec $HOME/.xinitrc
|
exec --no-startup-id "fcitx5 -d &"
|
||||||
|
exec --no-startup-id "nextcloud &"
|
||||||
|
exec --no-startup-id "nm-applet &"
|
||||||
|
exec --no-startup-id "dunst &"
|
||||||
|
|
||||||
|
# set screens
|
||||||
|
exec --no-startup-id $HOME/.screenlayout/layout.sh
|
||||||
|
|
||||||
|
# set wallpaper
|
||||||
|
exec --no-startup-id $HOME/scripts/wallpaper.sh
|
||||||
|
|
||||||
|
# set X things
|
||||||
|
exec --no-startup-id "xrdb -merge $HOME/.Xresources"
|
||||||
@@ -4,7 +4,7 @@
|
|||||||
path=$(pwd)
|
path=$(pwd)
|
||||||
|
|
||||||
# --- home --- #
|
# --- home --- #
|
||||||
home_files="scripts .bashrc .zshrc .gitconfig .tmux.conf .vimrc .Xresources .xinitrc .profile"
|
home_files="scripts .bashrc .zshrc .gitconfig .tmux.conf .vimrc .Xresources .profile"
|
||||||
|
|
||||||
for file in $home_files
|
for file in $home_files
|
||||||
do
|
do
|
||||||
|
|||||||
@@ -1,5 +0,0 @@
|
|||||||
#!/bin/sh
|
|
||||||
|
|
||||||
timedatectl set-timezone Europe/Berlin
|
|
||||||
timedatectl set-ntp 1
|
|
||||||
sudo hwclock --systohc
|
|
||||||
@@ -1,23 +1,4 @@
|
|||||||
#!/bin/bash
|
#!/bin/sh
|
||||||
# Executed by startx
|
|
||||||
|
|
||||||
userresources=$HOME/.Xresources
|
|
||||||
usermodmap=$HOME/.Xmodmap
|
|
||||||
|
|
||||||
# merge in defaults and keymaps
|
|
||||||
if [ -f "$userresources" ]; then
|
|
||||||
xrdb -merge "$userresources"
|
|
||||||
fi
|
|
||||||
|
|
||||||
if [ -f "$usermodmap" ]; then
|
|
||||||
xmodmap "$usermodmap"
|
|
||||||
fi
|
|
||||||
|
|
||||||
# start programs
|
|
||||||
fcitx5 -d &
|
|
||||||
nextcloud &
|
|
||||||
nm-applet &
|
|
||||||
dunst &
|
|
||||||
|
|
||||||
# desktop or laptop?
|
# desktop or laptop?
|
||||||
if [ `hostname` == "nazarick" ];then
|
if [ `hostname` == "nazarick" ];then
|
||||||
Reference in New Issue
Block a user