Browse Source

update configs for devuan setup

bc 3 years ago
parent
commit
43c9e16e9b

+ 0 - 6
.fishrc

@@ -1,6 +0,0 @@
-fish_vi_key_bindings
-alias push 'sh ./push.sh'
-alias pull 'sh ./pull.sh'
-alias asc2mid 'sh ~/midi2asc2midi/asc2mid.out'
-alias mid2asc 'sh ~/midi2asc2midi/mid2asc.out'
-alias redgui 'sh wine /home/bc/red/red-063.exe'

+ 0 - 3
.profile

@@ -1,3 +0,0 @@
-eval `ssh-agent -s`
-ssh-add ~/.ssh/id_rsa_github
-exec startx

+ 1 - 6
.vimrc

@@ -53,12 +53,7 @@ set diffopt+=iwhite
 filetype plugin on
 set omnifunc=syntaxcomplete#Complete
 
-"colorscheme zellner
-"available in the void-package vim-colorschemes
-"colorscheme gentooish
-"colorscheme holokai
-"colorscheme maui "the line numbers here are terribly faint
-colorscheme elda
+colorscheme zellner
 
 "always underline spelling errors instead of making their background red
 hi clear SpellBad

+ 8 - 0
devuan_setup/.profile

@@ -0,0 +1,8 @@
+eval `ssh-agent -s`
+ssh-add ~/.ssh/id_rsa_github
+
+export EDITOR=vi
+export XKB_DEFAULT_LAYOUT=de
+export MOZ_ENABLE_WAYLAND=1
+
+sway

+ 24 - 31
i3_config → devuan_setup/config/sway/config

@@ -13,7 +13,7 @@ floating_modifier $Mod
 
 # kill focused window
 bindsym $Mod+Shift+q kill
-bindsym Mod1+F4 kill
+bindsym Mod1+F4 exec "swaynag -t warning -m '' -B 'Poweroff' 'sudo poweroff' -B 'Reboot' 'sudo reboot'"
 
 # change focus
 bindsym $Mod+$left focus left
@@ -56,22 +56,6 @@ bindsym $Mod+Shift+w layout toggle split
 # 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
-
-# move the currently focused window to the scratchpad
-bindsym $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 $Mod+minus scratchpad show
-
 # switch to workspace
 bindsym $Mod+1 workspace 1
 bindsym $Mod+2 workspace 2
@@ -122,24 +106,30 @@ mode "resize" {
 		bindsym Escape mode "default"
 }
 
+#device specifig config
+input 1:1:AT_Translated_Set_2_keyboard {
+	xkb_layout de
+}
+
+input 1267:12299:ELAN0501:00_04F3:300B_Touchpad {
+	tap enabled
+	natural_scroll disabled
+	dwt enabled
+}
+
 bindsym $Mod+r mode "resize"
 # reload the configuration file
 bindsym $Mod+Shift+c reload
-# restart i3 inplace (preserves your layout/session, can be used to upgrade i3)
+# restart sway inplace (preserves your layout/session, can be used to upgrade sway)
 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'"
+bindsym $Mod+Space exec "wofi -S run"
+# exit sway
+bindsym $Mod+Shift+e exec "swaynag -t warning -m 'You pressed the exit shortcut. Do you really want to exit sway? This will end your sway session.' -b 'Yes, exit sway' 'swaymsg exit'"
 
 # PROGRAM SHORTCUTS
-# bindsym $Mod+Return exec i3-sensible-terminal
-bindsym $Mod+Shift+Return exec xterm
-bindsym $Mod+Return exec st
-bindsym $Mod+Shift+f exec firefox
-bindsym $Mod+Shift+m exec midori
-bindsym $Mod+e exec pcmanfm
+bindsym $Mod+Return exec foot
+#bindsym $Mod+e exec pcmanfm
 bindsym Print exec flameshot gui
-bindsym --release Pause exec slock
-bindsym $Mod+Shift+s exec ~/scripts/autoconnect_workspace.sh
 
 # VOLUME
 bindsym XF86AudioRaiseVolume exec amixer sset Master 5+
@@ -148,12 +138,15 @@ bindsym XF86AudioMute exec amixer sset Master toggle
 
 # just some cosmetic options
 
-new_window 1pixel
+#client.default_window pixel
 #class				border  backgr. text    indicator child_border
 client.background	#222222 #222222
 client.focused		#33DD33 #222222 #FFFFFF #33DD33 #33DD33
+#default_window		pixel
+
+for_window [app_id="connman-gtk"] floating enable
 
 # AUTOSTART
-exec i3-msg 'workspace 1; exec firefox'; sleep 1; exec i3-msg 'workspace 2; exec st'
-exec ~/scripts/autoconnect_workspace.sh
+#exec i3-msg 'workspace 1; exec firefox'; sleep 1; exec i3-msg 'workspace 2; exec st'
+#exec ~/scripts/autoconnect_workspace.sh
 

+ 22 - 0
devuan_setup/config/wofi/style.css

@@ -0,0 +1,22 @@
+window {
+	background: transparent;
+}
+
+#input {
+	background: #222;
+	color: #FFF;
+}
+
+#inner-box {
+	background: #222;
+	color: #FFF;
+}
+
+#outer-box {
+}
+
+#scroll {
+}
+
+#text {
+}

+ 34 - 0
devuan_setup/setup_system.sh

@@ -0,0 +1,34 @@
+#!/bin/bash
+
+#the bare essentials
+apt install -y vim
+~/dotfiles/setup-vim.sh
+apt install -y git
+
+#window manager
+apt install -y sway
+apt install -y swaybg
+mkdir -p .config/sway
+ln -s ~/dotfiles/devuan_setup/config/sway/config ~/.config/sway/config
+rm -rf ~/.profile
+ln -s ~/dotfiles/devuan_setup/.profile ~/.profile
+
+#let there be sound!
+apt install -y alsa-utils
+
+#launcher
+apt install -y wofi
+mkdir -p .config/wofi
+ln -s ~/dotfiles/devuan_setup/config/wofi/style.css ~/.config/wofi/style.css
+
+#wifi and bluetooth
+apt install -y connman-gtk
+
+#actual programs
+apt install -y firefox-esr
+apt install -y inkscape
+apt install -y flameshot
+apt install -y thunar
+
+apt install -y docker
+apt install -y docker-compose

+ 2 - 3
setup-vim.sh

@@ -1,12 +1,11 @@
 #!/bin/bash
 ln -s ~/dotfiles/.vimrc ~/.vimrc
-mkdir ~/.vim
-mkdir ~/.vim/plugin
+mkdir -p ~/.vim/plugin
 mkdir ~/.vim/undofiles
 mkdir ~/.vim/swapfiles
 mkdir ~/.vim/sessions
 
-ln -s ~/dotfiles/.vim/ftplugin ~/.vim/
+ln -s ~/dotfiles/vim/ftplugin ~/.vim/
 
 #install all the plugins
 cd ~/.vim/plugin

+ 0 - 0
.vim/ftplugin/css.vim → vim/ftplugin/css.vim


+ 0 - 0
.vim/ftplugin/php.vim → vim/ftplugin/php.vim


+ 0 - 0
.vim/ftplugin/plan.vim → vim/ftplugin/plan.vim


+ 0 - 0
.vim/ftplugin/python.vim → vim/ftplugin/python.vim


+ 0 - 0
.vim/ftplugin/scss.vim → vim/ftplugin/scss.vim


+ 0 - 0
.vim/ftplugin/tsv.vim → vim/ftplugin/tsv.vim


+ 0 - 0
.vim/ftplugin/twig.vim → vim/ftplugin/twig.vim


+ 0 - 0
.vim/ftplugin/txt.vim → vim/ftplugin/txt.vim