Update docs, refine keybindings

Added basic keybinding docs
Added forword-word and backword-word bindings
This commit is contained in:
SolidHal 2018-10-02 19:47:47 +00:00
parent 64b21e6b47
commit 99a5d8ef23
7 changed files with 172 additions and 80 deletions

View File

@ -1,2 +1,4 @@
SolidHal (find me on github, or send me a message in a bottle, emails kinda lame) SolidHal (hal@halemmerich.com)
With spcial thanks to:
Dima Krasner (dima@dimakrasner.com) Dima Krasner (dima@dimakrasner.com)
- The core of filesystem and kernel building for the c201 is based on his work with devsus

52
DOCUMENTATION.md Normal file
View File

@ -0,0 +1,52 @@
# PrawnOS Documentation
Some additional documentation for PrawnOS that wouldn't fit in the README
## Useful XFCE4 keybindings and libinput-gestures:
### Gestures:
#### Config file: /etc/libinput-gestures.conf
* four finger swipe left: Switch to left workspace
* four finger swipe right: Switch to right worksace
### Keybindings
#### Configure under Settings->Window Manager->Keyboard
* control+alt+left: move window to left workspace
* control+alt+right: move window to right workspace
* control+left: tile widow to the left
* control+right: tile window to the right
* control+up: maximize window
* alt+tab: app switcher
#### Configure under Settings->Keyboard->Application Shortcuts
* alt+space : App launcher (spotlight-esque)
* control+alt+l: Lock screen
* Brightness scripts are also called here and can be remapped here or in ~/.Xmodmap
#### Configured using ~/.Xmodmap
* "search" key: Mode switch aka m_s (function key)
* m_s + backspace: delete
* m_s + up: page up
* m_s + down: page down
* m_s + left: home
* m_s + right: end
* m_s + period: insert
* "brightness up key": increase backlight
* "brightness down key": decrease backlight
* "volume mute": mute volume
* "volume down": decrease volume
* "volume up": increase volume
* m_s + "brightness up key": F7
* m_s + "brightness down key": F6
* m_s + "volume mute key": F8
* m_s + "volume down key": F9
* m_s + "volume up key": F10
#### Configured using ~/.xinputrc
* alt+left left a word
* alt+right right a word

View File

@ -83,6 +83,10 @@ When that finishes, you should have access to the internet.
Congratulations! Your computer is now a Prawn! https://sprorgnsm.bandcamp.com/track/the-prawn-song Congratulations! Your computer is now a Prawn! https://sprorgnsm.bandcamp.com/track/the-prawn-song
### Documentation
Some useful things can be found in ``DOCUMENTATION.md`
### Make options, developer tools ### Make options, developer tools
(ALl of these should be ran as root or with sudo to avoid issues) (ALl of these should be ran as root or with sudo to avoid issues)
The makefile automates many processes that make debuggung the kernel or the filesystem easier. The makefile automates many processes that make debuggung the kernel or the filesystem easier.

View File

@ -1,12 +0,0 @@
#!/bin/sh -xe
#Build everything
#Get sudo
sudo echo "Thanks."
#Build kernel WITHOUT SUDO, building the kernel with sudo is bad practice
#Once, sometime in the kernel version 2 days building the kernel with sudo broke the
#The system it was built on
./scripts/buildKernel.sh
#build os WITH sudo, debootstrap requires sudo
sudo ./scripts/buildDebianFs.sh

View File

@ -0,0 +1,43 @@
# Make Tab autocomplete regardless of filename case
set completion-ignore-case on
# List all matches in case multiple possible completions are possible
set show-all-if-ambiguous on
# Immediately add a trailing slash when autocompleting symlinks to directories
set mark-symlinked-directories on
# Show all autocomplete results at once
set page-completions off
# If there are more than 200 possible completions for a word, ask to show them all
set completion-query-items 100
# Show extra file information when completing, like `ls -F` does
set visible-stats on
# Be more intelligent when autocompleting by also looking at the text after
# the cursor. For example, when the current line is "cd ~/src/mozil", and
# the cursor is on the "z", pressing Tab will not autocomplete it to "cd
# ~/src/mozillail", but to "cd ~/src/mozilla". (This is supported by the
# Readline used by Bash 4.)
set skip-completed-text on
# This line sets readline to display possible completions using different colors to indicate their file types.
# The colors are determined by the environmental variable LS_COLORS, which can be nicely configured.
set colored-stats On
# This line sets the completions to be listed immediately instead of ringing
# the bell, when the completing word has more than one possible completion.
set show-all-if-ambiguous On
# This line sets the completions to be listed immediately instead of ringing the bell,
# when the completing word has more than one possible completion but no partial completion can be made.
set show-all-if-unmodified On
## enable Alt-arrows for word jumping
"\e[1;3D": backward-word ### Alt left
"\e[1;3C": forward-word ### Alt right

View File

@ -19,24 +19,24 @@
<property name="XF86Mail" type="empty"/> <property name="XF86Mail" type="empty"/>
</property> </property>
<property name="custom" type="empty"> <property name="custom" type="empty">
<property name="&lt;Alt&gt;F3" type="string" value="xfce4-appfinder"> <property name="&lt;Alt&gt;F3" type="empty">
<property name="startup-notify" type="bool" value="true"/> <property name="startup-notify" type="empty"/>
</property> </property>
<property name="&lt;Alt&gt;F1" type="string" value="xfce4-popup-applicationsmenu"/> <property name="&lt;Alt&gt;F1" type="empty"/>
<property name="&lt;Alt&gt;F2" type="empty"> <property name="&lt;Alt&gt;F2" type="empty">
<property name="startup-notify" type="bool" value="true"/> <property name="startup-notify" type="empty"/>
</property> </property>
<property name="&lt;Primary&gt;&lt;Alt&gt;Delete" type="string" value="xflock4"/> <property name="&lt;Primary&gt;&lt;Alt&gt;Delete" type="empty"/>
<property name="&lt;Primary&gt;&lt;Alt&gt;l" type="string" value="xflock4"/> <property name="&lt;Primary&gt;&lt;Alt&gt;l" type="empty"/>
<property name="XF86Display" type="string" value="xfce4-display-settings --minimal"/> <property name="XF86Display" type="empty"/>
<property name="&lt;Super&gt;p" type="string" value="xfce4-display-settings --minimal"/> <property name="&lt;Super&gt;p" type="empty"/>
<property name="&lt;Primary&gt;Escape" type="string" value="xfdesktop --menu"/> <property name="&lt;Primary&gt;Escape" type="empty"/>
<property name="override" type="bool" value="true"/> <property name="override" type="empty"/>
<property name="&lt;Alt&gt;space" type="string" value="xfce4-appfinder --collapsed"> <property name="&lt;Alt&gt;space" type="empty">
<property name="startup-notify" type="bool" value="true"/> <property name="startup-notify" type="empty"/>
</property> </property>
<property name="XF86MonBrightnessUp" type="string" value="/usr/sbin/backlight_up.sh"/> <property name="XF86MonBrightnessUp" type="empty"/>
<property name="XF86MonBrightnessDown" type="string" value="/usr/sbin/backlight_down.sh"/> <property name="XF86MonBrightnessDown" type="empty"/>
</property> </property>
</property> </property>
<property name="xfwm4" type="empty"> <property name="xfwm4" type="empty">
@ -95,58 +95,58 @@
<property name="&lt;Primary&gt;F12" type="empty"/> <property name="&lt;Primary&gt;F12" type="empty"/>
</property> </property>
<property name="custom" type="empty"> <property name="custom" type="empty">
<property name="Up" type="string" value="up_key"/> <property name="Up" type="empty"/>
<property name="&lt;Primary&gt;&lt;Alt&gt;KP_9" type="string" value="move_window_workspace_9_key"/> <property name="&lt;Primary&gt;&lt;Alt&gt;KP_9" type="empty"/>
<property name="&lt;Primary&gt;&lt;Alt&gt;KP_8" type="string" value="move_window_workspace_8_key"/> <property name="&lt;Primary&gt;&lt;Alt&gt;KP_8" type="empty"/>
<property name="Left" type="string" value="left_key"/> <property name="Left" type="empty"/>
<property name="&lt;Primary&gt;&lt;Alt&gt;KP_6" type="string" value="move_window_workspace_6_key"/> <property name="&lt;Primary&gt;&lt;Alt&gt;KP_6" type="empty"/>
<property name="&lt;Alt&gt;Insert" type="string" value="add_workspace_key"/> <property name="&lt;Alt&gt;Insert" type="empty"/>
<property name="&lt;Alt&gt;Tab" type="string" value="cycle_windows_key"/> <property name="&lt;Alt&gt;Tab" type="empty"/>
<property name="&lt;Alt&gt;&lt;Shift&gt;Tab" type="string" value="cycle_reverse_windows_key"/> <property name="&lt;Alt&gt;&lt;Shift&gt;Tab" type="empty"/>
<property name="&lt;Primary&gt;&lt;Alt&gt;KP_7" type="string" value="move_window_workspace_7_key"/> <property name="&lt;Primary&gt;&lt;Alt&gt;KP_7" type="empty"/>
<property name="&lt;Primary&gt;&lt;Alt&gt;d" type="string" value="show_desktop_key"/> <property name="&lt;Primary&gt;&lt;Alt&gt;d" type="empty"/>
<property name="&lt;Primary&gt;F7" type="string" value="workspace_7_key"/> <property name="&lt;Primary&gt;F7" type="empty"/>
<property name="&lt;Alt&gt;F4" type="string" value="close_window_key"/> <property name="&lt;Alt&gt;F4" type="empty"/>
<property name="&lt;Alt&gt;F6" type="string" value="stick_window_key"/> <property name="&lt;Alt&gt;F6" type="empty"/>
<property name="&lt;Alt&gt;F10" type="string" value="maximize_window_key"/> <property name="&lt;Alt&gt;F10" type="empty"/>
<property name="&lt;Alt&gt;F12" type="string" value="above_key"/> <property name="&lt;Alt&gt;F12" type="empty"/>
<property name="&lt;Alt&gt;F9" type="string" value="hide_window_key"/> <property name="&lt;Alt&gt;F9" type="empty"/>
<property name="&lt;Alt&gt;F8" type="string" value="resize_window_key"/> <property name="&lt;Alt&gt;F8" type="empty"/>
<property name="&lt;Super&gt;Tab" type="string" value="switch_window_key"/> <property name="&lt;Super&gt;Tab" type="empty"/>
<property name="Escape" type="string" value="cancel_key"/> <property name="Escape" type="empty"/>
<property name="&lt;Primary&gt;F10" type="string" value="workspace_10_key"/> <property name="&lt;Primary&gt;F10" type="empty"/>
<property name="&lt;Primary&gt;F11" type="string" value="workspace_11_key"/> <property name="&lt;Primary&gt;F11" type="empty"/>
<property name="&lt;Alt&gt;F11" type="string" value="fullscreen_key"/> <property name="&lt;Alt&gt;F11" type="empty"/>
<property name="&lt;Primary&gt;&lt;Shift&gt;&lt;Alt&gt;Up" type="string" value="move_window_up_key"/> <property name="&lt;Primary&gt;&lt;Shift&gt;&lt;Alt&gt;Up" type="empty"/>
<property name="Right" type="string" value="right_key"/> <property name="Right" type="empty"/>
<property name="Down" type="string" value="down_key"/> <property name="Down" type="empty"/>
<property name="&lt;Alt&gt;F7" type="string" value="move_window_key"/> <property name="&lt;Alt&gt;F7" type="empty"/>
<property name="&lt;Shift&gt;&lt;Alt&gt;Page_Down" type="string" value="lower_window_key"/> <property name="&lt;Shift&gt;&lt;Alt&gt;Page_Down" type="empty"/>
<property name="&lt;Primary&gt;F12" type="string" value="workspace_12_key"/> <property name="&lt;Primary&gt;F12" type="empty"/>
<property name="&lt;Primary&gt;F1" type="string" value="workspace_1_key"/> <property name="&lt;Primary&gt;F1" type="empty"/>
<property name="&lt;Primary&gt;F2" type="string" value="workspace_2_key"/> <property name="&lt;Primary&gt;F2" type="empty"/>
<property name="&lt;Primary&gt;F4" type="string" value="workspace_4_key"/> <property name="&lt;Primary&gt;F4" type="empty"/>
<property name="&lt;Primary&gt;F5" type="string" value="workspace_5_key"/> <property name="&lt;Primary&gt;F5" type="empty"/>
<property name="&lt;Primary&gt;F6" type="string" value="workspace_6_key"/> <property name="&lt;Primary&gt;F6" type="empty"/>
<property name="&lt;Primary&gt;F8" type="string" value="workspace_8_key"/> <property name="&lt;Primary&gt;F8" type="empty"/>
<property name="&lt;Primary&gt;F9" type="string" value="workspace_9_key"/> <property name="&lt;Primary&gt;F9" type="empty"/>
<property name="&lt;Primary&gt;&lt;Alt&gt;KP_1" type="string" value="move_window_workspace_1_key"/> <property name="&lt;Primary&gt;&lt;Alt&gt;KP_1" type="empty"/>
<property name="&lt;Alt&gt;Delete" type="string" value="del_workspace_key"/> <property name="&lt;Alt&gt;Delete" type="empty"/>
<property name="&lt;Shift&gt;&lt;Alt&gt;Page_Up" type="string" value="raise_window_key"/> <property name="&lt;Shift&gt;&lt;Alt&gt;Page_Up" type="empty"/>
<property name="&lt;Primary&gt;F3" type="string" value="workspace_3_key"/> <property name="&lt;Primary&gt;F3" type="empty"/>
<property name="&lt;Primary&gt;&lt;Alt&gt;KP_2" type="string" value="move_window_workspace_2_key"/> <property name="&lt;Primary&gt;&lt;Alt&gt;KP_2" type="empty"/>
<property name="&lt;Primary&gt;&lt;Alt&gt;KP_3" type="string" value="move_window_workspace_3_key"/> <property name="&lt;Primary&gt;&lt;Alt&gt;KP_3" type="empty"/>
<property name="&lt;Primary&gt;&lt;Alt&gt;KP_4" type="string" value="move_window_workspace_4_key"/> <property name="&lt;Primary&gt;&lt;Alt&gt;KP_4" type="empty"/>
<property name="&lt;Primary&gt;&lt;Alt&gt;KP_5" type="string" value="move_window_workspace_5_key"/> <property name="&lt;Primary&gt;&lt;Alt&gt;KP_5" type="empty"/>
<property name="override" type="bool" value="true"/> <property name="override" type="empty"/>
<property name="&lt;Primary&gt;&lt;Alt&gt;Up" type="string" value="prev_workspace_key"/> <property name="&lt;Primary&gt;&lt;Alt&gt;Up" type="empty"/>
<property name="&lt;Primary&gt;&lt;Alt&gt;Down" type="string" value="next_workspace_key"/> <property name="&lt;Primary&gt;&lt;Alt&gt;Down" type="empty"/>
<property name="&lt;Primary&gt;&lt;Alt&gt;Right" type="string" value="move_window_next_workspace_key"/> <property name="&lt;Primary&gt;&lt;Alt&gt;Right" type="empty"/>
<property name="&lt;Primary&gt;&lt;Alt&gt;Left" type="string" value="move_window_prev_workspace_key"/> <property name="&lt;Primary&gt;&lt;Alt&gt;Left" type="empty"/>
<property name="&lt;Primary&gt;Left" type="string" value="tile_left_key"/>
<property name="&lt;Primary&gt;Right" type="string" value="tile_right_key"/>
<property name="&lt;Primary&gt;Shift_R" type="string" value="maximize_window_key"/>
</property> </property>
</property> </property>
<property name="providers" type="array"> <property name="providers" type="empty"/>
<value type="string" value="xfwm4"/>
<value type="string" value="commands"/>
</property>
</channel> </channel>

View File

@ -56,6 +56,9 @@ then
cp -rf $DIR/xfce-config/xmodmap/.Xmodmap /etc/skel/ cp -rf $DIR/xfce-config/xmodmap/.Xmodmap /etc/skel/
cp -rf $DIR/xfce-config/xmodmap/.xinitrc /etc/skel/ cp -rf $DIR/xfce-config/xmodmap/.xinitrc /etc/skel/
#Install inputrc
cp -rf $DIR/xfce-config/xmodmap/.xinputrc /etc/skel/
#Install brightness controls #Install brightness controls
cp $DIR/xfce-config/brightness/backlight_* /usr/sbin/ cp $DIR/xfce-config/brightness/backlight_* /usr/sbin/
mkdir -p /etc/udev/rules.d/ mkdir -p /etc/udev/rules.d/