[DEV] some binary toolbox
4
.bin/cpuSlow.sh
Executable file
@ -0,0 +1,4 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
echo 30 > /sys/devices/system/cpu/intel_pstate/max_perf_pct
|
||||||
|
echo 1 > /sys/devices/system/cpu/intel_pstate/no_turbo
|
||||||
|
|
3
.bin/cpuSuspend.sh
Executable file
@ -0,0 +1,3 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
systemctl suspend
|
||||||
|
|
44
.bin/kb-light.py
Executable file
@ -0,0 +1,44 @@
|
|||||||
|
#!/usr/bin/env python3
|
||||||
|
|
||||||
|
|
||||||
|
#https://wiki.archlinux.org/index.php/keyboard_backlight
|
||||||
|
|
||||||
|
|
||||||
|
import dbus
|
||||||
|
import sys
|
||||||
|
|
||||||
|
def kb_light_set(delta):
|
||||||
|
bus = dbus.SystemBus()
|
||||||
|
kbd_backlight_proxy = bus.get_object('org.freedesktop.UPower', '/org/freedesktop/UPower/KbdBacklight')
|
||||||
|
kbd_backlight = dbus.Interface(kbd_backlight_proxy, 'org.freedesktop.UPower.KbdBacklight')
|
||||||
|
|
||||||
|
current = kbd_backlight.GetBrightness()
|
||||||
|
maximum = kbd_backlight.GetMaxBrightness()
|
||||||
|
new = max(0, min(current + delta, maximum))
|
||||||
|
|
||||||
|
if 0 <= new <= maximum:
|
||||||
|
current = new
|
||||||
|
kbd_backlight.SetBrightness(current)
|
||||||
|
|
||||||
|
# Return current backlight level percentage
|
||||||
|
return 100 * current / maximum
|
||||||
|
|
||||||
|
if __name__ == '__main__':
|
||||||
|
if len(sys.argv) == 2 or len(sys.argv) == 3:
|
||||||
|
if sys.argv[1] == "--up" or sys.argv[1] == "+":
|
||||||
|
if len(sys.argv) == 3:
|
||||||
|
print(kb_light_set(int(sys.argv[2])))
|
||||||
|
else:
|
||||||
|
print(kb_light_set(17))
|
||||||
|
elif sys.argv[1] == "--down" or sys.argv[1] == "-":
|
||||||
|
if len(sys.argv) == 3:
|
||||||
|
print(kb_light_set(-int(sys.argv[2])))
|
||||||
|
else:
|
||||||
|
print(kb_light_set(-17))
|
||||||
|
else:
|
||||||
|
print("Unknown argument:", sys.argv[1])
|
||||||
|
else:
|
||||||
|
print("Script takes one or two argument.", len(sys.argv) - 1, "arguments provided.")
|
||||||
|
|
||||||
|
|
||||||
|
|
@ -105,11 +105,15 @@ xdg_menu = require("archmenu")
|
|||||||
|
|
||||||
mymainmenu = awful.menu({ items = { { "awesome", myawesomemenu, beautiful.awesome_icon },
|
mymainmenu = awful.menu({ items = { { "awesome", myawesomemenu, beautiful.awesome_icon },
|
||||||
{ "Applications", xdgmenu },
|
{ "Applications", xdgmenu },
|
||||||
{ "Terminator", "terminator", "/usr/share/icons/hicolor/16x16/apps/terminator.png" },
|
{ "Terminator", "terminator", "/usr/share/icons/hicolor/scalable/apps/terminator.svg" },
|
||||||
{ "Opera", "opera", "/usr/share/icons/hicolor/16x16/apps/opera.png" },
|
{ "Firefox", "firefox", "/usr/share/icons/hicolor/16x16/apps/firefox.png" },
|
||||||
{ "Chromium", "chromium", "/usr/share/icons/hicolor/16x16/apps/chromium.png" },
|
{ "Chromium", "chromium", "/usr/share/icons/hicolor/16x16/apps/chromium.png" },
|
||||||
{ "Thunar", "thunar" },
|
{ "Filezilla", "filezilla", "/usr/share/icons/hicolor/scalable/apps/filezilla.svg" },
|
||||||
{ "Edn", "edn", "/home/edupin/.local/application/edn.app/share/edn/icon.png"},
|
{ "Thunar", "thunar", "/usr/share/icons/hicolor/scalable/apps/Thunar.svg" },
|
||||||
|
{ "Edn", "edn", "/home/heero/.local/application/edn.app/share/edn/icon.png"},
|
||||||
|
{ "Zeus Video", "zeus-player-video", "/home/heero/.local/application/zeus-player-video.app/share/zeus-player-video/icon.png"},
|
||||||
|
{ "Zeus Audio", "zeus-player-audio", "/home/heero/.local/application/zeus-player-audio.app/share/zeus-player-audio/icon.png"},
|
||||||
|
{ "Zeus Picture", "zeus-viewer-picture", "/home/heero/.local/application/zeus-player-audio.app/share/zeus-viewer-picture/icon.png"},
|
||||||
{ "X-lock", "xlock"}
|
{ "X-lock", "xlock"}
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
@ -243,7 +247,7 @@ root.buttons(awful.util.table.join(
|
|||||||
|
|
||||||
-- {{{ Key bindings
|
-- {{{ Key bindings
|
||||||
globalkeys = awful.util.table.join(
|
globalkeys = awful.util.table.join(
|
||||||
awful.key({ modkey, }, "F12",
|
awful.key({ modkey, }, "Pause",
|
||||||
function ()
|
function ()
|
||||||
awful.util.spawn("xlock")
|
awful.util.spawn("xlock")
|
||||||
end,
|
end,
|
||||||
@ -261,7 +265,7 @@ globalkeys = awful.util.table.join(
|
|||||||
awful.key({ modkey, }, "Right",
|
awful.key({ modkey, }, "Right",
|
||||||
function ()
|
function ()
|
||||||
-- TODO : Do the last ID better ...
|
-- TODO : Do the last ID better ...
|
||||||
if awful.tag.selected().name ~= "11" then
|
if awful.tag.selected().name ~= "12" then
|
||||||
awful.tag.viewnext()
|
awful.tag.viewnext()
|
||||||
end
|
end
|
||||||
end,
|
end,
|
||||||
@ -401,7 +405,7 @@ clientkeys = awful.util.table.join(
|
|||||||
-- Bind all key numbers to tags.
|
-- Bind all key numbers to tags.
|
||||||
-- Be careful: we use keycodes to make it works on any keyboard layout.
|
-- Be careful: we use keycodes to make it works on any keyboard layout.
|
||||||
-- This should map on the top row of your keyboard, usually 1 to 9.
|
-- This should map on the top row of your keyboard, usually 1 to 9.
|
||||||
for i = 1, 11 do
|
for i = 1, 12 do
|
||||||
globalkeys = awful.util.table.join(globalkeys,
|
globalkeys = awful.util.table.join(globalkeys,
|
||||||
-- View tag only.
|
-- View tag only.
|
||||||
awful.key({ modkey }, "F" .. i,
|
awful.key({ modkey }, "F" .. i,
|
||||||
|
BIN
.config/awesome/theme/layouts/dwindle.png
Normal file → Executable file
Before Width: | Height: | Size: 967 B After Width: | Height: | Size: 425 B |
BIN
.config/awesome/theme/layouts/dwindlew.png
Normal file → Executable file
Before Width: | Height: | Size: 997 B After Width: | Height: | Size: 444 B |
BIN
.config/awesome/theme/layouts/fairh.png
Normal file → Executable file
Before Width: | Height: | Size: 194 B After Width: | Height: | Size: 312 B |
BIN
.config/awesome/theme/layouts/fairhw.png
Normal file → Executable file
Before Width: | Height: | Size: 194 B After Width: | Height: | Size: 314 B |
BIN
.config/awesome/theme/layouts/fairv.png
Normal file → Executable file
Before Width: | Height: | Size: 201 B After Width: | Height: | Size: 323 B |
BIN
.config/awesome/theme/layouts/fairvw.png
Normal file → Executable file
Before Width: | Height: | Size: 201 B After Width: | Height: | Size: 323 B |
BIN
.config/awesome/theme/layouts/floating.png
Normal file → Executable file
Before Width: | Height: | Size: 395 B After Width: | Height: | Size: 361 B |
BIN
.config/awesome/theme/layouts/floatingw.png
Normal file → Executable file
Before Width: | Height: | Size: 388 B After Width: | Height: | Size: 365 B |
BIN
.config/awesome/theme/layouts/fullscreen.png
Normal file → Executable file
Before Width: | Height: | Size: 202 B After Width: | Height: | Size: 866 B |
BIN
.config/awesome/theme/layouts/fullscreenw.png
Normal file → Executable file
Before Width: | Height: | Size: 202 B After Width: | Height: | Size: 865 B |
BIN
.config/awesome/theme/layouts/magnifier.png
Normal file → Executable file
Before Width: | Height: | Size: 209 B After Width: | Height: | Size: 496 B |
BIN
.config/awesome/theme/layouts/magnifierw.png
Normal file → Executable file
Before Width: | Height: | Size: 209 B After Width: | Height: | Size: 496 B |
BIN
.config/awesome/theme/layouts/max.png
Normal file → Executable file
Before Width: | Height: | Size: 321 B After Width: | Height: | Size: 574 B |
BIN
.config/awesome/theme/layouts/maxw.png
Normal file → Executable file
Before Width: | Height: | Size: 321 B After Width: | Height: | Size: 581 B |
BIN
.config/awesome/theme/layouts/spiral.png
Normal file → Executable file
Before Width: | Height: | Size: 1.5 KiB After Width: | Height: | Size: 427 B |
BIN
.config/awesome/theme/layouts/spiralw.png
Normal file → Executable file
Before Width: | Height: | Size: 1.5 KiB After Width: | Height: | Size: 442 B |
BIN
.config/awesome/theme/layouts/tile.png
Normal file → Executable file
Before Width: | Height: | Size: 174 B After Width: | Height: | Size: 353 B |
BIN
.config/awesome/theme/layouts/tilebottom.png
Normal file → Executable file
Before Width: | Height: | Size: 195 B After Width: | Height: | Size: 340 B |
BIN
.config/awesome/theme/layouts/tilebottomw.png
Normal file → Executable file
Before Width: | Height: | Size: 216 B After Width: | Height: | Size: 350 B |
BIN
.config/awesome/theme/layouts/tileleft.png
Normal file → Executable file
Before Width: | Height: | Size: 172 B After Width: | Height: | Size: 363 B |
BIN
.config/awesome/theme/layouts/tileleftw.png
Normal file → Executable file
Before Width: | Height: | Size: 170 B After Width: | Height: | Size: 367 B |
BIN
.config/awesome/theme/layouts/tiletop.png
Normal file → Executable file
Before Width: | Height: | Size: 195 B After Width: | Height: | Size: 326 B |
BIN
.config/awesome/theme/layouts/tiletopw.png
Normal file → Executable file
Before Width: | Height: | Size: 215 B After Width: | Height: | Size: 342 B |
BIN
.config/awesome/theme/layouts/tilew.png
Normal file → Executable file
Before Width: | Height: | Size: 168 B After Width: | Height: | Size: 357 B |
BIN
.config/awesome/theme/titlebar/close_focus.png
Normal file → Executable file
Before Width: | Height: | Size: 666 B After Width: | Height: | Size: 1.3 KiB |
BIN
.config/awesome/theme/titlebar/close_normal.png
Normal file → Executable file
Before Width: | Height: | Size: 849 B After Width: | Height: | Size: 1.4 KiB |
BIN
.config/awesome/theme/titlebar/floating_focus_active.png
Normal file → Executable file
Before Width: | Height: | Size: 598 B After Width: | Height: | Size: 491 B |
BIN
.config/awesome/theme/titlebar/floating_focus_inactive.png
Normal file → Executable file
Before Width: | Height: | Size: 584 B After Width: | Height: | Size: 350 B |
BIN
.config/awesome/theme/titlebar/floating_normal_active.png
Normal file → Executable file
Before Width: | Height: | Size: 841 B After Width: | Height: | Size: 492 B |
BIN
.config/awesome/theme/titlebar/floating_normal_inactive.png
Normal file → Executable file
Before Width: | Height: | Size: 564 B After Width: | Height: | Size: 350 B |
BIN
.config/awesome/theme/titlebar/maximized_focus_active.png
Normal file → Executable file
Before Width: | Height: | Size: 1013 B After Width: | Height: | Size: 696 B |
BIN
.config/awesome/theme/titlebar/maximized_focus_inactive.png
Normal file → Executable file
Before Width: | Height: | Size: 771 B After Width: | Height: | Size: 719 B |
BIN
.config/awesome/theme/titlebar/maximized_normal_active.png
Normal file → Executable file
Before Width: | Height: | Size: 1.5 KiB After Width: | Height: | Size: 693 B |
BIN
.config/awesome/theme/titlebar/maximized_normal_inactive.png
Normal file → Executable file
Before Width: | Height: | Size: 744 B After Width: | Height: | Size: 695 B |
0
.config/awesome/theme/titlebar/minimize_focus.png
Normal file → Executable file
Before Width: | Height: | Size: 277 B After Width: | Height: | Size: 277 B |
0
.config/awesome/theme/titlebar/minimize_normal.png
Normal file → Executable file
Before Width: | Height: | Size: 272 B After Width: | Height: | Size: 272 B |
BIN
.config/awesome/theme/titlebar/ontop_focus_active.png
Normal file → Executable file
Before Width: | Height: | Size: 774 B After Width: | Height: | Size: 609 B |
BIN
.config/awesome/theme/titlebar/ontop_focus_inactive.png
Normal file → Executable file
Before Width: | Height: | Size: 702 B After Width: | Height: | Size: 756 B |
BIN
.config/awesome/theme/titlebar/ontop_normal_active.png
Normal file → Executable file
Before Width: | Height: | Size: 1.2 KiB After Width: | Height: | Size: 619 B |
BIN
.config/awesome/theme/titlebar/ontop_normal_inactive.png
Normal file → Executable file
Before Width: | Height: | Size: 690 B After Width: | Height: | Size: 769 B |
BIN
.config/awesome/theme/titlebar/sticky_focus_active.png
Normal file → Executable file
Before Width: | Height: | Size: 833 B After Width: | Height: | Size: 717 B |
BIN
.config/awesome/theme/titlebar/sticky_focus_inactive.png
Normal file → Executable file
Before Width: | Height: | Size: 622 B After Width: | Height: | Size: 937 B |
BIN
.config/awesome/theme/titlebar/sticky_normal_active.png
Normal file → Executable file
Before Width: | Height: | Size: 1.4 KiB After Width: | Height: | Size: 726 B |
BIN
.config/awesome/theme/titlebar/sticky_normal_inactive.png
Normal file → Executable file
Before Width: | Height: | Size: 623 B After Width: | Height: | Size: 981 B |