Refactored for i3. Sway is having some issues.

I may end up using i3 for a little bit.
This commit is contained in:
James Patrick 2019-06-16 19:09:46 -04:00
parent ccb3696285
commit 3afd9d05ce
4 changed files with 16 additions and 4 deletions

4
.gitignore vendored
View File

@ -11,6 +11,10 @@
# EMACS # EMACS
emacs/custom.el emacs/custom.el
################################################################################
# i3
i3/config
################################################################################ ################################################################################
# VIM # VIM
vim/backup/* vim/backup/*

View File

@ -18,10 +18,12 @@ set $right l
# Your preferred terminal emulator # Your preferred terminal emulator
set $term kitty set $term kitty
set $menu rofi --show
# Font for window titles. Will also be used by the bar unless a different font # Font for window titles. Will also be used by the bar unless a different font
# is used in the bar {} block below. # is used in the bar {} block below.
font pango:Fira Code 9 font pango:Fira Code 9
# This font is widely installed, provides lots of unicode glyphs, right-to-left # This font is widely installed, provides lots of unicode glyphs, right-to-left
# text rendering and scalability on retina/hidpi displays (thanks to pango). # text rendering and scalability on retina/hidpi displays (thanks to pango).
#font pango:DejaVu Sans Mono 8 #font pango:DejaVu Sans Mono 8
@ -43,7 +45,7 @@ bindsym $mod+Return exec i3-sensible-terminal
bindsym $mod+Shift+q kill bindsym $mod+Shift+q kill
# start dmenu (a program launcher) # start dmenu (a program launcher)
bindsym $mod+d exec dmenu_run bindsym $mod+d exec $menu
# There also is the (new) i3-dmenu-desktop which only displays applications # There also is the (new) i3-dmenu-desktop which only displays applications
# shipping a .desktop file. It is a wrapper around dmenu, so you need that # shipping a .desktop file. It is a wrapper around dmenu, so you need that
# installed. # installed.
@ -174,5 +176,3 @@ bindsym $mod+r mode "resize"
bar { bar {
status_command i3status status_command i3status
} }
include autostart

View File

@ -9,14 +9,22 @@ init:
ifeq ($(call cmd_exist,i3), true) ifeq ($(call cmd_exist,i3), true)
$(info => Setting up i3) $(info => Setting up i3)
$(mk_link) $(SRC) $(TARGET) $(mk_link) $(SRC) $(TARGET)
else
$(report) warn "i3 not installed."
endif endif
update: update:
ifeq ($(call cmd_exist,i3-msg), true) ifeq ($(call cmd_exist,i3-msg), true)
$(info => Reloading i3-msg) $(info => Reloading i3-msg)
$(MAKE) -C $(SRC) build_i3
swaymsg reload ; $(report) "i3 reload" swaymsg reload ; $(report) "i3 reload"
else
$(report) warn "i3 not installed."
endif endif
remove: remove:
$(info => Remvoing sway) $(info => Remvoing sway)
$(rm_link) $(TARGET) $(rm_link) $(TARGET)
build_i3:
cat $(SRC)/config.d/* > $(SRC)/config