added qss scrollbar stylesheet

This commit is contained in:
Gregor Feierabend 2022-06-01 07:27:05 +02:00
parent a82bb95139
commit 63b9b3a7a4
14 changed files with 453 additions and 87 deletions

View File

@ -1,4 +1,4 @@
shadow-opacity = 0.8;
shadow-opacity = 1;
shadow = true;
shadow-radius = 0;

View File

@ -2,6 +2,10 @@
-- found (e.g. lgi). If LuaRocks is not installed, do nothing.
pcall(require, "luarocks.loader")
math.randomseed(os.time())
randomwidth=math.random(1280, 1440)
randomheight=math.random(750, 850)
-- Standard awesome library
local gears = require("gears")
local awful = require("awful")
@ -110,8 +114,8 @@ mymainmenu = awful.menu({ items = { { "awesome", myawesomemenu, beautiful.awesom
mylauncher = awful.widget.launcher({ image = beautiful.awesome_icon,
menu = mymainmenu })
package.path = package.path .. ';/usr/lib/python3.8/site-packages/powerline/bindings/awesome/?.lua'
require('powerline')
-- package.path = package.path .. ';/usr/lib/python3.8/site-packages/powerline/bindings/awesome/?.lua'
-- require('powerline')
-- Menubar configuration
menubar.utils.terminal = terminal -- Set the terminal for applications that require it
@ -227,9 +231,9 @@ awful.screen.connect_for_each_screen(function(s)
{ -- Right widgets
layout = wibox.layout.fixed.horizontal,
mykeyboardlayout,
powerline_widget,
-- powerline_widget,
wibox.widget.systray(),
-- mytextclock,
mytextclock,
s.mylayoutbox,
},
}
@ -317,7 +321,10 @@ globalkeys = gears.table.join(
i = i + 1
end
if not found then
awful.spawn(terminal_tmux)
awful.spawn(terminal_tmux, {size_hints_honor = false,
placement = awful.placement.maximize_horizontal
+ awful.placement.no_offscreen
+ awful.placement.bottom_left})
end
end, {description = "open a terminal", group = "launcher"}),
awful.key({ modkey, "Control" }, "r", awesome.restart,
@ -348,34 +355,31 @@ globalkeys = gears.table.join(
{description = "lock screen", group = "user"}),
awful.key({ modkey, "Shift" }, "p",
function () awful.spawn({"pqiv", "-c", "-c", "-i", "/home/x/ANNOTATIONS"}) end,
{description = "lock screen", group = "user"}),
{description = "annotate", group = "user"}),
awful.key({ modkey, "Shift" }, "o",
function () awful.spawn({"/home/x/.scripts/screenshot.sh"}) end,
{description = "lock screen", group = "user"}),
{description = "screenshot", group = "user"}),
awful.key({ modkey, "Shift" }, "g",
function () awful.spawn({"/home/x/.scripts/grabscreen.sh"}) end,
{description = "lock screen", group = "user"}),
{description = "grab screen region", group = "user"}),
awful.key({ modkey, "Shift" }, "q",
function () awful.spawn({"killall", "ffmpeg"}) end,
{description = "lock screen", group = "user"}),
{description = "killall ffmpeg", group = "user"}),
awful.key({ modkey, "Shift" }, "r",
function () awful.spawn({"/home/x/.scripts/screenrec.sh"}) end,
{description = "lock screen", group = "user"}),
{description = "record screen region", group = "user"}),
awful.key({ modkey, "Shift" }, "e",
function () awful.spawn({"/home/x/.scripts/screenrecHQ.sh"}) end,
{description = "lock screen", group = "user"}),
awful.key({ modkey, "Shift" }, "w",
function () awful.spawn({"/usr/bin/killall", "ffmpeg"}) end,
{description = "lock screen", group = "user"}),
{description = "record screen region HQ", group = "user"}),
awful.key({ modkey, "Shift" }, "b",
function () awful.spawn({"/home/x/.scripts/screencut.sh"}) end,
{description = "lock screen", group = "user"}),
{description = "cut screen", group = "user"}),
awful.key({ modkey, "Shift" }, "t",
function () awful.spawn({"/home/x/.scripts/incop.sh"}) end,
{description = "lock screen", group = "user"}),
{description = "increase urxvt opacity", group = "user"}),
awful.key({ modkey, "Control", "Shift" }, "t",
function () awful.spawn({"/home/x/.scripts/decop.sh"}) end,
{description = "lock screen", group = "user"}),
{description = "decrease urxvt opacity", group = "user"}),
awful.key({ modkey, "Control" }, "n",
function ()
@ -464,6 +468,11 @@ clientkeys = gears.table.join(
function (c)
c.maximized = not c.maximized
c:raise()
if c.maximized then
c.border_width = 0
else
c.border_width = 2
end
end ,
{description = "(un)maximize", group = "client"}),
awful.key({ modkey, "Control" }, "m",
@ -610,8 +619,14 @@ awful.rules.rules = {
},
-- Set Firefox to always map on the tag named "2" on screen 1.
{ rule = { class = "Firefox" },
properties = { floating=true, width=randomwidth, height=randomheight, placement=awful.placement.centered} },
{ rule = { class = "Telegram" },
properties = { screen = 1, tag = "9" } },
{ rule = { class = "Microsoft Teams - Preview" },
properties = { screen = 1, tag = "8" } },
{ rule = { class = "org-antlr-v4-gui-TestRig" },
properties = { maximized = true } },
{ rule = { class = "wbar" },
properties = {border_width = 0} },
{ rule = { class = "ffplay" },
@ -619,7 +634,7 @@ awful.rules.rules = {
{ rule = { class = "xterm" },
properties = {border_width = 0, floating = true} },
{ rule = { class = "URxvt" },
properties = {maximized_horizontal = true, floating = false, ontop = true} },
properties = {width = 1436, border_width = 2, floating = true, ontop = true} },
{ rule = { class = "Pqiv" },
properties = {border_width = 0, floating = true, ontop = true} },
{ rule = { class = "Client_gui" },
@ -691,24 +706,51 @@ end)
--client.connect_signal("mouse::enter", function(c)
-- c:emit_signal("request::activate", "mouse_enter", {raise = false})
--end)
--
client.connect_signal("mouse::enter", function(c)
if c.class == "qpdfview" then
-- disable horizontal scrolling
awful.spawn({"xinput", "--set-prop", "11", "343", "0"})
end
end)
client.connect_signal("focus",
function(c)
c.border_color = beautiful.border_focus
client.connect_signal("mouse::leave", function(c)
if c.class == "qpdfview" then
-- enable horizontal scrolling
awful.spawn({"xinput", "--set-prop", "11", "343", "1"})
-- keep focus on URxvt, if it's ontop
if c.class ~= "URxvt" and c.class ~= "Pqiv"then
local t = awful.screen.focused().selected_tag
local clients = t:clients()
for i = 1, table.maxn(clients), 1 do
if not clients[i].minimized and clients[i].ontop and clients[i].class == "URxvt" then
clients[i]:raise()
clients[i]:emit_signal("request::activate")
end
end
end)
client.connect_signal("focus", function(c)
c.border_color = beautiful.border_focus
-- keep focus on URxvt, if it's ontop
if c.class ~= "URxvt" and c.class ~= "Pqiv" then
local t = awful.screen.focused().selected_tag
local clients = t:clients()
for i = 1, table.maxn(clients), 1 do
if not clients[i].minimized and clients[i].ontop and clients[i].class == "URxvt" then
clients[i]:raise()
clients[i]:emit_signal("request::activate")
end
end
end)
client.connect_signal("unfocus", function(c) c.border_color = beautiful.border_normal end)
if c.class == "qpdfview" then
-- disable horizontal scrolling
awful.spawn({"xinput", "--set-prop", "11", "343", "0"})
end
end
end)
client.connect_signal("unfocus", function(c)
c.border_color = beautiful.border_normal
if c.class == "qpdfview" then
-- enable horizontal scrolling
awful.spawn({"xinput", "--set-prop", "11", "343", "1"})
end
end)
-- }}}
-- Autorun programs

View File

@ -46,7 +46,7 @@ set color_win_title_attr=default
set color_win_title_bg=default
set color_win_title_fg=white
set confirm_run=true
set continue=false
set continue=true
set continue_album=true
set device=/dev/cdrom
set display_artist_sort_name=false
@ -107,7 +107,7 @@ set show_all_tracks=true
set show_current_bitrate=false
set show_hidden=false
set show_playback_position=true
set show_remaining_time=true
set show_remaining_time=false
set shuffle=false
set skip_track_info=false
set smart_artist_sort=true

View File

@ -5,12 +5,12 @@ AutoSaveOnExit=true
AutoTypeEntryTitleMatch=true
AutoTypeEntryURLMatch=true
BackupBeforeSave=true
ConfigVersion=1
ConfigVersion=2
DropToBackgroundOnCopy=false
FaviconDownloadTimeout=10
HideWindowOnCopy=false
IgnoreGroupExpansion=true
MinimizeAfterUnlock=true
MinimizeAfterUnlock=false
MinimizeOnCopy=true
MinimizeOnOpenUrl=false
OpenPreviousDatabasesOnStartup=true
@ -40,7 +40,7 @@ UpdateBinaryPath=true
UseCustomProxy=false
[FdoSecrets]
Enabled=false
Enabled=true
NoConfirmDeleteItem=false
ShowNotification=true
@ -53,7 +53,7 @@ HideToolbar=false
HideUsernames=false
Language=system
MinimizeOnClose=true
MinimizeOnStartup=false
MinimizeOnStartup=true
MinimizeToTray=true
MonospaceNotes=false
MovableToolbar=false
@ -64,8 +64,8 @@ TrayIconAppearance=monochrome-light
[PasswordGenerator]
AdditionalChars=
ExcludedChars=
Length=20
SpecialChars=true
Length=25
SpecialChars=false
WordCase=1
[SSHAgent]

View File

@ -10,24 +10,24 @@ invertColors=false
layoutMode=1
limitThumbnailsToResults=true
matchCase=false
minimalScrolling=true
minimalScrolling=false
openUrl=true
pageSpacing=0
pageSpacing=5
pagesPerRow=3
parallelSearchExecution=true
prefetch=true
prefetchDistance=10
rotateModifiers=33554432
rotation=0
scaleFactor=3.053422619047619
scaleFactor=1.501036627337572
scaleMode=1
scrollModifiers=134217728
sourceEditor=
thumbnailSize=150
thumbnailSpacing=3
trimMargins=false
wholeWords=true
zoomFactor=1.7
wholeWords=false
zoomFactor=1.1
zoomModifiers=67108864
[mainWindow]
@ -40,11 +40,11 @@ exitAfterLastTab=false
extendedSearchDock=true
fileToolBar=openInNewTab, refresh
fontsDialogSize=@Size(278 244)
geometry=@ByteArray(\x1\xd9\xd0\xcb\0\x3\0\0\0\0\0\0\0\0\0\x12\0\0\x5\x9f\0\0\x3\x83\0\0\0\x2\0\0\0\x14\0\0\x5\x9d\0\0\x3\x81\0\0\0\0\0\0\0\0\x5\xa0\0\0\0\x2\0\0\0\x14\0\0\x5\x9d\0\0\x3\x81)
geometry=@ByteArray(\x1\xd9\xd0\xcb\0\x3\0\0\0\0\0\0\0\0\0\x14\0\0\x2\xcf\0\0\x3\x83\0\0\0\x2\0\0\0\x16\0\0\x2\xcd\0\0\x3\x81\0\0\0\0\0\0\0\0\x5\xa0\0\0\0\x2\0\0\0\x16\0\0\x2\xcd\0\0\x3\x81)
instanceNameInWindowTitle=true
keepRecentlyClosed=false
newTabNextToCurrentTab=true
openPath=/home/x/sofia_haskell/doc
openPath=/home/x/TEX/M325
recentlyClosedCount=5
recentlyUsed=@Invalid()
recentlyUsedCount=10
@ -57,7 +57,7 @@ scrollableMenus=false
searchableMenus=false
settingsDialogSize=@Size(430 663)
spreadTabs=true
state=@ByteArray(\0\0\0\xff\0\0\0\0\xfd\0\0\0\x2\0\0\0\0\0\0\x1m\0\0\x2\xa5\xfc\x2\0\0\0\x3\xfb\0\0\0\x16\0o\0u\0t\0l\0i\0n\0\x65\0\x44\0o\0\x63\0k\0\0\0\0\0\0\0\x2\xa5\0\0\0\x8f\0\xff\xff\xff\xfb\0\0\0\x1c\0p\0r\0o\0p\0\x65\0r\0t\0i\0\x65\0s\0\x44\0o\0\x63\0k\0\0\0\0\0\0\0\x2\xa5\0\0\0\x91\0\xff\xff\xff\xfb\0\0\0\x1c\0t\0h\0u\0m\0\x62\0n\0\x61\0i\0l\0s\0\x44\0o\0\x63\0k\0\0\0\0\0\0\0\x2\xa5\0\0\0\x91\0\xff\xff\xff\0\0\0\x3\0\0\x5\x9c\0\0\0\xc3\xfc\x1\0\0\0\x2\xfb\0\0\0\x14\0s\0\x65\0\x61\0r\0\x63\0h\0\x44\0o\0\x63\0k\0\0\0\0\0\0\0\x5\x9c\0\0\x1\x92\0\xff\xff\xff\xfb\0\0\0\x1a\0\x62\0o\0o\0k\0m\0\x61\0r\0k\0s\0\x44\0o\0\x63\0k\0\0\0\x3\xc1\0\0\x1\xdb\0\0\0\x91\0\xff\xff\xff\0\0\x5\x9c\0\0\x3n\0\0\0\x4\0\0\0\x4\0\0\0\b\0\0\0\b\xfc\0\0\0\x1\0\0\0\x2\0\0\0\x3\0\0\0\x16\0\x66\0i\0l\0\x65\0T\0o\0o\0l\0\x42\0\x61\0r\0\0\0\0\0\xff\xff\xff\xff\0\0\0\0\0\0\0\0\0\0\0\x16\0\x65\0\x64\0i\0t\0T\0o\0o\0l\0\x42\0\x61\0r\0\0\0\0\0\xff\xff\xff\xff\0\0\0\0\0\0\0\0\0\0\0\x16\0v\0i\0\x65\0w\0T\0o\0o\0l\0\x42\0\x61\0r\0\0\0\0\0\xff\xff\xff\xff\0\0\0\0\0\0\0\0)
state="@ByteArray(\0\0\0\xff\0\0\0\0\xfd\0\0\0\x2\0\0\0\0\0\0\x1\x16\0\0\x3l\xfc\x2\0\0\0\x3\xfc\0\0\0\0\0\0\x3l\0\0\0\0\0\xff\xff\xff\xfa\xff\xff\xff\xff\x1\0\0\0\x2\xfb\0\0\0\x1a\0\x62\0o\0o\0k\0m\0\x61\0r\0k\0s\0\x44\0o\0\x63\0k\0\0\0\0\0\xff\xff\xff\xff\0\0\0~\0\xff\xff\xff\xfb\0\0\0\x16\0o\0u\0t\0l\0i\0n\0\x65\0\x44\0o\0\x63\0k\0\0\0\0\0\0\0\x1\x3\0\0\0|\0\xff\xff\xff\xfb\0\0\0\x1c\0p\0r\0o\0p\0\x65\0r\0t\0i\0\x65\0s\0\x44\0o\0\x63\0k\0\0\0\x1\xb9\0\0\x1\xb3\0\0\0\x91\0\xff\xff\xff\xfb\0\0\0\x1c\0t\0h\0u\0m\0\x62\0n\0\x61\0i\0l\0s\0\x44\0o\0\x63\0k\0\0\0\x1\xb9\0\0\x1\xb3\0\0\0\x91\0\xff\xff\xff\0\0\0\x3\0\0\x2\xcc\0\0\0\xc3\xfc\x1\0\0\0\x1\xfb\0\0\0\x14\0s\0\x65\0\x61\0r\0\x63\0h\0\x44\0o\0\x63\0k\x2\0\0\x2\x9d\0\0\0;\0\0\x2\xcc\0\0\x1\xe\0\0\x2\xcc\0\0\x3l\0\0\0\x4\0\0\0\x4\0\0\0\b\0\0\0\b\xfc\0\0\0\x1\0\0\0\x2\0\0\0\x3\0\0\0\x16\0\x66\0i\0l\0\x65\0T\0o\0o\0l\0\x42\0\x61\0r\0\0\0\0\0\xff\xff\xff\xff\0\0\0\0\0\0\0\0\0\0\0\x16\0\x65\0\x64\0i\0t\0T\0o\0o\0l\0\x42\0\x61\0r\0\0\0\0\0\xff\xff\xff\xff\0\0\0\0\0\0\0\0\0\0\0\x16\0v\0i\0\x65\0w\0T\0o\0o\0l\0\x42\0\x61\0r\0\0\0\0\0\xff\xff\xff\xff\0\0\0\0\0\0\0\0)"
styleSheet="\n\n/*-----QWidget-----*/\nQWidget\n{\n\tbackground-color: #232430;\n\tcolor: #EEEEEE;\n\tborder-color: #000000;\n\n}\n\n\n/*-----QLabel-----*/\nQLabel\n{\n\tbackground-color: #232430;\n\tcolor: #c1c1c1;\n\tborder-color: #000000;\n\n}\n\n/*-----QLineEdit-----*/\nQLineEdit\n{\n\tbackground-color: #38394e;\n\tcolor: #c1c1c1;\n\tborder-style: solid;\n\tborder-width: 1px;\n\tborder-color: #4a4c68;\n\n}\n\n\n/*-----QTableView-----*/\nQTableView, \nQHeaderView, \nQTableView::item \n{\n\tbackground-color: #232430;\n\tcolor: #c1c1c1;\n\tborder: none;\n\n}\n\n\nQTableView::item:selected \n{ \n background-color: #41424e;\n color: #c1c1c1;\n\n}\n\n\nQHeaderView::section:horizontal \n{\n background-color: #232430;\n\tborder: 1px solid #37384d;\n\tpadding: 5px;\n\n}\n\n\nQTableView::indicator{\n\tbackground-color: #1d1d28;\n\tborder: 1px solid #37384d;\n\n}\n\n\nQTableView::indicator:checked{\n\timage:url(./ressources/check.png); /*To replace*/\n\tbackground-color: #1d1d28;\n\n}\n\n/*-----QTreeWidget-----*/\nQTreeView\n{\n\tshow-decoration-selected: 0;\n\talternate-background-color: transparent;\n\tbackground-color: transparent;\n \tborder: none;\n\tcolor: #fff;\n\tfont: 8pt;\n\n}\n\n\nQTreeView::item:selected\n{\n\tcolor:#fff;\n\tbackground-color: #1d1d28;\n\tborder-radius: 0px;\n\n}\n\n\nQTreeView::item:!selected:hover\n{\n background-color: #56576c;\n border: none;\n color: white;\n\n}\n\n/*-----QTabWidget-----*/\nQTabWidget::pane \n{ \n border: none;\n\n}\n\nQTabWidget::tab-bar \n{\n left: 5px; \n\n}\n\nQTabBar::tab \n{\n color: #c1c1c1;\n min-width: 1px;\n\tpadding-left: 25px;\n\tmargin-left:-22px;\n height: 28px;\n\tborder: none;\n\n}\n\nQTabBar::tab:selected \n{\n color: #ffffff;\n height: 28px;\n}\n\nQTabBar::tab:!first \n{\n margin-left: -20px;\n\n}\n\nQTabBar::tab:hover \n{\n color: #DDD;\n\n}\n\nQMenu::item\n{\n padding: 2px 10px 2px 10px;\n\n}\n\nQMenu::item:selected\n{\n background-color: #56576c;\n\tcolor: #fff;\n\n}\n\nQMenu::item:disabled\n{\n color: #555;\n background-color: transparent;\n padding: 2px 20px 2px 20px;\n\n}\n\n/*-----QTableView & QTableWidget-----*/\nQTableView\n{\n background-color: #202030;\n border: 1px solid #32414B;\n color: #f0f0f0;\n gridline-color: #8faaff;\n outline : 0;\n\n}\n\n\n/*-----QScrollBar-----*/\nQScrollBar:horizontal \n{\n background-color: transparent;\n height: 8px;\n margin: 0px;\n padding: 0px;\n\n}\n\n\nQScrollBar::handle:horizontal \n{\n border: none;\n\tmin-width: 100px;\n background-color: #56576c;\n\n}\n\n\nQScrollBar::add-line:horizontal, \nQScrollBar::sub-line:horizontal,\nQScrollBar::add-page:horizontal, \nQScrollBar::sub-page:horizontal \n{\n width: 0px;\n background-color: transparent;\n\n}\n\n\nQScrollBar:vertical \n{\n background-color: transparent;\n width: 8px;\n margin: 0;\n\n}\n\n\nQScrollBar::handle:vertical \n{\n border: none;\n\tmin-height: 100px;\n background-color: #56576c;\n\n}\n\n\nQScrollBar::add-line:vertical, \nQScrollBar::sub-line:vertical,\nQScrollBar::add-page:vertical, \nQScrollBar::sub-page:vertical \n{\n height: 0px;\n background-color: transparent;\n\n}\n"
synchronizeOutlineView=false
synchronizeSplitViews=false
@ -71,20 +71,20 @@ viewToolBar=scaleFactor, zoomIn, zoomOut
[pageItem]
addAnnotationModifiers=67108864
annotationColor=@Variant(\0\0\0\x43\x1\xff\xff\0\0\xff\xff\0\0\0\0)
annotationColor=@Variant(\0\0\0\x43\x1\xff\xff\0\0\xff\xff\xff\xff\0\0)
annotationOverlay=false
backgroundColor=@Variant(\0\0\0\x43\x1\xff\xff\0\0\0\0\0\0\0\0)
backgroundColor=@Variant(\0\0\0\x43\x1\xff\xff\0\0\0\0\xf\xf\0\0)
cacheSize=262144K
copyToClipboardModifiers=33554432
decorateFormFields=false
decorateLinks=false
decoratePages=false
formFieldOverlay=true
highlightColor=@Variant(\0\0\0\x43\x1\xff\xff\xff\xff\0\0\0\0\0\0)
highlightColor=@Variant(\0\0\0\x43\x1\xff\xff\xff\xff\0\0\xff\xff\0\0)
keepObsoletePixmaps=false
openInSourceEditorModifiers=0
paperColor=@Variant(\0\0\0\x43\x1\xff\xff\xff\xff\xff\xff\xf0\xf0\0\0)
useDevicePixelRatio=false
useDevicePixelRatio=true
useTiling=false
zoomToSelectionModifiers=100663296

View File

@ -0,0 +1,237 @@
/*-----QWidget-----*/
QWidget
{
background-color: #232430;
color: #EEEEEE;
border-color: #000000;
}
/*-----QLabel-----*/
QLabel
{
background-color: #232430;
color: #c1c1c1;
border-color: #000000;
}
/*-----QLineEdit-----*/
QLineEdit
{
background-color: #38394e;
color: #c1c1c1;
border-style: solid;
border-width: 1px;
border-color: #4a4c68;
}
/*-----QTableView-----*/
QTableView,
QHeaderView,
QTableView::item
{
background-color: #232430;
color: #c1c1c1;
border: none;
}
QTableView::item:selected
{
background-color: #41424e;
color: #c1c1c1;
}
QHeaderView::section:horizontal
{
background-color: #232430;
border: 1px solid #37384d;
padding: 5px;
}
QTableView::indicator{
background-color: #1d1d28;
border: 1px solid #37384d;
}
QTableView::indicator:checked{
image:url("./ressources/check.png"); /*To replace*/
background-color: #1d1d28;
}
/*-----QTreeWidget-----*/
QTreeView
{
show-decoration-selected: 0;
alternate-background-color: transparent;
background-color: transparent;
border: none;
color: #fff;
font: 8pt;
}
QTreeView::item:selected
{
color:#fff;
background-color: #1d1d28;
border-radius: 0px;
}
QTreeView::item:!selected:hover
{
background-color: #56576c;
border: none;
color: white;
}
/*-----QTabWidget-----*/
QTabWidget::pane
{
border: none;
}
QTabWidget::tab-bar
{
left: 5px;
}
QTabBar::tab
{
color: #c1c1c1;
min-width: 1px;
padding-left: 25px;
margin-left:-22px;
height: 28px;
border: none;
}
QTabBar::tab:selected
{
color: #ffffff;
height: 28px;
}
QTabBar::tab:!first
{
margin-left: -20px;
}
QTabBar::tab:hover
{
color: #DDD;
}
QMenu::item
{
padding: 2px 10px 2px 10px;
}
QMenu::item:selected
{
background-color: #56576c;
color: #fff;
}
QMenu::item:disabled
{
color: #555;
background-color: transparent;
padding: 2px 20px 2px 20px;
}
/*-----QTableView & QTableWidget-----*/
QTableView
{
background-color: #202030;
border: 1px solid #32414B;
color: #f0f0f0;
gridline-color: #8faaff;
outline : 0;
}
/*-----QScrollBar-----*/
QScrollBar:horizontal
{
background-color: transparent;
height: 8px;
margin: 0px;
padding: 0px;
}
QScrollBar::handle:horizontal
{
border: none;
min-width: 100px;
background-color: #56576c;
}
QScrollBar::add-line:horizontal,
QScrollBar::sub-line:horizontal,
QScrollBar::add-page:horizontal,
QScrollBar::sub-page:horizontal
{
width: 0px;
background-color: transparent;
}
QScrollBar:vertical
{
background-color: transparent;
width: 8px;
margin: 0;
}
QScrollBar::handle:vertical
{
border: none;
min-height: 100px;
background-color: #56576c;
}
QScrollBar::add-line:vertical,
QScrollBar::sub-line:vertical,
QScrollBar::add-page:vertical,
QScrollBar::sub-page:vertical
{
height: 0px;
background-color: transparent;
}

View File

@ -0,0 +1,53 @@
/*-----QScrollBar-----*/
QScrollBar:horizontal
{
background-color: transparent;
height: 8px;
margin: 0px;
padding: 0px;
}
QScrollBar::handle:horizontal
{
border: none;
min-width: 100px;
background-color: #56576c;
}
QScrollBar::add-line:horizontal,
QScrollBar::sub-line:horizontal,
QScrollBar::add-page:horizontal,
QScrollBar::sub-page:horizontal
{
width: 0px;
background-color: transparent;
}
QScrollBar:vertical
{
background-color: transparent;
width: 8px;
margin: 0;
}
QScrollBar::handle:vertical
{
border: none;
min-height: 100px;
background-color: #56576c;
}
QScrollBar::add-line:vertical,
QScrollBar::sub-line:vertical,
QScrollBar::add-page:vertical,
QScrollBar::sub-page:vertical
{
height: 0px;
background-color: transparent;
}

View File

@ -175,7 +175,7 @@ filextype *.tex vimtex %f &> /dev/null &
filextype *.jpg.gpg gpg -qd %f | imv -
" Pdf
filextype *.pdf qpdfview %f &> /dev/null &, zathura %c %i &, apvlv %c, xpdf %c
filextype *.pdf okular %f &> /dev/null &, qpdfview %f &> /dev/null &, zathura %c %i &, apvlv %c, xpdf %c
fileviewer *.pdf pdftotext -nopgbrk %c -
" Xournal
@ -231,8 +231,8 @@ fileviewer *.avi,*.mp4,*.wmv,*.dat,*.3gp,*.ogv,*.mkv,*.mpg,*.mpeg,*.vob,
filextype *.html,*.htm
\ {Open with dwb}
\ dwb %f %i &,
\ {Open with firefox}
\ firefox %f &,
\ {Open with vivaldi}
\ vivaldi %f &> /dev/null &,
\ {Open with uzbl}
\ uzbl-browser %f %i &,
filetype *.html,*.htm links, lynx
@ -350,7 +350,7 @@ filetype *.7z
fileviewer *.7z 7z l %c
" Office files
filextype *.odt,*.doc,*.docx abiword %f &> /dev/null &
filextype *.odt,*.doc,*.docx,*.abw,*.zabw,*.zabw.gz abiword %f &> /dev/null &
filextype *.xls,*.xlsx,*.odp,*.pptx libreoffice %f &> /dev/null &
fileviewer *.doc catdoc %c
fileviewer *.docx, docx2txt.pl %f -
@ -420,7 +420,10 @@ set vifminfo=dhistory,savedirs,chistory,state,tui,shistory,
" ------------------------------------------------------------------------------
nnoremap b :bmarks<cr>
" Sample mappings
"
" Start shell in current directory
nnoremap s :shell<cr>

View File

@ -1,2 +1 @@
$clean_ext = "%R.run.xml";
$bibtex_use = 2;
$clean_ext = "%R.run.xml bbl";

View File

@ -55,6 +55,9 @@ color markers brightred default
color message white default
color search brightwhite magenta
color bold brightyellow default
color index red default ~D
color index cyan default ~T
# if you don't like the black progress bar at the bottom of the screen,
# comment out the following line
#color progress white black
@ -97,3 +100,7 @@ alias 21680809 \"Rey, JM, Mej [21680809@sun.ac.za]\" <21680809@sun.ac.za>
alias mwild \"Wild, Marcel, Prof [mwild@sun.ac.za]\" <mwild@sun.ac.za>
alias smo \"Mouton, S, Prof [smo@sun.ac.za]\" <smo@sun.ac.za>
alias bfischer Bernd Fischer <bfischer@sun.ac.za>
alias intpreregistration \"intpreregistration@sun.ac.za\" <intpreregistration@sun.ac.za>
alias hproding \"Prodinger, Helmut [hproding@sun.ac.za]\" <hproding@sun.ac.za>
alias tammya \"Abrahams, T, Mrs [tammya@sun.ac.za]\" <tammya@sun.ac.za>
alias djbasson \"Basson, DJ, Dr [djbasson@sun.ac.za]\" <djbasson@sun.ac.za>

View File

@ -12,6 +12,7 @@ exec xrdb ~/.Xresources
exec dunst
#exec redshift -l -18:33
exec unclutter -idle 5 -jitter 20
exec dispad
#exec /usr/bin/xbattbar -a -c -t 2 -I "#333333" -O white -i white -o "#333333"
#exec /usr/bin/xinput set-button-map 11 1 2 3 5 4 7 6

View File

@ -1,6 +1,9 @@
#%colors Linux
%colors Linux
def division(dividend, divisor):
return (dividend._maxima_().divide(divisor).sage())
from sage.misc.viewer import viewer
viewer.png_viewer("imv")
#for pole in (1/f == 0).solve(z):f(z).maxima_methods().residue(z,pole.rhs())

View File

@ -5,6 +5,8 @@ killall xbattbar
killall pasystray
killall compton
wbar &
#wbar &
pasystray &
keepassxc &
compton &
/usr/bin/xbattbar -a -c -t 2 -I "#333333" -O white -i white -o "#333333" &

71
.vimrc
View File

@ -23,20 +23,23 @@ set cindent
set history=1000
set showcmd
set incsearch
set nowrap
set spell
set ruler
set wrap
set breakindent
set showbreak=----->
set linebreak
set listchars=eol,tab:>·,trail:~,extends:>,precedes:<,space:␣
set textwidth=80
set tags=./tags,./TAGS,tags,TAGS
"set textwidth=80
"set linebreak
set nojoinspaces
syntax sync fromstart
set nrformats+=alpha
autocmd BufNewFile,BufRead *.sage set syntax=python
autocmd FileType haskell set expandtab
autocmd FileType haskell set nospell
@ -62,9 +65,9 @@ set foldtext=FoldText()
set fillchars=fold:\
"check files for changes frequently
"set autoread
"set ut=1000
"au CursorHold * checktime
set autoread
set ut=1000
au CursorHold * checktime
"highlight own types:
au BufRead,BufNewFile *.[ch] let fname = expand('<afile>:p:h') . '/types.vim'
@ -139,6 +142,9 @@ nmap <silent> <C-\> :cs find s <C-R>=expand("<cword>")<CR><CR>1<CR><CR>
nmap <silent> <C-_> :lcs find c <C-R>=expand("<cword>")<CR><CR>
set cscopequickfix=c+
"nmap <F6> :let @+=system("sage -c \"t=var('t');s=var('s');u=var('u');v=var('v');w=var('w');x=var('x');y=var('y');z=var('z');print(latex(".getline('.')."))\"")<CR>j
nmap <F6> :let @+=system("sage -c \"R.<t,z> = PowerSeriesRing(ZZ);print(latex(".getline('.')."))\"")<CR>j
""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
"""""""""""""""""""""""""""""""" PLUGIN SPECIFIC """""""""""""""""""""""""""""""
runtime ftplugin/man.vim
@ -182,6 +188,8 @@ let g:syntastic_tex_chktex_quiet_messages =
\ {"regex": ["`)' expected, found `}'",
\ "`}' expected, found `)'"]}
let g:syntastic_java_checkstyle_quiet_messages = {"regex": ['Missing a Javadoc comment.']}
map <C-h><C-h> :lprev<CR>
map <C-j><C-j> :lnext<CR>
@ -208,7 +216,7 @@ nmap <C-c><C-p> :call REPLsettings("")<CR>
"""""""""""""""""""""""""""""""""""" DIFFCHAR """"""""""""""""""""""""""""""""""
"https://github.com/rickhowe/diffchar.vim.git
let g:DiggUnit="Char"
let g:DiffUnit="Char"
"""""""""""""""""""""""""""""""""" LATEX SUITE """""""""""""""""""""""""""""""""
"https://github.com/vim-latex/vim-latex
@ -217,14 +225,14 @@ set grepprg=grep\ -nH\ $*
set modelineexpr
let g:Tex_DefaultTargetFormat = "pdf"
let g:Tex_ViewRule_pdf = "qpdfview"
let g:Tex_CompileRule_pdf = "latexmk -pdf -shell-escape -synctex=1 $*"
"let g:Tex_ViewRule_pdf = "zathura"
let g:tex_flavor='latex'
let g:Tex_GotoError=0
let g:tex_comment_nospell=1
"let g:Tex_DefaultTargetFormat = "pdf"
"let g:Tex_ViewRule_pdf = "qpdfview"
"let g:Tex_CompileRule_pdf = "latexmk -pdf -shell-escape -synctex=1 $*"
""let g:Tex_ViewRule_pdf = "zathura"
"
"let g:tex_flavor='latex'
"let g:Tex_GotoError=0
"let g:tex_comment_nospell=1
"autocmd BufNewFile,BufRead *.tex syntax sync fromstart
autocmd BufNewFile,BufRead *.tex set spelllang=en_gb spell
@ -235,18 +243,24 @@ autocmd BufNewFile,BufRead *.tex set textwidth=80
autocmd BufNewFile,BufRead *.tex let g:syntastic_auto_jump = 0
autocmd BufNewFile,BufRead *.tex set expandtab
imap <C-l><C-o> :let b:Imap_FreezeImap = 1<CR>
imap <C-l><C-u> :let b:Imap_FreezeImap = 0<CR>
imap <C-l><C-m> <ESC>:w<CR>:!biber -E utf8 $(basename % .tex)<CR>
nmap <C-l><C-m> :w<CR>:!biber -E utf8 $(basename % .tex)<CR>
"imap <C-l><C-o> :let b:Imap_FreezeImap = 1<CR>
"imap <C-l><C-u> :let b:Imap_FreezeImap = 0<CR>
"imap <C-l><C-m> <ESC>:w<CR>:!biber -E utf8 $(basename % .tex)<CR>
"nmap <C-l><C-m> :w<CR>:!biber -E utf8 $(basename % .tex)<CR>
"
"imap <C-l><C-j> <F7>
"imap <C-l><C-i> <Plug>Tex_InsertItemOnThisLine
"imap <C-l><C-l> <Plug>Tex_LeftRight
"imap <C-l><C-x> <Plug>Tex_MathCal
"imap <C-l><C-v> <Plug>Tex_MathBF
map <C-l><C-f> :execute escape(":!qpdfview --quiet --unique $(basename % .tex).pdf $(basename % .tex).pdf#src:%:" . line('.') . ":" . col('.') . " &", '#')<CR><CR>
"map <C-l><C-f> :execute escape(":!qpdfview --quiet --unique $(basename % .tex).pdf $(basename % .tex).pdf#src:%:" . line('.') . ":" . col('.') . " &", '#')<CR><CR>
map <C-l><C-f> :execute escape(":!okular --unique \"$(basename % .tex).pdf#src:" . line('.') . " %\" &> /dev/null &", '#')<CR><CR>
nnoremap <silent> <Leader>ll :!latexmk -pdf -shell-escape -synctex=1 %<CR>
imap <C-l><C-j> <F7>
imap <C-l><C-i> <Plug>Tex_InsertItemOnThisLine
imap <C-l><C-l> <Plug>Tex_LeftRight
imap <C-l><C-x> <Plug>Tex_MathCal
imap <C-l><C-v> <Plug>Tex_MathBF
""""""""""""""""""""""""""""""""""""" JAVA """""""""""""""""""""""""""""""""""""
autocmd BufNewFile,BufRead *.java set expandtab
autocmd BufNewFile,BufRead *.g4 set expandtab
""""""""""""""""""""""""""""""" RAINBOW BRACKETS """""""""""""""""""""""""""""""
"https://github.com/luochen1990/rainbow.git
@ -332,3 +346,8 @@ autocmd FileType dart set expandtab
"""""""""""""""""""""""""""""""""""" VIM2HS """"""""""""""""""""""""""""""""""""
"https://github.com/dag/vim2hs
let g:haskell_conceal = 1
"""""""""""""""""""""""""""""""""" NERDTREE """"""""""""""""""""""""""""""""""""
"https://github.com/preservim/nerdtree
map tn :NERDTreeMirror<CR>:NERDTreeFocus<CR>