Compare commits
	
		
			2 Commits
		
	
	
		
			f35f478a03
			...
			gopher
		
	
	| Author | SHA1 | Date | |
|---|---|---|---|
| 
						 | 
					6cb60e7a27 | ||
| 
						 | 
					d50cdca292 | 
@@ -2,7 +2,7 @@
 | 
				
			|||||||
! Xft settings
 | 
					! Xft settings
 | 
				
			||||||
!-------------------------------------------------------------------------------
 | 
					!-------------------------------------------------------------------------------
 | 
				
			||||||
 
 | 
					 
 | 
				
			||||||
Xft.dpi:                    96
 | 
					Xft.dpi:                    140
 | 
				
			||||||
Xft.antialias:              true
 | 
					Xft.antialias:              true
 | 
				
			||||||
Xft.rgba:                   none
 | 
					Xft.rgba:                   none
 | 
				
			||||||
Xft.hinting:                true
 | 
					Xft.hinting:                true
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -24,3 +24,7 @@ fi
 | 
				
			|||||||
if [ -f $HOME/.Xmodmap ]; then
 | 
					if [ -f $HOME/.Xmodmap ]; then
 | 
				
			||||||
    /usr/bin/xmodmap $HOME/.Xmodmap 2>/dev/null &
 | 
					    /usr/bin/xmodmap $HOME/.Xmodmap 2>/dev/null &
 | 
				
			||||||
fi
 | 
					fi
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					if [ -f $HOME/.xsession ]; then
 | 
				
			||||||
 | 
					   . $HOME/.xsession
 | 
				
			||||||
 | 
					fi
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -1,7 +1,12 @@
 | 
				
			|||||||
# echo "pasado(xprofile)" $(date) >> /tmp/LOG
 | 
					#!/bin/sh
 | 
				
			||||||
 | 
					touch /tmp/LOG
 | 
				
			||||||
 | 
					echo "loaded(xprofile)" $(date) >> /tmp/LOG
 | 
				
			||||||
setxkbmap "us,es" "altgr-intl," -option "ctrl:nocaps,grp:shift_toggle,terminate:ctrl_alt_bksp"
 | 
					setxkbmap "us,es" "altgr-intl," -option "ctrl:nocaps,grp:shift_toggle,terminate:ctrl_alt_bksp"
 | 
				
			||||||
#xmodmap ~/.Xmodmap
 | 
					#xmodmap ~/.Xmodmap
 | 
				
			||||||
#source ~/.xinitrc
 | 
					#source ~/.xinitrc
 | 
				
			||||||
export XTERMINAL=termite
 | 
					export XTERMINAL=termite
 | 
				
			||||||
export TERMINAL=termite
 | 
					export TERMINAL=termite
 | 
				
			||||||
export TERMCMD=termite
 | 
					export TERMCMD=termite
 | 
				
			||||||
 | 
					export BROWSER=chromium-browser
 | 
				
			||||||
 | 
					export MOZ_USE_XINPUT2=1
 | 
				
			||||||
 | 
					
 | 
				
			||||||
@@ -55,8 +55,8 @@ bindsym XF86AudioLowerVolume exec --no-startup-id volume-down.sh
 | 
				
			|||||||
bindsym XF86AudioMute exec --no-startup-id volume-toggle-mute.sh
 | 
					bindsym XF86AudioMute exec --no-startup-id volume-toggle-mute.sh
 | 
				
			||||||
 | 
					
 | 
				
			||||||
# Brightness
 | 
					# Brightness
 | 
				
			||||||
#bindsym XF86MonBrightnessUp exec --no-startup-id xbacklight +5
 | 
					bindsym XF86MonBrightnessUp exec --no-startup-id brightnessctl set "5%+"
 | 
				
			||||||
#bindsym XF86MonBrightnessDown exec --no-startup-id xbacklight -5
 | 
					bindsym XF86MonBrightnessDown exec --no-startup-id brightnessctl set "5%-"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
# kill focused window
 | 
					# kill focused window
 | 
				
			||||||
bindsym $mod+q kill
 | 
					bindsym $mod+q kill
 | 
				
			||||||
@@ -230,29 +230,29 @@ bindsym $mod+n exec i3-input -F 'rename workspace to %s' -P 'New name: '
 | 
				
			|||||||
#status_command i3status
 | 
					#status_command i3status
 | 
				
			||||||
#}
 | 
					#}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
# bar {
 | 
					bar {
 | 
				
			||||||
#     mode dock
 | 
					    mode dock #hide
 | 
				
			||||||
#     position top
 | 
					    position bottom
 | 
				
			||||||
#     font pango:DejaVu Sans 10
 | 
					    font pango:DejaVu Sans 10
 | 
				
			||||||
#     workspace_buttons yes
 | 
					    workspace_buttons yes
 | 
				
			||||||
#     # status_command ~/.config/i3/status.sh
 | 
					    # status_command ~/.config/i3/status.sh
 | 
				
			||||||
#     status_command i3status -c ~/.config/i3status/conf
 | 
					    status_command i3blocks #i3status -c ~/.config/i3status/conf
 | 
				
			||||||
#     colors {
 | 
					    colors {
 | 
				
			||||||
#         background #101010
 | 
					        background #101010
 | 
				
			||||||
#         statusline #ffffff
 | 
					        statusline #ffffff
 | 
				
			||||||
#         focused_workspace #101010 #586e75 #fdf6e3
 | 
					        focused_workspace #101010 #586e75 #fdf6e3
 | 
				
			||||||
#         active_workspace #101010 #101010 #cb4b16
 | 
					        active_workspace #101010 #101010 #cb4b16
 | 
				
			||||||
#         inactive_workspace #101010 #101010 #93a1a1
 | 
					        inactive_workspace #101010 #101010 #93a1a1
 | 
				
			||||||
#         urgent_workspace #fdf6e3 #dc322f
 | 
					        urgent_workspace #fdf6e3 #dc322f
 | 
				
			||||||
#     }
 | 
					    }
 | 
				
			||||||
# }
 | 
					}
 | 
				
			||||||
# class                 border  backgr. text    indicator
 | 
					# class                 border  backgr. text    indicator
 | 
				
			||||||
client.focused          #4c7899 #4c7899 fefef #93a1a1 #2e9ef4
 | 
					client.focused          #4c7899 #4c7899 fefef #93a1a1 #2e9ef4
 | 
				
			||||||
client.focused_inactive #4c7899 #101010 #93a1a1 #484e50
 | 
					client.focused_inactive #4c7899 #101010 #93a1a1 #484e50
 | 
				
			||||||
client.unfocused        #ffffff #101010 #93a1a1 #292d2e
 | 
					client.unfocused        #ffffff #101010 #93a1a1 #292d2e
 | 
				
			||||||
client.urgent           #2f343a #101010 #93a1a1 #900000
 | 
					client.urgent           #2f343a #101010 #93a1a1 #900000
 | 
				
			||||||
 | 
					
 | 
				
			||||||
default_border pixel 5
 | 
					default_border pixel 1
 | 
				
			||||||
# smart_borders on
 | 
					# smart_borders on
 | 
				
			||||||
workspace_layout tabbed
 | 
					workspace_layout tabbed
 | 
				
			||||||
 | 
					
 | 
				
			||||||
@@ -297,8 +297,8 @@ workspace "7: Chat" output eDP1
 | 
				
			|||||||
workspace "8: Misc Big" output DP1
 | 
					workspace "8: Misc Big" output DP1
 | 
				
			||||||
workspace "9: Misc Small" output eDP1
 | 
					workspace "9: Misc Small" output eDP1
 | 
				
			||||||
 | 
					
 | 
				
			||||||
gaps inner 8
 | 
					#gaps inner 8
 | 
				
			||||||
gaps outer 5
 | 
					#gaps outer 5
 | 
				
			||||||
 | 
					
 | 
				
			||||||
set $mode_system System (l) lock, (e) logout, (s) suspend, (h) hibernate, (r) reboot, (Shift+s) shutdown
 | 
					set $mode_system System (l) lock, (e) logout, (s) suspend, (h) hibernate, (r) reboot, (Shift+s) shutdown
 | 
				
			||||||
mode "$mode_system" {
 | 
					mode "$mode_system" {
 | 
				
			||||||
@@ -317,8 +317,6 @@ bindsym $mod+Delete mode "$mode_system"
 | 
				
			|||||||
bindsym $mod+Escape exec xfce4-session-logout
 | 
					bindsym $mod+Escape exec xfce4-session-logout
 | 
				
			||||||
#exec --no-startup-id xautolock -corners '----' -time 10 -locker 'dm-tool lock' # lightdm
 | 
					#exec --no-startup-id xautolock -corners '----' -time 10 -locker 'dm-tool lock' # lightdm
 | 
				
			||||||
#exec xautolock -time 10 -corners "----" -locker 'i3lock -t -c 000000 -i ~/Pictures/Wallpapers/Game\ Over\ Hacker.png' &
 | 
					#exec xautolock -time 10 -corners "----" -locker 'i3lock -t -c 000000 -i ~/Pictures/Wallpapers/Game\ Over\ Hacker.png' &
 | 
				
			||||||
exec --no-startup-id compton -b --config ~/.compton.conf 
 | 
					 | 
				
			||||||
exec --no-startup-id dropbox start
 | 
					 | 
				
			||||||
exec --no-startup-id i3-sensible-terminal --title=filemanager -e 'ranger'
 | 
					exec --no-startup-id i3-sensible-terminal --title=filemanager -e 'ranger'
 | 
				
			||||||
exec --no-startup-id nitrogen --restore
 | 
					exec --no-startup-id nitrogen --restore
 | 
				
			||||||
exec --no-startup-id nm-applet
 | 
					exec --no-startup-id nm-applet
 | 
				
			||||||
@@ -326,9 +324,12 @@ exec --no-startup-id pasystray
 | 
				
			|||||||
exec --no-startup-id syndaemon -i 0.5 -d
 | 
					exec --no-startup-id syndaemon -i 0.5 -d
 | 
				
			||||||
exec --no-startup-id i3-sensible-terminal --title=scratch -e 'tmux attach'
 | 
					exec --no-startup-id i3-sensible-terminal --title=scratch -e 'tmux attach'
 | 
				
			||||||
exec --no-startup-id i3-exit.sh autolock
 | 
					exec --no-startup-id i3-exit.sh autolock
 | 
				
			||||||
exec --no-startup-id xfce4-power-manager
 | 
					 | 
				
			||||||
#exec --no-startup-id xfsettingsd --sm-client-disable &
 | 
					#exec --no-startup-id xfsettingsd --sm-client-disable &
 | 
				
			||||||
exec --no-startup-id clipit -n
 | 
					#exec --no-startup-id polybar.sh
 | 
				
			||||||
 | 
					exec --no-startup-id autorotate.py
 | 
				
			||||||
 | 
					exec --no-startup-id touchegg
 | 
				
			||||||
 | 
					exec --no-startup-id parcellite 
 | 
				
			||||||
exec --no-startup-id owncloud
 | 
					exec --no-startup-id owncloud
 | 
				
			||||||
exec --no-startup-id udiskie --no-notify --tray --use-udisks2  
 | 
					exec --no-startup-id udiskie --no-notify --tray --use-udisks2  
 | 
				
			||||||
exec --no-startup-id polybar.sh
 | 
					exec --no-startup-id xfce4-power-manager
 | 
				
			||||||
 | 
					exec --no-startup-id compton -b --config ~/.compton.conf 
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -12,6 +12,7 @@ order += "path_exists VPN"
 | 
				
			|||||||
order += "wireless wlan0"
 | 
					order += "wireless wlan0"
 | 
				
			||||||
order += "ethernet eth0"
 | 
					order += "ethernet eth0"
 | 
				
			||||||
order += "battery 0"
 | 
					order += "battery 0"
 | 
				
			||||||
 | 
					order += "battery 1"
 | 
				
			||||||
# order += "cpu_temperature 0"
 | 
					# order += "cpu_temperature 0"
 | 
				
			||||||
order += "load"
 | 
					order += "load"
 | 
				
			||||||
order += "tztime local"
 | 
					order += "tztime local"
 | 
				
			||||||
@@ -39,6 +40,17 @@ battery 0 {
 | 
				
			|||||||
        low_threshold = 10
 | 
					        low_threshold = 10
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					battery 1 {
 | 
				
			||||||
 | 
					        format = "%status %percentage %remaining %emptytime"
 | 
				
			||||||
 | 
					        format_down = "No battery"
 | 
				
			||||||
 | 
					        status_chr = "⚡ CHR"
 | 
				
			||||||
 | 
					        status_bat = "🔋 BAT"
 | 
				
			||||||
 | 
					        status_unk = "? UNK"
 | 
				
			||||||
 | 
					        status_full = "☻ FULL"
 | 
				
			||||||
 | 
					        path = "/sys/class/power_supply/BAT1/uevent"
 | 
				
			||||||
 | 
					        low_threshold = 10
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
run_watch DHCP {
 | 
					run_watch DHCP {
 | 
				
			||||||
        pidfile = "/var/run/dhclient*.pid"
 | 
					        pidfile = "/var/run/dhclient*.pid"
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -6,19 +6,20 @@ general {
 | 
				
			|||||||
order += "disk /"
 | 
					order += "disk /"
 | 
				
			||||||
order += "disk /home"
 | 
					order += "disk /home"
 | 
				
			||||||
order += "path_exists VPN"
 | 
					order += "path_exists VPN"
 | 
				
			||||||
order += "wireless wlp2s0"
 | 
					order += "wireless _first_"
 | 
				
			||||||
order += "ethernet eth0"
 | 
					order += "ethernet _first_"
 | 
				
			||||||
order += "battery 0"
 | 
					order += "battery 0"
 | 
				
			||||||
 | 
					order += "battery 1"
 | 
				
			||||||
order += "cpu_temperature 0"
 | 
					order += "cpu_temperature 0"
 | 
				
			||||||
order += "load"
 | 
					order += "load"
 | 
				
			||||||
order += "tztime local"
 | 
					order += "tztime local"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
wireless wlp2s0 {
 | 
					wireless _first_ {
 | 
				
			||||||
        format_up = "%essid %ip %quality %bitrate"
 | 
					        format_up = "%essid %ip %quality %bitrate"
 | 
				
			||||||
        format_down = "Wireless down"
 | 
					        format_down = "Wireless down"
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
ethernet eth0 {
 | 
					ethernet _first_ {
 | 
				
			||||||
        # if you use %speed, i3status requires the cap_net_admin capability
 | 
					        # if you use %speed, i3status requires the cap_net_admin capability
 | 
				
			||||||
        format_up = "E: %ip (%speed)           "
 | 
					        format_up = "E: %ip (%speed)           "
 | 
				
			||||||
        format_down = "E: down"
 | 
					        format_down = "E: down"
 | 
				
			||||||
@@ -26,7 +27,18 @@ ethernet eth0 {
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
battery 0 {
 | 
					battery 0 {
 | 
				
			||||||
        format = "%status %percentage %remaining %emptytime"
 | 
					        format = "%status %percentage %remaining %emptytime"
 | 
				
			||||||
        format_down = "No battery"
 | 
					        format_down = ""
 | 
				
			||||||
 | 
					        status_chr = "⚡ CHR"
 | 
				
			||||||
 | 
					        status_bat = "🔋 BAT"
 | 
				
			||||||
 | 
					        status_unk = "? UNK"
 | 
				
			||||||
 | 
					        status_chr = "⚡ FULL"
 | 
				
			||||||
 | 
					        path = "/sys/class/power_supply/BAT%d/uevent"
 | 
				
			||||||
 | 
					        low_threshold = 10
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					battery 1 {
 | 
				
			||||||
 | 
					        format = "%status %percentage %remaining"
 | 
				
			||||||
 | 
					        format_down = ""
 | 
				
			||||||
        status_chr = "⚡ CHR"
 | 
					        status_chr = "⚡ CHR"
 | 
				
			||||||
        status_bat = "🔋 BAT"
 | 
					        status_bat = "🔋 BAT"
 | 
				
			||||||
        status_unk = "? UNK"
 | 
					        status_unk = "? UNK"
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -1,11 +1,12 @@
 | 
				
			|||||||
 | 
					j:/home/j/Downloads
 | 
				
			||||||
 | 
					d:/home/j/Downloads
 | 
				
			||||||
 | 
					g:/home/j/git/balkian
 | 
				
			||||||
F:/home/j
 | 
					F:/home/j
 | 
				
			||||||
f:/home/j
 | 
					f:/home/j
 | 
				
			||||||
m:/home/j/Downloads
 | 
					m:/home/j/Downloads
 | 
				
			||||||
 | 
					o:/home/j/Downloads
 | 
				
			||||||
 | 
					':/home/j/Clases/CORE/2019
 | 
				
			||||||
 | 
					G:/home/j/GSI
 | 
				
			||||||
p:/home/j/Doctorado/Papers
 | 
					p:/home/j/Doctorado/Papers
 | 
				
			||||||
s:/home/j/Doctorado/Papers/SocialContext
 | 
					s:/home/j/Doctorado/Papers/SocialContext
 | 
				
			||||||
d:/home/j/Downloads
 | 
					 | 
				
			||||||
D:/home/j/Doctorado
 | 
					D:/home/j/Doctorado
 | 
				
			||||||
o:/home/j/Downloads
 | 
					 | 
				
			||||||
g:/home/j/git/balkian
 | 
					 | 
				
			||||||
G:/home/j/GSI
 | 
					 | 
				
			||||||
j:/home/j/Downloads
 | 
					 | 
				
			||||||
 
 | 
				
			|||||||
							
								
								
									
										2
									
								
								screenlayouts/.screenlayout/select.sh
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										2
									
								
								screenlayouts/.screenlayout/select.sh
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,2 @@
 | 
				
			|||||||
 | 
					#!/bin/sh
 | 
				
			||||||
 | 
					arandr
 | 
				
			||||||
							
								
								
									
										93
									
								
								scripts/.bin/autorotate.py
									
									
									
									
									
										Executable file
									
								
							
							
						
						
									
										93
									
								
								scripts/.bin/autorotate.py
									
									
									
									
									
										Executable file
									
								
							@@ -0,0 +1,93 @@
 | 
				
			|||||||
 | 
					#!/usr/bin/env python
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					from time import sleep
 | 
				
			||||||
 | 
					from os import path as op
 | 
				
			||||||
 | 
					import sys
 | 
				
			||||||
 | 
					from subprocess import check_call, check_output
 | 
				
			||||||
 | 
					from glob import glob
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					def bdopen(fname):
 | 
				
			||||||
 | 
					    return open(op.join(basedir, fname))
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					def read(fname):
 | 
				
			||||||
 | 
					    return bdopen(fname).read()
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					for basedir in glob('/sys/bus/iio/devices/iio:device*'):
 | 
				
			||||||
 | 
					    if 'accel' in read('name'):
 | 
				
			||||||
 | 
					        break
 | 
				
			||||||
 | 
					else:
 | 
				
			||||||
 | 
					    sys.stderr.write("Can't find an accellerator device!\n")
 | 
				
			||||||
 | 
					    sys.exit(1)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					def update_devices():
 | 
				
			||||||
 | 
					    devices = check_output(['xinput', '--list', '--name-only']).splitlines()
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    touchscreen_names = ['touchscreen', 'wacom', 'pen']
 | 
				
			||||||
 | 
					    touchscreens = [i for i in devices if any(j in i.lower() for j in touchscreen_names)]
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    touchpad_names = ['touchpad', 'trackpoint']
 | 
				
			||||||
 | 
					    touchpads = [i for i in devices if any(j in i.lower() for j in touchpad_names)]
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    return touchscreens, touchpads
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					disable_touchpads = False
 | 
				
			||||||
 | 
					scale = float(read('in_accel_scale'))
 | 
				
			||||||
 | 
					g = 7.0  # (m^2 / s) sensibility, gravity trigger
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					STATES = [
 | 
				
			||||||
 | 
					    {'rot': 'normal', 'coord': '1 0 0 0 1 0 0 0 1', 'touchpad': 'enable',
 | 
				
			||||||
 | 
					     'check': lambda x, y: y <= -g},
 | 
				
			||||||
 | 
					    {'rot': 'inverted', 'coord': '-1 0 1 0 -1 1 0 0 1', 'touchpad': 'disable',
 | 
				
			||||||
 | 
					     'check': lambda x, y: y >= g},
 | 
				
			||||||
 | 
					    {'rot': 'left', 'coord': '0 -1 1 1 0 0 0 0 1', 'touchpad': 'disable',
 | 
				
			||||||
 | 
					     'check': lambda x, y: x >= g},
 | 
				
			||||||
 | 
					    {'rot': 'right', 'coord': '0 1 0 -1 0 1 0 0 1', 'touchpad': 'disable',
 | 
				
			||||||
 | 
					     'check': lambda x, y: x <= -g},
 | 
				
			||||||
 | 
					]
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					def rotate(state):
 | 
				
			||||||
 | 
					    s = STATES[state]
 | 
				
			||||||
 | 
					    check_call(['xrandr', '-o', s['rot']])
 | 
				
			||||||
 | 
					    touchscreens, touchpads = update_devices()
 | 
				
			||||||
 | 
					    for dev in touchscreens if disable_touchpads else (touchscreens + touchpads):
 | 
				
			||||||
 | 
					        check_call([
 | 
				
			||||||
 | 
					            'xinput', 'set-prop', dev,
 | 
				
			||||||
 | 
					            'Coordinate Transformation Matrix',
 | 
				
			||||||
 | 
					        ] + s['coord'].split())
 | 
				
			||||||
 | 
					    if disable_touchpads:
 | 
				
			||||||
 | 
					        for dev in touchpads:
 | 
				
			||||||
 | 
					            check_call(['xinput', s['touchpad'], dev])
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					def read_accel(fp):
 | 
				
			||||||
 | 
					    fp.seek(0)
 | 
				
			||||||
 | 
					    return float(fp.read()) * scale
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					if __name__ == '__main__':
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    accel_x = bdopen('in_accel_x_raw')
 | 
				
			||||||
 | 
					    accel_y = bdopen('in_accel_y_raw')
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    current_state = None
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    while True:
 | 
				
			||||||
 | 
					        x = read_accel(accel_x)
 | 
				
			||||||
 | 
					        y = read_accel(accel_y)
 | 
				
			||||||
 | 
					        for i in range(4):
 | 
				
			||||||
 | 
					            if i == current_state:
 | 
				
			||||||
 | 
					                continue
 | 
				
			||||||
 | 
					            if STATES[i]['check'](x, y):
 | 
				
			||||||
 | 
					                current_state = i
 | 
				
			||||||
 | 
					                try:
 | 
				
			||||||
 | 
					                    rotate(i)
 | 
				
			||||||
 | 
					                except Exception as ex:
 | 
				
			||||||
 | 
					                    print('Error rotating: {}'.format(ex))
 | 
				
			||||||
 | 
					                break
 | 
				
			||||||
 | 
					        sleep(1)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
@@ -1,2 +0,0 @@
 | 
				
			|||||||
#!/bin/bash
 | 
					 | 
				
			||||||
one-window 'gnome-terminal' 'xdotool windowfocus $WID & xdotool key ctrl+shift+t'
 | 
					 | 
				
			||||||
							
								
								
									
										4
									
								
								scripts/.bin/mapinputs.sh
									
									
									
									
									
										Executable file
									
								
							
							
						
						
									
										4
									
								
								scripts/.bin/mapinputs.sh
									
									
									
									
									
										Executable file
									
								
							@@ -0,0 +1,4 @@
 | 
				
			|||||||
 | 
					#!/bin/sh
 | 
				
			||||||
 | 
					xinput map-to-output "ELAN9038:00 04F3:261A Pen eraser" eDP-1 # Eraser
 | 
				
			||||||
 | 
					xinput map-to-output "ELAN9038:00 04F3:261A Pen stylus" eDP-1 # Stylus
 | 
				
			||||||
 | 
					xinput map-to-output "ELAN9038:00 04F3:261A Touchscreen" eDP-1 # Touch
 | 
				
			||||||
							
								
								
									
										3
									
								
								scripts/.bin/onboard.sh
									
									
									
									
									
										Executable file
									
								
							
							
						
						
									
										3
									
								
								scripts/.bin/onboard.sh
									
									
									
									
									
										Executable file
									
								
							@@ -0,0 +1,3 @@
 | 
				
			|||||||
 | 
					#!/bin/sh
 | 
				
			||||||
 | 
					dbus-send --type=method_call --print-reply --dest=org.onboard.Onboard /org/onboard/Onboard/Keyboard org.onboard.Onboard.Keyboard.ToggleVisible || onboard
 | 
				
			||||||
 | 
					
 | 
				
			||||||
							
								
								
									
										83
									
								
								touchegg/.config/touchegg/touchegg.conf
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										83
									
								
								touchegg/.config/touchegg/touchegg.conf
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,83 @@
 | 
				
			|||||||
 | 
					<touchégg>
 | 
				
			||||||
 | 
					    
 | 
				
			||||||
 | 
					    <settings>
 | 
				
			||||||
 | 
					        <property name="composed_gestures_time">0</property>
 | 
				
			||||||
 | 
					    </settings>
 | 
				
			||||||
 | 
					    
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    <application name="All">
 | 
				
			||||||
 | 
					        
 | 
				
			||||||
 | 
					        <gesture type="TAP" fingers="2" direction="">
 | 
				
			||||||
 | 
					            <action type="MOUSE_CLICK">BUTTON=3</action>
 | 
				
			||||||
 | 
					        </gesture>
 | 
				
			||||||
 | 
					    
 | 
				
			||||||
 | 
					        <gesture type="TAP" fingers="3" direction="">
 | 
				
			||||||
 | 
					            <action type="MOUSE_CLICK">BUTTON=2</action>
 | 
				
			||||||
 | 
					        </gesture>
 | 
				
			||||||
 | 
					        <gesture type="DRAG" fingers="3" direction="DOWN">
 | 
				
			||||||
 | 
					            <action type="RUN_COMMAND">onboard.sh</action>
 | 
				
			||||||
 | 
					        </gesture>
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					        <gesture type="TAP" fingers="5" direction="">
 | 
				
			||||||
 | 
					            <action type="CLOSE_WINDOW"></action>
 | 
				
			||||||
 | 
					        </gesture>
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					        <gesture type="DRAG" fingers="2" direction="ALL">
 | 
				
			||||||
 | 
					            <action type="SCROLL">SPEED=7:INVERTED=false</action>
 | 
				
			||||||
 | 
					        </gesture>
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					        <gesture type="DRAG" fingers="4" direction="UP">
 | 
				
			||||||
 | 
					            <action type="MAXIMIZE_RESTORE_WINDOW"></action>
 | 
				
			||||||
 | 
					        </gesture>
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					        <gesture type="DRAG" fingers="4" direction="RIGHT">
 | 
				
			||||||
 | 
					            <action type="SEND_KEYS">Super+Control+l</action>
 | 
				
			||||||
 | 
					        </gesture>
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					        <gesture type="DRAG" fingers="4" direction="LEFT">
 | 
				
			||||||
 | 
					            <action type="SEND_KEYS">Super+Control+h</action>
 | 
				
			||||||
 | 
					        </gesture>
 | 
				
			||||||
 | 
					        
 | 
				
			||||||
 | 
					        <gesture type="PINCH" fingers="5" direction="ALL">
 | 
				
			||||||
 | 
					            <action type="SEND_KEYS">Alt+F1</action>
 | 
				
			||||||
 | 
					        </gesture>
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    </application>
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    <application name="Okular, Gwenview">
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					        <gesture type="PINCH" fingers="2" direction="IN">
 | 
				
			||||||
 | 
					            <action type="SEND_KEYS">Control+KP_Add</action>
 | 
				
			||||||
 | 
					        </gesture>
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					        <gesture type="PINCH" fingers="2" direction="OUT">
 | 
				
			||||||
 | 
					            <action type="SEND_KEYS">Control+KP_Subtract</action>
 | 
				
			||||||
 | 
					        </gesture>
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					        <gesture type="ROTATE" fingers="2" direction="LEFT">
 | 
				
			||||||
 | 
					            <action type="SEND_KEYS">Control+L</action>
 | 
				
			||||||
 | 
					        </gesture>
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					        <gesture type="ROTATE" fingers="2" direction="RIGHT">
 | 
				
			||||||
 | 
					            <action type="SEND_KEYS">Control+R</action>
 | 
				
			||||||
 | 
					        </gesture>
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    </application>
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    <application name="Chromium-browser, Dolphin">
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					        <gesture type="DRAG" fingers="2" direction="LEFT">
 | 
				
			||||||
 | 
					            <action type="SEND_KEYS">Alt+Left</action>
 | 
				
			||||||
 | 
					        </gesture>
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					        <gesture type="DRAG" fingers="2" direction="RIGHT">
 | 
				
			||||||
 | 
					            <action type="SEND_KEYS">Alt+Right</action>
 | 
				
			||||||
 | 
					        </gesture>
 | 
				
			||||||
 | 
					        
 | 
				
			||||||
 | 
					    </application>
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					</touchégg>
 | 
				
			||||||
							
								
								
									
										4
									
								
								udiskie/.config/udiskie/config.yml
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										4
									
								
								udiskie/.config/udiskie/config.yml
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,4 @@
 | 
				
			|||||||
 | 
					---
 | 
				
			||||||
 | 
					ignore_device:
 | 
				
			||||||
 | 
					        - device_file: "/dev/loop*"
 | 
				
			||||||
 | 
					          ignore: true
 | 
				
			||||||
@@ -1,36 +0,0 @@
 | 
				
			|||||||
// Place your key bindings in this file to overwrite the defaults
 | 
					 | 
				
			||||||
[
 | 
					 | 
				
			||||||
    // {
 | 
					 | 
				
			||||||
    //     "key": "] q",
 | 
					 | 
				
			||||||
    //     "command": "editor.action.marker.nextInFiles",
 | 
					 | 
				
			||||||
    //     "when": "editorFocus && !editorReadonly"
 | 
					 | 
				
			||||||
    // },
 | 
					 | 
				
			||||||
    // {
 | 
					 | 
				
			||||||
    //     "key": "f8",
 | 
					 | 
				
			||||||
    //     "command": "-editor.action.marker.nextInFiles",
 | 
					 | 
				
			||||||
    //     "when": "editorFocus && !editorReadonly"
 | 
					 | 
				
			||||||
    // },
 | 
					 | 
				
			||||||
    // {
 | 
					 | 
				
			||||||
    //     "key": "[ q",
 | 
					 | 
				
			||||||
    //     "command": "editor.action.marker.prevInFiles",
 | 
					 | 
				
			||||||
    //     "when": "editorFocus && !editorReadonly"
 | 
					 | 
				
			||||||
    // },
 | 
					 | 
				
			||||||
    // {
 | 
					 | 
				
			||||||
    //     "key": "shift+f8",
 | 
					 | 
				
			||||||
    //     "command": "-editor.action.marker.prevInFiles",
 | 
					 | 
				
			||||||
    //     "when": "editorFocus && !editorReadonly"
 | 
					 | 
				
			||||||
    // },
 | 
					 | 
				
			||||||
    {
 | 
					 | 
				
			||||||
        "key": "ctrl+`",
 | 
					 | 
				
			||||||
        "command": "workbench.action.terminal.focus"
 | 
					 | 
				
			||||||
    },
 | 
					 | 
				
			||||||
    {
 | 
					 | 
				
			||||||
        "key": "ctrl+`",
 | 
					 | 
				
			||||||
        "command": "-workbench.action.terminal.toggleTerminal"
 | 
					 | 
				
			||||||
    },
 | 
					 | 
				
			||||||
    {
 | 
					 | 
				
			||||||
        "key": "ctrl+shift+1",
 | 
					 | 
				
			||||||
        "command": "workbench.action.editorLayoutSingle",
 | 
					 | 
				
			||||||
        "when": "editorFocus"
 | 
					 | 
				
			||||||
    }
 | 
					 | 
				
			||||||
]
 | 
					 | 
				
			||||||
@@ -1,31 +0,0 @@
 | 
				
			|||||||
{
 | 
					 | 
				
			||||||
    "diffEditor.ignoreTrimWhitespace": false,
 | 
					 | 
				
			||||||
    "gitlens.advanced.messages": {
 | 
					 | 
				
			||||||
        "suppressShowKeyBindingsNotice": true,
 | 
					 | 
				
			||||||
        "suppressResultsExplorerNotice": true
 | 
					 | 
				
			||||||
    },
 | 
					 | 
				
			||||||
    "gitlens.keymap": "chorded",
 | 
					 | 
				
			||||||
    "vim.handleKeys": {
 | 
					 | 
				
			||||||
        "<C-K>": false,
 | 
					 | 
				
			||||||
        "[q": false,
 | 
					 | 
				
			||||||
        "]q": false
 | 
					 | 
				
			||||||
    },
 | 
					 | 
				
			||||||
    "workbench.statusBar.visible": true,
 | 
					 | 
				
			||||||
    "files.watcherExclude": {
 | 
					 | 
				
			||||||
        "**/.git/objects/**": true,
 | 
					 | 
				
			||||||
        "**/.git/subtree-cache/**": true,
 | 
					 | 
				
			||||||
        "**/node_modules/**": true,
 | 
					 | 
				
			||||||
        "**/vendor/**": true,
 | 
					 | 
				
			||||||
    },
 | 
					 | 
				
			||||||
    "window.titleBarStyle": "custom",
 | 
					 | 
				
			||||||
    "vim.hlsearch": true,
 | 
					 | 
				
			||||||
    "vim.statusBarColorControl": true,
 | 
					 | 
				
			||||||
    "workbench.iconTheme": "vscode-icons",
 | 
					 | 
				
			||||||
    "workbench.colorCustomizations": {
 | 
					 | 
				
			||||||
        "statusBar.background": "#005f5f",
 | 
					 | 
				
			||||||
        "statusBar.noFolderBackground": "#005f5f",
 | 
					 | 
				
			||||||
        "statusBar.debuggingBackground": "#005f5f"
 | 
					 | 
				
			||||||
    },
 | 
					 | 
				
			||||||
    "gitlab.instanceUrl": "https://lab.gsi.upm.es",
 | 
					 | 
				
			||||||
    "editor.wordWrap": "on"
 | 
					 | 
				
			||||||
}
 | 
					 | 
				
			||||||
@@ -50,3 +50,4 @@ path=(
 | 
				
			|||||||
export PATH
 | 
					export PATH
 | 
				
			||||||
export GOPATH=$HOME/go
 | 
					export GOPATH=$HOME/go
 | 
				
			||||||
export PATH=$PATH:$GOPATH/bin/
 | 
					export PATH=$PATH:$GOPATH/bin/
 | 
				
			||||||
 | 
					export PATH=$PATH:/snap/bin/
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user